org.apache.ws.jaxme.xs
Interface XSType

All Superinterfaces:
XSObject, XSOpenAttrs
All Known Subinterfaces:
JAXBType
All Known Implementing Classes:
AbstractAtomicType, AbstractBuiltinType, AbstractListType, AbstractSimpleType, JAXBTypeImpl, JMChar, XSAnySimpleType, XSAnyType, XSAnyURI, XSBase64Binary, XSBoolean, XSByte, XSDate, XSDateTime, XSDecimal, XSDouble, XSDuration, XSEntities, XSEntity, XSFloat, XSGDay, XSGMonth, XSGMonthDay, XSGYear, XSGYearMonth, XSHexBinary, XSID, XSIDREF, XSIDREFs, XSInt, XSInteger, XSLanguage, XSLong, XSName, XSNCName, XSNegativeInteger, XSNMToken, XSNMTokens, XSNonNegativeInteger, XSNonPositiveInteger, XSNormalizedString, XSNotation, XSPositiveInteger, XSQName, XSShort, XSString, XSTime, XSToken, XSTypeImpl, XSUnsignedByte, XSUnsignedInt, XSUnsignedLong, XSUnsignedShort

public interface XSType
extends XSOpenAttrs

Interface of an XML Schema type. Includes complex and simple types.

Author:
Jochen Wiedmann

Method Summary
 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.
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSOpenAttrs
getOpenAttributes
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSObject
getLocator, getParentObject, getXSSchema, isTopLevelObject, validate
 

Method Detail

getAnnotations

XSAnnotation[] getAnnotations()

Returns the array of annotations.


isSimple

boolean isSimple()

Returns whether the type is simple or not.


getSimpleType

XSSimpleType getSimpleType()
                           throws org.xml.sax.SAXException

Returns the simple types information.

Throws:
java.lang.IllegalStateException - The type is complex.
org.xml.sax.SAXException

getComplexType

XSComplexType getComplexType()
                             throws org.xml.sax.SAXException

Returns the complex types information.

Throws:
java.lang.IllegalStateException - The type is simple
org.xml.sax.SAXException

isGlobal

boolean isGlobal()

Returns whether the type is global or not.


setGlobal

void setGlobal(boolean pGlobal)

Sets whether the type is global or not.


getName

XsQName getName()

If the type is global: Returns the types name. Otherwise returns null.


isBuiltin

boolean isBuiltin()

Returns whether the type is a builtin type of XML Schema.


getSchemaHeader

XsSchemaHeader getSchemaHeader()

Returns the types syntactical context or null, if no such context is available.