- All Superinterfaces:
XSObject
- All Known Subinterfaces:
XSComplexTypeDefinition
,XSSimpleType
,XSSimpleTypeDefinition
- All Known Implementing Classes:
XSSimpleTypeDecl
,XSSimpleTypeDelegate
This interface represents a complex or simple type definition.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
The object describes a complex type.static final short
The object describes a simple type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
derivedFrom
(String namespace, String name, short derivationMethod) Convenience method which checks if this type is derived from the given ancestor type.boolean
derivedFromType
(XSTypeDefinition ancestorType, short derivationMethod) Convenience method which checks if this type is derived from the givenancestorType
.boolean
Convenience attribute.{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 tofinal
set of this type orDERIVATION_NONE
.short
Return whether this type definition is a simple type or complex type.boolean
isFinal
(short restriction) {final}.Methods inherited from interface org.apache.jena.ext.xerces.xs.XSObject
getName, getNamespace, getNamespaceItem, getType
-
Field Details
-
COMPLEX_TYPE
static final short COMPLEX_TYPEThe object describes a complex type.- See Also:
-
SIMPLE_TYPE
static final short SIMPLE_TYPEThe object describes a simple type.- See Also:
-
-
Method Details
-
getTypeCategory
short getTypeCategory()Return whether this type definition is a simple type or complex type. -
getBaseType
XSTypeDefinition getBaseType(){base type definition}: either a simple type definition or a complex type definition. -
isFinal
boolean isFinal(short restriction) {final}. For a complex type definition it is a subset of {extension, restriction}. For a simple type definition it is a subset of {extension, list, restriction, union}.- Parameters:
restriction
- Extension, restriction, list, union constants (defined inXSConstants
).- Returns:
- True if
restriction
is in the final set, otherwise false.
-
getFinal
short getFinal()For complex types the returned value is a bit combination of the subset of {DERIVATION_EXTENSION, DERIVATION_RESTRICTION
} corresponding tofinal
set of this type orDERIVATION_NONE
. For simple types the returned value is a bit combination of the subset of {DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
} corresponding tofinal
set of this type orDERIVATION_NONE
. -
getAnonymous
boolean getAnonymous()Convenience attribute. A boolean that specifies if the type definition is anonymous. -
derivedFromType
Convenience method which checks if this type is derived from the givenancestorType
.- Parameters:
ancestorType
- An ancestor type definition.derivationMethod
- A bit combination representing a subset of {DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.- Returns:
- True if this type is derived from
ancestorType
using only derivation methods from thederivationMethod
.
-
derivedFrom
Convenience method which checks if this type is derived from the given ancestor type.- Parameters:
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
}.- Returns:
- True if this type is derived from
ancestorType
using only derivation methods from thederivationMethod
.
-