|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XSType
Base interface for XSComplexType
and XSSimpleType
.
Field Summary | |
---|---|
static int |
EXTENSION
|
static int |
RESTRICTION
|
static int |
SUBSTITUTION
|
Method Summary | |
---|---|
XSComplexType |
asComplexType()
Casts this object to XSComplexType if possible, otherwise returns null. |
XSSimpleType |
asSimpleType()
Casts this object to XSSimpleType if possible, otherwise returns null. |
XSType |
getBaseType()
Returns the base type of this type. |
int |
getDerivationMethod()
|
XSType |
getRedefinedBy()
If this XSType is redefined by another type,
return that component. |
int |
getRedefinedCount()
Returns the number of complex types that redefine this component. |
boolean |
isComplexType()
Returns true if this instanceof XSComplexType . |
boolean |
isDerivedFrom(XSType t)
Returns true if this type is derived from the specified type. |
boolean |
isSimpleType()
Returns true if this instanceof XSSimpleType . |
XSType[] |
listSubstitutables()
Lists up types that can substitute this type by using xsi:type. |
Methods inherited from interface com.sun.xml.xsom.XSDeclaration |
---|
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal |
Methods inherited from interface com.sun.xml.xsom.XSComponent |
---|
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit |
Field Detail |
---|
static final int EXTENSION
static final int RESTRICTION
static final int SUBSTITUTION
Method Detail |
---|
XSType getBaseType()
int getDerivationMethod()
boolean isSimpleType()
this instanceof XSSimpleType
.
boolean isComplexType()
this instanceof XSComplexType
.
XSType[] listSubstitutables()
This method honors the block flag.
XSType getRedefinedBy()
XSType
is redefined by another type,
return that component.
int getRedefinedCount()
For example, if A is redefined by B and B is redefined by C, A.getRedefinedCount()==2, B.getRedefinedCount()==1, and C.getRedefinedCount()==0.
XSSimpleType asSimpleType()
XSComplexType asComplexType()
boolean isDerivedFrom(XSType t)
Note that t.isDerivedFrom(t) returns true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |