net.sf.jaxme.xs
Interface XSType

All Superinterfaces:
XSObject
All Known Subinterfaces:
JAXBType
All Known Implementing Classes:
AbstractSimpleType, JAXBTypeImpl, XSTypeImpl

public interface XSType
extends XSObject

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.
 XSSimpleType getSimpleType()
          Returns the simple types information.
 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 net.sf.jaxme.xs.XSObject
getLocator, getParentObject, getXSSchema, isTopLevelObject, validate
 

Method Detail

getAnnotations

public XSAnnotation[] getAnnotations()

Returns the array of annotations.


isSimple

public boolean isSimple()

Returns whether the type is simple or not.


getSimpleType

public 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

public 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

public boolean isGlobal()

Returns whether the type is global or not.


setGlobal

public void setGlobal(boolean pGlobal)

Sets whether the type is global or not.


getName

public XsQName getName()

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