public class XSComplexTypeDecl
extends java.lang.Object
implements org.apache.xerces.xs.XSComplexTypeDefinition, org.w3c.dom.TypeInfo
| Constructor and Description | 
|---|
| XSComplexTypeDecl() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsTypeID() | 
| boolean | derivedFrom(java.lang.String ancestorNS,
           java.lang.String ancestorName,
           short derivationMethod)Convenience method which checks if this type is derived from the given 
 ancestor type. | 
| boolean | derivedFromType(org.apache.xerces.xs.XSTypeDefinition ancestor,
               short derivationMethod)Convenience method which checks if this type is derived from the given 
  ancestorType. | 
| boolean | getAbstract(){abstract} A boolean. | 
| org.apache.xerces.xs.XSObjectList | getAnnotations()Optional. | 
| boolean | getAnonymous()A boolean that specifies if the type definition is anonymous. | 
| org.apache.xerces.xs.XSObjectList | getAssertions()A sequence of [assertions] or an empty  XSObjectList. | 
| XSAttributeGroupDecl | getAttrGrp() | 
| org.apache.xerces.xs.XSAttributeUse | getAttributeUse(java.lang.String namespace,
               java.lang.String name) | 
| org.apache.xerces.xs.XSObjectList | getAttributeUses(){attribute uses} A set of attribute uses. | 
| org.apache.xerces.xs.XSWildcard | getAttributeWildcard(){attribute wildcard} Optional. | 
| org.apache.xerces.xs.XSTypeDefinition | getBaseType(){base type definition} Either a simple type definition or a complex
 type definition. | 
| XSCMValidator | getContentModel(CMBuilder cmBuilder) | 
| XSCMValidator | getContentModel(CMBuilder cmBuilder,
               boolean forUPA) | 
| short | getContentType(){content type} One of empty, a simple type definition (see
  simpleType, or mixed, element-only (seecmParticle). | 
| org.apache.xerces.xs.XSObject | getContext()A property that simplifies testing for the identity of anonymous type
 definitions. | 
| short | getDerivationMethod(){derivation method} Either extension or restriction. | 
| short | getFinal(){final} For complex type definition it is a subset of {extension, restriction}. | 
| short | getFinalSet() | 
| java.lang.String | getName()The  nameof thisXSObjectdepending on theXSObjecttype. | 
| java.lang.String | getNamespace()The namespace URI of this node, or  nullif it is
 unspecified. | 
| org.apache.xerces.xs.XSNamespaceItem | getNamespaceItem()A namespace schema information item corresponding to the target 
 namespace of the component, if it is globally declared; or 
  nullotherwise. | 
| org.apache.xerces.xs.XSOpenContent | getOpenContent()An open content | 
| org.apache.xerces.xs.XSParticle | getParticle()A particle for mixed or element-only content model, otherwise
  null | 
| short | getProhibitedSubstitutions(){prohibited substitutions} | 
| org.apache.xerces.xs.XSSimpleTypeDefinition | getSimpleType()A simple type definition corresponding to simple content model,
 otherwise  null | 
| java.lang.String | getTargetNamespace() | 
| short | getType()Get the type of the object, i.e ELEMENT_DECLARATION. | 
| short | getTypeCategory()Return whether this type definition is a simple type or complex type. | 
| java.lang.String | getTypeName()The name of a type declared for the associated element or attribute, 
 or  nullif unknown. | 
| java.lang.String | getTypeNamespace()The namespace of the type declared for the associated element or 
 attribute or  nullif the element does not have 
 declaration or if no namespace information is available. | 
| boolean | isDerivedFrom(java.lang.String typeNamespaceArg,
             java.lang.String typeNameArg,
             int derivationMethod)This method returns if there is a derivation between the reference 
 type definition, i.e. | 
| boolean | isDOMDerivedFrom(java.lang.String ancestorNS,
                java.lang.String ancestorName,
                int derivationMethod)Checks if a type is derived from another given the the name, namespace
 and derivation method. | 
| boolean | isFinal(short derivation){final} For complex type definition it is a subset of {extension,
 restriction}. | 
| boolean | isProhibitedSubstitution(short prohibited){prohibited substitutions} A subset of {extension, restriction}. | 
| void | reset() | 
| void | setAssertions(XSObjectListImpl assertions) | 
| void | setBaseType(org.apache.xerces.xs.XSTypeDefinition baseType) | 
| void | setContainsTypeID() | 
| void | setContext(org.apache.xerces.xs.XSObject context) | 
| void | setDerivationMethod(short derivationMethod) | 
| void | setIsAbstractType() | 
| void | setIsAnonymous() | 
| void | setName(java.lang.String name) | 
| void | setValues(java.lang.String name,
         java.lang.String targetNamespace,
         org.apache.xerces.xs.XSTypeDefinition baseType,
         short derivedBy,
         short schemaFinal,
         short block,
         short contentType,
         boolean isAbstract,
         XSAttributeGroupDecl attrGrp,
         XSSimpleType simpleType,
         XSParticleDecl particle,
         XSObjectListImpl annotations,
         XSOpenContentDecl openContent) | 
| java.lang.String | toString() | 
public void setValues(java.lang.String name,
             java.lang.String targetNamespace,
             org.apache.xerces.xs.XSTypeDefinition baseType,
             short derivedBy,
             short schemaFinal,
             short block,
             short contentType,
             boolean isAbstract,
             XSAttributeGroupDecl attrGrp,
             XSSimpleType simpleType,
             XSParticleDecl particle,
             XSObjectListImpl annotations,
             XSOpenContentDecl openContent)
public void setName(java.lang.String name)
public void setBaseType(org.apache.xerces.xs.XSTypeDefinition baseType)
public short getTypeCategory()
org.apache.xerces.xs.XSTypeDefinitiongetTypeCategory in interface org.apache.xerces.xs.XSTypeDefinitionpublic java.lang.String getTypeName()
org.w3c.dom.TypeInfonull if unknown.getTypeName in interface org.w3c.dom.TypeInfopublic short getFinalSet()
public java.lang.String getTargetNamespace()
public boolean containsTypeID()
public void setIsAbstractType()
public void setContainsTypeID()
public void setIsAnonymous()
public void setDerivationMethod(short derivationMethod)
public void setAssertions(XSObjectListImpl assertions)
public XSCMValidator getContentModel(CMBuilder cmBuilder)
public XSCMValidator getContentModel(CMBuilder cmBuilder, boolean forUPA)
public XSAttributeGroupDecl getAttrGrp()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean derivedFromType(org.apache.xerces.xs.XSTypeDefinition ancestor,
                      short derivationMethod)
org.apache.xerces.xs.XSTypeDefinitionancestorType.derivedFromType in interface org.apache.xerces.xs.XSTypeDefinitionancestor - An ancestor type definition.derivationMethod - A bit combination representing a subset of {
   DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
   }.ancestorType 
   using only derivation methods from the derivationMethod
   .public boolean derivedFrom(java.lang.String ancestorNS,
                  java.lang.String ancestorName,
                  short derivationMethod)
org.apache.xerces.xs.XSTypeDefinitionderivedFrom in interface org.apache.xerces.xs.XSTypeDefinitionancestorNS - An ancestor type namespace.ancestorName - An ancestor type name.derivationMethod - A bit combination representing a subset of {
   DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
   }.ancestorType 
   using only derivation methods from the derivationMethod
   .public boolean isDOMDerivedFrom(java.lang.String ancestorNS,
                       java.lang.String ancestorName,
                       int derivationMethod)
ancestorNS - The namspace of the ancestor type declarationancestorName - The name of the ancestor type declarationderivationMethod - The derivation methodpublic void reset()
public short getType()
getType in interface org.apache.xerces.xs.XSObjectpublic java.lang.String getName()
name of this XSObject depending on the
 XSObject type.getName in interface org.apache.xerces.xs.XSObjectpublic boolean getAnonymous()
getAnonymous in interface org.apache.xerces.xs.XSTypeDefinitionpublic java.lang.String getNamespace()
null if it is
 unspecified.  defines how a namespace URI is attached to schema
 components.getNamespace in interface org.apache.xerces.xs.XSObjectpublic org.apache.xerces.xs.XSTypeDefinition getBaseType()
getBaseType in interface org.apache.xerces.xs.XSTypeDefinitionpublic short getDerivationMethod()
XSConstants EXTENTION, RESTRICTION.getDerivationMethod in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic boolean isFinal(short derivation)
isFinal in interface org.apache.xerces.xs.XSTypeDefinitionderivation - Extension, restriction, list, union constants
   (defined in XSConstants).public short getFinal()
getFinal in interface org.apache.xerces.xs.XSTypeDefinitionpublic boolean getAbstract()
getAbstract in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSObjectList getAttributeUses()
getAttributeUses in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSWildcard getAttributeWildcard()
getAttributeWildcard in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic short getContentType()
simpleType, or mixed, element-only (see
 cmParticle).getContentType in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSSimpleTypeDefinition getSimpleType()
nullgetSimpleType in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSParticle getParticle()
nullgetParticle in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic boolean isProhibitedSubstitution(short prohibited)
isProhibitedSubstitution in interface org.apache.xerces.xs.XSComplexTypeDefinitionprohibited - extention or restriction constants (defined in
   XSConstants).public short getProhibitedSubstitutions()
getProhibitedSubstitutions in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSObjectList getAnnotations()
getAnnotations in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
org.apache.xerces.xs.XSObjectnull otherwise.getNamespaceItem in interface org.apache.xerces.xs.XSObjectXSObject.getNamespaceItem()public org.apache.xerces.xs.XSAttributeUse getAttributeUse(java.lang.String namespace,
                                                  java.lang.String name)
public java.lang.String getTypeNamespace()
org.w3c.dom.TypeInfonull if the element does not have 
 declaration or if no namespace information is available.getTypeNamespace in interface org.w3c.dom.TypeInfopublic boolean isDerivedFrom(java.lang.String typeNamespaceArg,
                    java.lang.String typeNameArg,
                    int derivationMethod)
org.w3c.dom.TypeInfoTypeInfo on which the method 
 is being called, and the other type definition, i.e. the one passed 
 as parameters.isDerivedFrom in interface org.w3c.dom.TypeInfotypeNamespaceArg - the namespace of the other type definition.typeNameArg - the name of the other type definition.derivationMethod - the type of derivation and conditions applied 
   between two types, as described in the list of constants provided 
   in this interface.false
   .  If the document's schema is an XML Schema, the method will 
   true if the reference type definition is derived from 
   the other type definition according to the derivation parameter. If 
   the value of the parameter is 0 (no bit is set to 
   1 for the derivationMethod parameter), 
   the method will return true if the other type 
   definition can be reached by recursing any combination of {base 
   type definition}, {item type definition}, or {member type 
   definitions} from the reference type definition.public org.apache.xerces.xs.XSOpenContent getOpenContent()
org.apache.xerces.xs.XSComplexTypeDefinitiongetOpenContent in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic org.apache.xerces.xs.XSObjectList getAssertions()
org.apache.xerces.xs.XSComplexTypeDefinitionXSObjectList.getAssertions in interface org.apache.xerces.xs.XSComplexTypeDefinitionpublic void setContext(org.apache.xerces.xs.XSObject context)
public org.apache.xerces.xs.XSObject getContext()
org.apache.xerces.xs.XSTypeDefinitiongetContext in interface org.apache.xerces.xs.XSTypeDefinitionCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.