org.apache.ws.jaxme.xs.impl
Class XSTypeImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSObjectImpl
      extended by org.apache.ws.jaxme.xs.impl.XSOpenAttrsImpl
          extended by org.apache.ws.jaxme.xs.impl.XSTypeImpl
All Implemented Interfaces:
XSObject, XSOpenAttrs, XSType
Direct Known Subclasses:
JAXBTypeImpl

public class XSTypeImpl
extends XSOpenAttrsImpl
implements XSType

Author:
Jochen Wiedmann, Ias

Nested Class Summary
 class XSTypeImpl.XSAllComplexTypeImpl
           
 class XSTypeImpl.XSBasicComplexTypeImpl
           
 class XSTypeImpl.XSChoiceComplexTypeImpl
           
 class XSTypeImpl.XSComplexContentImpl
           
 class XSTypeImpl.XSComplexTypeImpl
           
 class XSTypeImpl.XSGroupComplexTypeImpl
           
 class XSTypeImpl.XSSequenceComplexTypeImpl
           
 class XSTypeImpl.XSSimpleContentImpl
           
 
Constructor Summary
protected XSTypeImpl(XSObject pParent, XsETopLevelSimpleType pSimpleType)
           
protected XSTypeImpl(XSObject pParent, XsTComplexType pComplexType)
           
protected XSTypeImpl(XSObject pParent, XsTLocalComplexType pComplexType)
           
protected XSTypeImpl(XSObject pParent, XsTLocalSimpleType pSimpleType)
           
protected XSTypeImpl(XSObject pParent, XsTSimpleRestrictionType pRestriction)
           
 
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.
protected  boolean isValidated()
           
 void setGlobal(boolean pGlobal)
          Sets whether the type is global or not.
 void validate()
          Validates the objects internal state.
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSOpenAttrsImpl
getOpenAttributes
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSObjectImpl
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

XSTypeImpl

protected XSTypeImpl(XSObject pParent,
                     XsETopLevelSimpleType pSimpleType)
              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

XSTypeImpl

protected XSTypeImpl(XSObject pParent,
                     XsTLocalSimpleType pSimpleType)

XSTypeImpl

protected XSTypeImpl(XSObject pParent,
                     XsTComplexType pComplexType)
              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

XSTypeImpl

protected XSTypeImpl(XSObject pParent,
                     XsTLocalComplexType pComplexType)

XSTypeImpl

protected XSTypeImpl(XSObject pParent,
                     XsTSimpleRestrictionType pRestriction)
              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

isValidated

protected boolean isValidated()

getName

public XsQName getName()
Description copied from interface: XSType

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

Specified by:
getName in interface XSType

isSimple

public boolean isSimple()
Description copied from interface: XSType

Returns whether the type is simple or not.

Specified by:
isSimple in interface XSType

isGlobal

public boolean isGlobal()
Description copied from interface: XSType

Returns whether the type is global or not.

Specified by:
isGlobal in interface XSType

setGlobal

public void setGlobal(boolean pGlobal)
Description copied from interface: XSType

Sets whether the type is global or not.

Specified by:
setGlobal in interface XSType

getAnnotations

public XSAnnotation[] getAnnotations()
Description copied from interface: XSType

Returns the array of annotations.

Specified by:
getAnnotations in interface XSType

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XSObject

Validates the objects internal state.

Specified by:
validate in interface XSObject
Overrides:
validate in class XSObjectImpl
Throws:
org.xml.sax.SAXException

getSimpleType

public XSSimpleType getSimpleType()
                           throws org.xml.sax.SAXException
Description copied from interface: XSType

Returns the simple types information.

Specified by:
getSimpleType in interface XSType
Throws:
org.xml.sax.SAXException

getComplexType

public XSComplexType getComplexType()
                             throws org.xml.sax.SAXException
Description copied from interface: XSType

Returns the complex types information.

Specified by:
getComplexType in interface XSType
Throws:
org.xml.sax.SAXException

isBuiltin

public boolean isBuiltin()
Description copied from interface: XSType

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

Specified by:
isBuiltin in interface XSType

getSchemaHeader

public XsSchemaHeader getSchemaHeader()
Description copied from interface: XSType

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

Specified by:
getSchemaHeader in interface XSType