org.eclipse.xsd.XSDFeature.getName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中org.eclipse.xsd.XSDFeature.getName()方法的一些代码示例,展示了XSDFeature.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDFeature.getName()方法的具体详情如下:
包路径:org.eclipse.xsd.XSDFeature
类名称:XSDFeature
方法名:getName

XSDFeature.getName介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

if (component.getName() != null) {
  QName qName = new QName(component.getTargetNamespace(), component.getName());
  Binding binding = loader.loadBinding(qName, context);

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

public static String getDisplayName(XSDNamedComponent component)
{
 if (component instanceof XSDTypeDefinition)
  return getDisplayNameFromXSDType((XSDTypeDefinition) component);
 if (component instanceof XSDFeature)
 {
  XSDFeature feature = (XSDFeature) component;
  if (feature.getName() != null)
   return feature.getName();
  else if (feature.getResolvedFeature() != null && feature.getResolvedFeature().getName() != null)
   return feature.getResolvedFeature().getName();
 }
 return component.getName();
}

代码示例来源:origin: org.geotools/gt2-xml-core

if (component.getName() != null) {
  QName qName = new QName(component.getTargetNamespace(), component.getName());
  Binding binding = loader.loadBinding(qName, context);

代码示例来源:origin: org.geotools/gt2-xml-xsd

if (component.getName() != null) {
  QName qName = new QName(component.getTargetNamespace(),
      component.getName());
  Binding binding = loader.loadBinding(qName, context);

代码示例来源:origin: org.geotools.xsd/gt-core

if (component.getName() != null) {
  QName qName = new QName(component.getTargetNamespace(), component.getName());
  Binding binding = loader.loadBinding(qName, context);

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

String basePrimitiveTypeString = basePrimitiveType != null ? basePrimitiveType.getName() : "";
currentPrimitiveType = basePrimitiveType;
titleString = Messages._UI_LABEL_TYPE + (anonymousTypeDefinition != null ? "(" + xsdFeature.getResolvedFeature().getName() + "Type)" : xsdSimpleTypeDefinition.getName())  + " , " + Messages._UI_LABEL_BASE + ": " + basePrimitiveTypeString; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
titleString = Messages._UI_LABEL_TYPE + (anonymousTypeDefinition != null ? "(" + xsdFeature.getResolvedFeature().getName() + "Type)" : xsdSimpleTypeDefinition.getName());

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

String name = xsdFeature.getName();
eStructuralFeature = 
 xsdFeature instanceof XSDElementDeclaration ? 
if (name == null)
 name= validName(xsdFeature.getName(), true);

代码示例来源:origin: org.eclipse/org.eclipse.xsd

if (name == null)
 name= validName(xsdFeature.getName(), true);

相关文章