- All Superinterfaces:
XSObject
,XSTypeDefinition
This interface represents the Complex Type Definition schema component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final short
Represents an element-only content type.static final short
Represents an empty content type.static final short
Represents a mixed content type.static final short
Represents a simple content type.Fields inherited from interface org.apache.jena.ext.xerces.xs.XSTypeDefinition
COMPLEX_TYPE, SIMPLE_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
[abstract]: a boolean.A sequence of [annotations] or an emptyXSObjectList
.A set of attribute uses if it exists, otherwise an emptyXSObjectList
.An attribute wildcard if it exists, otherwisenull
.short
[content type]: one of empty (CONTENTTYPE_EMPTY
), a simple type definition (CONTENTTYPE_SIMPLE
), mixed (CONTENTTYPE_MIXED
), or element-only (CONTENTTYPE_ELEMENT
).short
[derivation method]: eitherDERIVATION_EXTENSION
,DERIVATION_RESTRICTION
, orDERIVATION_NONE
(seeXSConstants
).A particle for a mixed or element-only content model, otherwisenull
.short
[prohibited substitutions]: A subset of {extension, restriction} orDERIVATION_NONE
represented as a bit flag (seeXSConstants
).A simple type definition corresponding to a simple content model, otherwisenull
.boolean
isProhibitedSubstitution
(short restriction) [prohibited substitutions]: a subset of {extension, restriction}Methods inherited from interface org.apache.jena.ext.xerces.xs.XSObject
getName, getNamespace, getNamespaceItem, getType
Methods inherited from interface org.apache.jena.ext.xerces.xs.XSTypeDefinition
derivedFrom, derivedFromType, getAnonymous, getBaseType, getFinal, getTypeCategory, isFinal
-
Field Details
-
CONTENTTYPE_EMPTY
static final short CONTENTTYPE_EMPTYRepresents an empty content type. A content type with the distinguished value empty validates elements with no character or element information item children.- See Also:
-
CONTENTTYPE_SIMPLE
static final short CONTENTTYPE_SIMPLERepresents a simple content type. A content type which is simple validates elements with character-only children.- See Also:
-
CONTENTTYPE_ELEMENT
static final short CONTENTTYPE_ELEMENTRepresents an element-only content type. An element-only content type validates elements with children that conform to the supplied content model.- See Also:
-
CONTENTTYPE_MIXED
static final short CONTENTTYPE_MIXEDRepresents a mixed content type.- See Also:
-
-
Method Details
-
getDerivationMethod
short getDerivationMethod()[derivation method]: eitherDERIVATION_EXTENSION
,DERIVATION_RESTRICTION
, orDERIVATION_NONE
(seeXSConstants
). -
getAbstract
boolean getAbstract()[abstract]: a boolean. Complex types for whichabstract
is true must not be used as the type definition for the validation of element information items. -
getAttributeUses
XSObjectList getAttributeUses()A set of attribute uses if it exists, otherwise an emptyXSObjectList
. -
getAttributeWildcard
XSWildcard getAttributeWildcard()An attribute wildcard if it exists, otherwisenull
. -
getContentType
short getContentType()[content type]: one of empty (CONTENTTYPE_EMPTY
), a simple type definition (CONTENTTYPE_SIMPLE
), mixed (CONTENTTYPE_MIXED
), or element-only (CONTENTTYPE_ELEMENT
). -
getSimpleType
XSSimpleTypeDefinition getSimpleType()A simple type definition corresponding to a simple content model, otherwisenull
. -
getParticle
XSParticle getParticle()A particle for a mixed or element-only content model, otherwisenull
. -
isProhibitedSubstitution
boolean isProhibitedSubstitution(short restriction) [prohibited substitutions]: a subset of {extension, restriction}- Parameters:
restriction
- Extension or restriction constants (seeXSConstants
).- Returns:
- True if
restriction
is a prohibited substitution, otherwise false.
-
getProhibitedSubstitutions
short getProhibitedSubstitutions()[prohibited substitutions]: A subset of {extension, restriction} orDERIVATION_NONE
represented as a bit flag (seeXSConstants
). -
getAnnotations
XSObjectList getAnnotations()A sequence of [annotations] or an emptyXSObjectList
.
-