public interface XSType extends XSOpenAttrs
Interface of an XML Schema type. Includes complex and simple types.
Modifier and Type | Method and Description |
---|---|
XSAnnotation[] |
getAnnotations()
Returns the array of annotations.
|
XSComplexType |
getComplexType()
Returns the complex types information.
|
XsQName |
getName()
If the type is global: Returns the types name.
|
XsSchemaHeader |
getSchemaHeader()
Returns the types syntactical context or null, if no such context
is available.
|
XSSimpleType |
getSimpleType()
Returns the simple types information.
|
boolean |
isBuiltin()
Returns whether the type is a builtin type of XML Schema.
|
boolean |
isGlobal()
Returns whether the type is global or not.
|
boolean |
isSimple()
Returns whether the type is simple or not.
|
void |
setGlobal(boolean pGlobal)
Sets whether the type is global or not.
|
getOpenAttributes
getLocator, getParentObject, getXSSchema, isTopLevelObject, validate
XSAnnotation[] getAnnotations()
Returns the array of annotations.
boolean isSimple()
Returns whether the type is simple or not.
XSSimpleType getSimpleType() throws org.xml.sax.SAXException
Returns the simple types information.
java.lang.IllegalStateException
- The type is complex.org.xml.sax.SAXException
XSComplexType getComplexType() throws org.xml.sax.SAXException
Returns the complex types information.
java.lang.IllegalStateException
- The type is simpleorg.xml.sax.SAXException
boolean isGlobal()
Returns whether the type is global or not.
void setGlobal(boolean pGlobal)
Sets whether the type is global or not.
XsQName getName()
If the type is global: Returns the types name. Otherwise returns null.
boolean isBuiltin()
Returns whether the type is a builtin type of XML Schema.
XsSchemaHeader getSchemaHeader()
Returns the types syntactical context or null, if no such context is available.