org.apache.xerces.impl.xs.XSComplexTypeDecl.getAttrGrp()方法的使用及代码示例

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

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

XSComplexTypeDecl.getAttrGrp介绍

暂无

代码示例

代码示例来源:origin: org.opengis.cite/cite1-utils

public boolean canHaveRemoteValue() {
  if (this.type.getTypeCategory() == 14) {
    return true;
  }
  XSComplexTypeDecl complexType = (XSComplexTypeDecl) this.type;
  XSAttributeGroupDefinition attributeGroupDefinition = complexType
      .getAttrGrp();
  if (attributeGroupDefinition == null) {
    return false;
  }
  XSObjectList attrUses = attributeGroupDefinition.getAttributeUses();
  for (int ii = 0; ii < attrUses.getLength(); ii++) {
    XSAttributeUse attrUse = (XSAttributeUse) attrUses.item(ii);
    XSAttributeDeclaration attrDecl = attrUse.getAttrDeclaration();
    if ((attrDecl.getName().equals("href"))
        && (attrDecl.getNamespace() != null)
        && (attrDecl.getNamespace()
            .equals("http://www.w3.org/1999/xlink"))) {
      return true;
    }
  }
  return false;
}

代码示例来源:origin: org.eclipse/org.eclipse.datatools.enablement.oda.xml

if ( ( (XSComplexTypeDecl) this.element.getTypeDefinition( ) ).getAttrGrp( ) != null )
  XSAttributeGroupDecl gp1 = ( (XSComplexTypeDecl) this.element.getTypeDefinition( ) ).getAttrGrp( );
  XSObjectList list = gp1.getAttributeUses( );

代码示例来源:origin: AlexanderBartash/hybris-integration-intellij-idea-plugin

ctd.setValues(o.getName(), ctd1.getNamespace(), ctd1.getBaseType(), ctd1.getDerivationMethod(),
       ctd1.getFinal(), ctd1.getProhibitedSubstitutions(), ctd1.getContentType(),
       ctd1.getAbstract(), ctd1.getAttrGrp(), (XSSimpleType) ctd1.getSimpleType(),
       (XSParticleDecl) ctd1.getParticle(), annotations
);

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

if (fCurrentType.getTypeCategory() == XSTypeDefinition.COMPLEX_TYPE) {
  XSComplexTypeDecl ctype = (XSComplexTypeDecl) fCurrentType;
  attrGrp = ctype.getAttrGrp();

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

mergeAttributes(baseType.getAttrGrp(), fAttrGrp, fName, false, complexContent);
} catch (ComplexTypeRecoverableError e) {
  fAttrChecker.returnAttrArray(complexContentAttrValues, schemaDoc);
  Object[] errArgs = fAttrGrp.validRestrictionOf(fName, baseType.getAttrGrp(), fSchemaHandler.fXSConstraints);
  if (errArgs != null) {
    fAttrChecker.returnAttrArray(complexContentAttrValues, schemaDoc);
  mergeAttributes(baseType.getAttrGrp(), fAttrGrp, fName, true, complexContent);
} catch (ComplexTypeRecoverableError e) {
  fAttrChecker.returnAttrArray(complexContentAttrValues, schemaDoc);

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

mergeAttributes(baseComplexType.getAttrGrp(), fAttrGrp, fName, false, simpleContentElement);
} catch (ComplexTypeRecoverableError e) {
  fAttrChecker.returnAttrArray(simpleContentAttrValues, schemaDoc);
Object[] errArgs=fAttrGrp.validRestrictionOf(fName, baseComplexType.getAttrGrp(), fSchemaHandler.fXSConstraints);
if (errArgs != null) {
  fAttrChecker.returnAttrArray(simpleContentAttrValues, schemaDoc);
    mergeAttributes(baseComplexType.getAttrGrp(), fAttrGrp, fName, true, simpleContentElement);
  } catch (ComplexTypeRecoverableError e) {
    fAttrChecker.returnAttrArray(simpleContentAttrValues, schemaDoc);

相关文章