| Modifier and Type | Field and Description |
|---|---|
| private Ref. | |
| private final Set | |
| private SimpleTypeImpl | |
| private short | redefiningCount
Number of times this component redefines other components. |
| Access | Constructor and Description |
|---|---|
| pack-priv | SimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref.
|
| Modifier and Type | Method and Description |
|---|---|
| public final <T> T | |
| public final <T> T | |
| public final XSComplexType | asComplexType()
Implements com. Casts this object to XSComplexType if possible, otherwise returns null. |
| public final XSContentType | asEmpty()
Implements com. If this content type represents the empty content, return |
| public XSListSimpleType | |
| public final XSParticle | asParticle()
Implements com. Equivalent of |
| public XSRestrictionSimpleType | |
| public final XSSimpleType | asSimpleType()
Implements com. Casts this object to XSSimpleType if possible, otherwise returns null. |
| public XSUnionSimpleType | |
| public XSListSimpleType | getBaseListType()
Implements com. Gets the nearest ancestor |
| public XSType | |
| public XSUnionSimpleType | getBaseUnionType()
Implements com. Gets the nearest ancestor |
| public XSContentType | |
| public final int | |
| public XSSimpleType | getRedefinedBy()
Implements com. If this is redefined by another simple type, return that component. |
| public int | getRedefinedCount()
Implements com. Returns the number of complex types that redefine this component. |
| public XSSimpleType | getSimpleBaseType()
Implements com. Gets the base type as XSSimpleType. |
| public XSSimpleType | |
| 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 | isFinal(XSVariety v)
Implements com. Returns true if this type definition is marked as 'final'
with respect to the given |
| public boolean | isList()
Implements com. Returns true if |
| public boolean | isPrimitive()
Implements com. Returns true if this is a primitive built-in simple type (that directly derives from xs:anySimpleType, by definition.) |
| public boolean | isRestriction()
Implements com. Returns true if |
| public final boolean | isSimpleType()
Implements com. Returns true if |
| public boolean | isUnion()
Implements com. Returns true if |
| public XSType[] | listSubstitutables()
Implements com. Lists up types that can substitute this type by using xsi:type. |
| public void | |
| public final void | |
| public final void |
| baseType | back to summary |
|---|---|
| private Ref. | |
| finalSet | back to summary |
|---|---|
| private final Set<XSVariety> finalSet | |
| redefinedBy | back to summary |
|---|---|
| private SimpleTypeImpl redefinedBy | |
| redefiningCount | back to summary |
|---|---|
| private short redefiningCount Number of times this component redefines other components. | |
| SimpleTypeImpl | back to summary |
|---|---|
| pack-priv SimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref. | |
| apply | back to summary |
|---|---|
| public final <T> T apply(XSFunction<T> function) Implements com. Doc from com. Accepts a functor. | |
| apply | back to summary |
|---|---|
| public final <T> T apply(XSContentTypeFunction<T> function) Implements com. | |
| asComplexType | back to summary |
|---|---|
| public final XSComplexType asComplexType() Implements com. Doc from com. Casts this object to XSComplexType if possible, otherwise returns null. | |
| asEmpty | back to summary |
|---|---|
| public final XSContentType asEmpty() Implements com. Doc from com. If this content type represents the empty content, return | |
| asList | back to summary |
|---|---|
| public XSListSimpleType asList() Implements com. | |
| asParticle | back to summary |
|---|---|
| public final XSParticle asParticle() Implements com. Doc from com. Equivalent of | |
| asRestriction | back to summary |
|---|---|
| public XSRestrictionSimpleType asRestriction() Implements com. | |
| asSimpleType | back to summary |
|---|---|
| public final XSSimpleType asSimpleType() Implements com. Doc from com. Casts this object to XSSimpleType if possible, otherwise returns null. | |
| asUnion | back to summary |
|---|---|
| public XSUnionSimpleType asUnion() Implements com. | |
| getBaseListType | back to summary |
|---|---|
| public XSListSimpleType getBaseListType() Implements com. Doc from com. Gets the nearest ancestor | |
| 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 | |
| getBaseUnionType | back to summary |
|---|---|
| public XSUnionSimpleType getBaseUnionType() Implements com. Doc from com. Gets the nearest ancestor | |
| getContentType | back to summary |
|---|---|
| public XSContentType getContentType() Implements com. | |
| getDerivationMethod | back to summary |
|---|---|
| public final int getDerivationMethod() Implements com. | |
| getRedefinedBy | back to summary |
|---|---|
| public XSSimpleType getRedefinedBy() Implements com. Doc from com. If this is redefined by another simple 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. | |
| getSimpleBaseType | back to summary |
|---|---|
| public XSSimpleType getSimpleBaseType() Implements com. Doc from com. Gets the base type as XSSimpleType.
Equivalent to
| |
| getType | back to summary |
|---|---|
| public XSSimpleType getType() Implements com. Doc from com. Obtains a reference as a 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(XSVariety v) Implements com. Doc from com. Returns true if this type definition is marked as 'final'
with respect to the given | |
| isList | back to summary |
|---|---|
| public boolean isList() Implements com. Doc from com. Returns true if | |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Implements com. Doc from com. Returns true if this is a primitive built-in simple type (that directly derives from xs:anySimpleType, by definition.) | |
| isRestriction | back to summary |
|---|---|
| public boolean isRestriction() Implements com. Doc from com. Returns true if | |
| isSimpleType | back to summary |
|---|---|
| public final boolean isSimpleType() Implements com. Doc from com. Returns true if | |
| isUnion | back to summary |
|---|---|
| public boolean isUnion() Implements com. Doc from com. Returns true if | |
| 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(SimpleTypeImpl st) | |
| visit | back to summary |
|---|---|
| public final void visit(XSVisitor visitor) Implements com. Doc from com. Accepts a visitor. | |
| visit | back to summary |
|---|---|
| public final void visit(XSContentTypeVisitor visitor) Implements com. | |