|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a complex or simple type definition. The interface may be updated or replaced.
Field Summary | |
static short |
COMPLEX_TYPE
This constant value signifies a complex type. |
static short |
SIMPLE_TYPE
This constant value signifies a simple type. |
Method Summary | |
boolean |
derivedFrom(java.lang.String namespace,
java.lang.String name,
short derivationMethod)
Convenience method: check if this type is derived from the given ancestor type. |
boolean |
derivedFromType(XSTypeDefinition ancestorType,
short derivationMethod)
Convenience method: check if this type is derived from the given ancestorType . |
boolean |
getAnonymous()
Convenience. |
XSTypeDefinition |
getBaseType()
{base type definition}: either a simple type definition or a complex type definition. |
short |
getFinal()
For complex types the returned value is a bit combination of the subset of { DERIVATION_EXTENSION, DERIVATION_RESTRICTION }
corresponding to final set of this type or
DERIVATION_NONE . |
short |
getTypeCategory()
Return whether this type definition is a simple type or complex type. |
boolean |
isFinal(short restriction)
{final}. |
Methods inherited from interface org.apache.xerces.impl.xs.psvi.XSObject |
getName, getNamespace, getNamespaceItem, getType |
Field Detail |
public static final short COMPLEX_TYPE
public static final short SIMPLE_TYPE
Method Detail |
public short getTypeCategory()
public XSTypeDefinition getBaseType()
public boolean isFinal(short restriction)
restriction
- Extension, restriction, list, union constants
(defined in XSConstants
).
public short getFinal()
DERIVATION_EXTENSION, DERIVATION_RESTRICTION
}
corresponding to final
set of this type or
DERIVATION_NONE
. For simple types the returned value is
a bit combination of the subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
} corresponding to final
set of this type or
DERIVATION_NONE
.
public boolean getAnonymous()
public boolean derivedFromType(XSTypeDefinition ancestorType, short derivationMethod)
ancestorType
.
ancestorType
- 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
. Return true if this type is derived
from ancestorType
.public boolean derivedFrom(java.lang.String namespace, java.lang.String name, short derivationMethod)
namespace
- An ancestor type namespace.name
- 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
. Return true if this type is derived
from ancestorType
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |