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

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

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

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()) {

相关文章