本文整理了Java中org.apache.xerces.impl.xs.XSComplexTypeDecl.getContentType()
方法的一些代码示例,展示了XSComplexTypeDecl.getContentType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSComplexTypeDecl.getContentType()
方法的具体详情如下:
包路径:org.apache.xerces.impl.xs.XSComplexTypeDecl
类名称:XSComplexTypeDecl
方法名:getContentType
[英]{content type} One of empty, a simple type definition (see simpleType
, or mixed, element-only (see cmParticle
).
[中]{content type}一个空的、简单的类型定义(请参见simpleType
,或仅混合元素(请参见[$1$])。
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
/**
* Get content model for a given type
*
* @param typeDecl get content model for which complex type
* @return a content model validator
*/
public XSCMValidator getContentModel(XSComplexTypeDecl typeDecl, boolean forUPA) {
// for complex type with empty or simple content,
// there is no content model validator
short contentType = typeDecl.getContentType();
if (contentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
contentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
return null;
}
return getContentModel((XSParticleDecl)typeDecl.getParticle(), (XSOpenContentDecl)typeDecl.getOpenContent(), forUPA);
}
代码示例来源:origin: AlexanderBartash/hybris-integration-intellij-idea-plugin
: new XSObjectListImpl();
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
baseType.getContentType() != XSComplexTypeDecl.CONTENTTYPE_MIXED) {
fAttrChecker.returnAttrArray(complexContentAttrValues, schemaDoc);
fAttrChecker.returnAttrArray(derivationTypeAttrValues, schemaDoc);
fContentType = baseType.getContentType();
fXSSimpleType = (XSSimpleType)baseType.getSimpleType();
fParticle = baseContent;
else if (baseType.getContentType() == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
baseType.getContentType() != XSComplexTypeDecl.CONTENTTYPE_ELEMENT) {
fAttrChecker.returnAttrArray(complexContentAttrValues, schemaDoc);
fAttrChecker.returnAttrArray(derivationTypeAttrValues, schemaDoc);
baseType.getContentType() != XSComplexTypeDecl.CONTENTTYPE_MIXED) {
fAttrChecker.returnAttrArray(complexContentAttrValues, schemaDoc);
fAttrChecker.returnAttrArray(derivationTypeAttrValues, schemaDoc);
if (fDerivedBy == XSConstants.DERIVATION_EXTENSION && baseType.getContentType() != XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
baseFinalSet = baseComplexType.getFinal();
if (baseComplexType.getContentType() == XSComplexTypeDecl.CONTENTTYPE_SIMPLE) {
baseValidator = (XSSimpleType)baseComplexType.getSimpleType();
baseComplexType.getContentType() == XSComplexTypeDecl.CONTENTTYPE_MIXED &&
((XSParticleDecl)baseComplexType.getParticle()).emptiable()) {
内容来源于网络,如有侵权,请联系作者删除!