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

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

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

XSDComplexTypeDefinition.getAttributeUses介绍

[英]Returns the value of the 'Attribute Uses' reference list. The list contents are of type org.eclipse.xsd.XSDAttributeUse.

This represents the attribute uses infoset property. It is computed from the #getAttributeContents() and should typically not be set directly.
[中]返回“属性使用”引用列表的值。列表内容的类型为org。日食xsd。XSDAT论坛。
这表示attribute usesinfoset属性。它是根据#getAttributeContents()计算的,通常不应直接设置。

代码示例

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

@Override
public boolean isIdentifiable(XSDComplexTypeDefinition typeDefinition) {
  List attributeUses = typeDefinition.getAttributeUses();
  final String idAttName = getId().getLocalPart();
  for (Iterator it = attributeUses.iterator(); it.hasNext(); ) {
    XSDAttributeUse use = (XSDAttributeUse) it.next();
    XSDAttributeUseCategory useCategory = use.getUse();
    XSDAttributeDeclaration idAtt = use.getAttributeDeclaration();
    String targetNamespace = idAtt.getTargetNamespace();
    String name = idAtt.getName();
    if (getNameSpace().equals(targetNamespace) && idAttName.equals(name)) {
      if (XSDAttributeUseCategory.REQUIRED_LITERAL.equals(useCategory)) {
        return true;
      }
    }
  }
  return false;
}

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

for (XSDAttributeUse attgcontent : complexTypeDef.getAttributeUses()) {
  XSDAttributeDeclaration att = attgcontent.getContent();
  descriptor =

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

protected List<XSDAttributeUse> getAttributeUses(XSDComplexTypeDefinition xsdComplexTypeDefinition)
{
 if (useSortedAttributes())
 {
  return xsdComplexTypeDefinition.getAttributeUses();
 }
 else
 {
  List<XSDAttributeUse> result = new ArrayList<XSDAttributeUse>(xsdComplexTypeDefinition.getAttributeUses());
  reorderAttributeUses(result, xsdComplexTypeDefinition.getAttributeContents());
  return result;
 }
}

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

protected List<XSDAttributeUse> getAttributeUses(XSDComplexTypeDefinition xsdComplexTypeDefinition)
{
 if (useSortedAttributes())
 {
  return xsdComplexTypeDefinition.getAttributeUses();
 }
 else
 {
  List<XSDAttributeUse> result = new ArrayList<XSDAttributeUse>(xsdComplexTypeDefinition.getAttributeUses());
  reorderAttributeUses(result, xsdComplexTypeDefinition.getAttributeContents());
  return result;
 }
}

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

public void visitXSDComplexTypeDefinition(XSDComplexTypeDefinition xsdComplexTypeDefinition)
{
 indent += 2;
 for (Iterator i = xsdComplexTypeDefinition.getAttributeUses().iterator(); i.hasNext(); )
 {        
  visitXSDObject(i.next());
 }
 visitXSDObject(xsdComplexTypeDefinition.getContent());
 indent -= 2;
}

代码示例来源:origin: org.geotools/gt-app-schema

/**
 * Determines if elements of the given complex type definition are required to have an
 * identifier by looking for a child element of <code>typeDefinition</code> of the form
 * <code>&lt;xs:attribute ref=&quot;gml:id&quot; use=&quot;required&quot; /&gt;</code>
 * 
 * @param typeDefinition
 * @return
 */
private boolean isIdentifiable(XSDComplexTypeDefinition typeDefinition) {
  List attributeUses = typeDefinition.getAttributeUses();
  final String idAttName = GML.getId().getLocalPart();
  for (Iterator it = attributeUses.iterator(); it.hasNext();) {
    XSDAttributeUse use = (XSDAttributeUse) it.next();
    XSDAttributeUseCategory useCategory = use.getUse();
    XSDAttributeDeclaration idAtt = use.getAttributeDeclaration();
    String targetNamespace = idAtt.getTargetNamespace();
    String name = idAtt.getName();
    if (GML.getNameSpace().equals(targetNamespace) && idAttName.equals(name)) {
      if (XSDAttributeUseCategory.REQUIRED_LITERAL.equals(useCategory)) {
        return true;
      }
    }
  }
  return false;
}

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

siblings = ((XSDComplexTypeDefinition) parent).getAttributeUses();

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

for (XSDAttributeUse attgcontent : complexTypeDef.getAttributeUses()) {
  XSDAttributeDeclaration att = attgcontent.getContent();
  descriptor =

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

public static class FeatureIteratorImpl extends EContentsEList.FeatureIteratorImpl<XSDConcreteComponent>
 {
  public FeatureIteratorImpl(EObject eObject)
  {
   super(eObject, (EStructuralFeature [])((BasicEList<?>)eObject.eClass().getEAllReferences()).data());
  }
  public FeatureIteratorImpl(EObject eObject, EStructuralFeature [] eStructuralFeatures)
  {
   super(eObject, eStructuralFeatures);
  }
  @Override
  protected boolean isIncluded(EStructuralFeature eStructuralFeature)
  {
   EReference eReference = (EReference)eStructuralFeature;
   return !eReference.isTransient();
  }
 }
}

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

public static class FeatureIteratorImpl extends EContentsEList.FeatureIteratorImpl<XSDConcreteComponent>
 {
  public FeatureIteratorImpl(EObject eObject)
  {
   super(eObject, (EStructuralFeature [])((BasicEList<?>)eObject.eClass().getEAllReferences()).data());
  }
  public FeatureIteratorImpl(EObject eObject, EStructuralFeature [] eStructuralFeatures)
  {
   super(eObject, eStructuralFeatures);
  }
  @Override
  protected boolean isIncluded(EStructuralFeature eStructuralFeature)
  {
   EReference eReference = (EReference)eStructuralFeature;
   return !eReference.isTransient();
  }
 }
}

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

baseAttributeUses = complexBaseTypeDefinition.getAttributeUses();
for (XSDAttributeUse xsdAttributeUse : baseAttributeUses)

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

baseAttributeUses = complexBaseTypeDefinition.getAttributeUses();
for (XSDAttributeUse xsdAttributeUse : baseAttributeUses)

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

if (theBaseTypeDefinition instanceof XSDComplexTypeDefinition)
 baseAttributeUses = ((XSDComplexTypeDefinition)theBaseTypeDefinition).getAttributeUses();

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

if (theBaseTypeDefinition instanceof XSDComplexTypeDefinition)
 baseAttributeUses = ((XSDComplexTypeDefinition)theBaseTypeDefinition).getAttributeUses();

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

for (XSDAttributeUse baseXSDAttributeUse : xsdComplexTypeDefinition.getAttributeUses())
(this,
 getAttributeWildcardContent(),
 xsdComplexTypeDefinition.getAttributeUses(),
 getAttributeUses(),
 xsdComplexTypeDefinition.getAttributeWildcard(),

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

for (XSDAttributeUse baseXSDAttributeUse : xsdComplexTypeDefinition.getAttributeUses())
(this,
 getAttributeWildcardContent(),
 xsdComplexTypeDefinition.getAttributeUses(),
 getAttributeUses(),
 xsdComplexTypeDefinition.getAttributeWildcard(),

相关文章

微信公众号

最新文章

更多