| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private Ref. | |
| private final int | |
| private Ref. | |
| private int | |
| private XSContentType | |
| private final int | |
| private WildcardImpl | |
| private final boolean | |
| private ComplexTypeImpl | |
| private short | redefiningCount
Number of times this component redefines other components. |
| private XSElementDecl |
| Access | Constructor and Description |
|---|---|
| public | ComplexTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, boolean _abstract, int _derivationMethod, Ref.
|
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| public XSComplexType | asComplexType()
Implements com. Casts this object to XSComplexType if possible, otherwise returns null. |
| public XSSimpleType | asSimpleType()
Implements com. Casts this object to XSSimpleType if possible, otherwise returns null. |
| public XSAttributeUse | getAttributeUse(String nsURI, String localName)
Implements com. Looks for the attribute use with the specified name from all the attribute uses that are directly/indirectly referenced from this component. |
| public Collection | getAttributeUses()
Overrides com. Implements com. Gets all the attribute uses. |
| public XSWildcard | |
| public XSType | |
| public XSContentType | getContentType()
Implements com. The content of this complex type. |
| public int | |
| public List | getElementDecls()
Implements com. Returns a list of element declarations of this type. |
| public XSContentType | getExplicitContent()
Implements com. Gets the explicit content of a complex type with a complex content that was derived by extension. |
| public XSComplexType | getRedefinedBy()
Implements com. If this is redefined by another complex type, return that component. |
| public int | getRedefinedCount()
Implements com. Returns the number of complex types that redefine this component. |
| public XSElementDecl | |
| public List | getSubtypes()
Implements com. Returns a list of direct subtypes of this complex type. |
| public XSComplexType | |
| public boolean | isAbstract()
Implements com. Checks if this complex type is declared as an abstract type. |
| public final boolean | isComplexType()
Implements com. Returns true if |
| public boolean | isDerivedFrom(XSType t)
Implements com. Returns true if this type is derived from the specified type. |
| public boolean | |
| public boolean | |
| public final boolean | isSimpleType()
Implements com. Returns true if |
| public boolean | isSubstitutionProhibited(int method)
Implements com. Roughly corresponds to the block attribute. |
| public Iterator | iterateAttributeUses()
Overrides com. Implements com. Lists all the attribute uses that are directly/indirectly referenced from this component. |
| public XSType[] | listSubstitutables()
Implements com. Lists up types that can substitute this type by using xsi:type. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setWildcard(WildcardImpl wc)
Implements abstract com. Set the local attribute wildcard. |
| public void |
| _abstract | back to summary |
|---|---|
| private final boolean _abstract | |
| baseType | back to summary |
|---|---|
| private Ref. | |
| blockValue | back to summary |
|---|---|
| private final int blockValue | |
| contentType | back to summary |
|---|---|
| private Ref. | |
| derivationMethod | back to summary |
|---|---|
| private int derivationMethod | |
| explicitContent | back to summary |
|---|---|
| private XSContentType explicitContent | |
| finalValue | back to summary |
|---|---|
| private final int finalValue | |
| localAttWildcard | back to summary |
|---|---|
| private WildcardImpl localAttWildcard | |
| mixed | back to summary |
|---|---|
| private final boolean mixed | |
| redefinedBy | back to summary |
|---|---|
| private ComplexTypeImpl redefinedBy | |
| redefiningCount | back to summary |
|---|---|
| private short redefiningCount Number of times this component redefines other components. | |
| scope | back to summary |
|---|---|
| private XSElementDecl scope | |
| ComplexTypeImpl | back to summary |
|---|---|
| public ComplexTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, boolean _abstract, int _derivationMethod, Ref. | |
| apply | back to summary |
|---|---|
| public <T> T apply(XSFunction<T> function) Implements com. Doc from com. Accepts a functor. | |
| asComplexType | back to summary |
|---|---|
| public XSComplexType asComplexType() Implements com. Doc from com. Casts this object to XSComplexType if possible, otherwise returns null. | |
| asSimpleType | back to summary |
|---|---|
| public XSSimpleType asSimpleType() Implements com. Doc from com. Casts this object to XSSimpleType if possible, otherwise returns null. | |
| getAttributeUse | back to summary |
|---|---|
| public XSAttributeUse getAttributeUse(String nsURI, String localName) Implements com. Doc from com. Looks for the attribute use with the specified name from all the attribute uses that are directly/indirectly referenced from this component. This is the exact implementation of the "attribute use" schema component. | |
| getAttributeUses | back to summary |
|---|---|
| public Collection Overrides com. Implements com. Doc from com. Gets all the attribute uses. | |
| getAttributeWildcard | back to summary |
|---|---|
| public XSWildcard getAttributeWildcard() Implements com. | |
| getBaseType | back to summary |
|---|---|
| public XSType getBaseType() Implements com. Doc from com. Returns the base type of this type.
Note that if this type represents | |
| getContentType | back to summary |
|---|---|
| public XSContentType getContentType() Implements com. Doc from com. The content of this complex type. | |
| getDerivationMethod | back to summary |
|---|---|
| public int getDerivationMethod() Implements com. | |
| getElementDecls | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list of element declarations of this type. | |
| getExplicitContent | back to summary |
|---|---|
| public XSContentType getExplicitContent() Implements com. Doc from com. Gets the explicit content of a complex type with a complex content that was derived by extension. Informally, the "explicit content" is the portion of the content model added in this derivation. IOW, it's a delta between the base complex type and this complex type. For example, when a complex type T2 derives fom T1, then: content type of T2 = SEQUENCE( content type of T1, explicit content of T2 ) | |
| getRedefinedBy | back to summary |
|---|---|
| public XSComplexType getRedefinedBy() Implements com. Doc from com. If this is redefined by another complex type, return that component. | |
| getRedefinedCount | back to summary |
|---|---|
| public int getRedefinedCount() Implements com. Doc from com. Returns the number of complex types that redefine this component. For example, if A is redefined by B and B is redefined by C, A.getRedefinedCount()==2, B.getRedefinedCount()==1, and C.getRedefinedCount()==0. | |
| getScope | back to summary |
|---|---|
| public XSElementDecl getScope() Implements com. Doc from com. Gets the scope of this complex type. This is not a property defined in the schema spec. | |
| getSubtypes | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list of direct subtypes of this complex type. If the type is not subtyped, returns empty list. Doesn't return null. Note that the complex type may be extended outside of the scope of the schemaset known to XSOM. | |
| getType | back to summary |
|---|---|
| public XSComplexType getType() Implements com. Doc from com. Obtains a reference as a type. | |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Implements com. Doc from com. Checks if this complex type is declared as an abstract type. | |
| isComplexType | back to summary |
|---|---|
| public final boolean isComplexType() Implements com. Doc from com. Returns true if | |
| isDerivedFrom | back to summary |
|---|---|
| public boolean isDerivedFrom(XSType t) Implements com. Doc from com. Returns true if this type is derived from the specified type.
Note that | |
| isFinal | back to summary |
|---|---|
| public boolean isFinal(int derivationMethod) Implements com. | |
| isMixed | back to summary |
|---|---|
| public boolean isMixed() Implements com. | |
| isSimpleType | back to summary |
|---|---|
| public final boolean isSimpleType() Implements com. Doc from com. Returns true if | |
| isSubstitutionProhibited | back to summary |
|---|---|
| public boolean isSubstitutionProhibited(int method) Implements com. Doc from com. Roughly corresponds to the block attribute. But see the spec for gory detail. | |
| iterateAttributeUses | back to summary |
|---|---|
| public Iterator Overrides com. Implements com. Doc from com. Lists all the attribute uses that are directly/indirectly referenced from this component. This is the exact implementation of the "attribute use" schema component. | |
| listSubstitutables | back to summary |
|---|---|
| public XSType[] listSubstitutables() Implements com. Doc from com. Lists up types that can substitute this type by using xsi:type. Includes this type itself. This method honors the block flag. | |
| redefine | back to summary |
|---|---|
| public void redefine(ComplexTypeImpl ct) Called when this complex type redefines the specified complex type. | |
| setContentType | back to summary |
|---|---|
| public void setContentType(Ref. | |
| setExplicitContent | back to summary |
|---|---|
| public void setExplicitContent(XSContentType v) | |
| setScope | back to summary |
|---|---|
| public void setScope(XSElementDecl _scope) | |
| setWildcard | back to summary |
|---|---|
| public void setWildcard(WildcardImpl wc) Implements abstract com. Set the local attribute wildcard. | |
| visit | back to summary |
|---|---|
| public void visit(XSVisitor visitor) Implements com. Doc from com. Accepts a visitor. | |