本文整理了Java中org.apache.xerces.impl.xs.XSComplexTypeDecl.getAttrGrp()
方法的一些代码示例,展示了XSComplexTypeDecl.getAttrGrp()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSComplexTypeDecl.getAttrGrp()
方法的具体详情如下:
包路径:org.apache.xerces.impl.xs.XSComplexTypeDecl
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!