org.apache.ws.jaxme.xs.types
Class AbstractSimpleType

java.lang.Object
  extended byorg.apache.ws.jaxme.xs.types.AbstractSimpleType
All Implemented Interfaces:
XSObject, XSOpenAttrs, XSSimpleType, XSType
Direct Known Subclasses:
AbstractAtomicType, AbstractListType

public abstract class AbstractSimpleType
extends java.lang.Object
implements XSType, XSSimpleType

Author:
Jochen Wiedmann

Constructor Summary
AbstractSimpleType()
           
 
Method Summary
 XSAnnotation[] getAnnotations()
          Returns the array of annotations.
 XSAtomicType getAtomicType()
          Returns the atomic type details.
 XSComplexType getComplexType()
          Returns the complex types information.
 XSEnumeration[] getEnumerations()
          Returns the values of the "enumeration" facets.
 XSListType getListType()
          Returns the list type details.
 org.xml.sax.Locator getLocator()
          Returns the objects location.
 org.xml.sax.Attributes getOpenAttributes()
          Returns the additional attributes, if any, or null.
 XSObject getParentObject()
          Returns either of the following: If the object is the schema itself, returns null.
 java.lang.String[][] getPattern()
          Returns the value of the "pattern" facet or null, if the pattern has not been set.
 XSSimpleType getSimpleType()
          Returns the simple types information.
 XSUnionType getUnionType()
          Returns the union type details.
 XSObjectFactory getXSObjectFactory()
           
 XSSchema getXSSchema()
          Returns the objects schema.
 boolean isAtomic()
          Returns whether the simple type is atomic.
 boolean isGlobal()
          Returns whether the type is global or not.
 boolean isList()
          Returns whether the simple type is a list.
 boolean isSimple()
          Returns whether the type is simple or not.
 boolean isTopLevelObject()
          Returns whether the object is a top-level object.
 boolean isUnion()
          Returns whether the simple type is a union.
 void setGlobal(boolean pGlobal)
          Sets whether the type is global or not.
 void validate()
          Validates the objects internal state.
 
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.XSType
getName
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSSimpleType
getRestrictedType, isRestriction
 

Constructor Detail

AbstractSimpleType

public AbstractSimpleType()
Method Detail

getOpenAttributes

public org.xml.sax.Attributes getOpenAttributes()
Description copied from interface: XSOpenAttrs

Returns the additional attributes, if any, or null.

Specified by:
getOpenAttributes in interface XSOpenAttrs

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

isAtomic

public boolean isAtomic()
Description copied from interface: XSSimpleType

Returns whether the simple type is atomic.

Specified by:
isAtomic in interface XSSimpleType

isList

public boolean isList()
Description copied from interface: XSSimpleType

Returns whether the simple type is a list.

Specified by:
isList in interface XSSimpleType

isUnion

public boolean isUnion()
Description copied from interface: XSSimpleType

Returns whether the simple type is a union.

Specified by:
isUnion in interface XSSimpleType

getSimpleType

public XSSimpleType getSimpleType()
Description copied from interface: XSType

Returns the simple types information.

Specified by:
getSimpleType in interface XSType

getPattern

public java.lang.String[][] getPattern()
Description copied from interface: XSSimpleType

Returns the value of the "pattern" facet or null, if the pattern has not been set.

The returned value is an array of pattern arrays. The latter arrays are the patterns defined in one restriction step. These have to be combined by "OR". The resulting, combined arrays are being grouped by an "AND". This is according to http://www.w3.org/TR/xmlschema-2/index.html#rf-pattern, 4.3.4.3.

Specified by:
getPattern in interface XSSimpleType

getEnumerations

public XSEnumeration[] getEnumerations()
Description copied from interface: XSSimpleType

Returns the values of the "enumeration" facets.

Specified by:
getEnumerations in interface XSSimpleType

getAnnotations

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

Returns the array of annotations.

Specified by:
getAnnotations in interface XSType

getParentObject

public XSObject getParentObject()
Description copied from interface: XSObject

Returns either of the following:

Specified by:
getParentObject in interface XSObject

isTopLevelObject

public boolean isTopLevelObject()
Description copied from interface: XSObject

Returns whether the object is a top-level object. This is the case for the XsESchema itself and for all its childs only.

Specified by:
isTopLevelObject in interface XSObject

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

getXSSchema

public XSSchema getXSSchema()
Description copied from interface: XSObject

Returns the objects schema.

Specified by:
getXSSchema in interface XSObject

getComplexType

public XSComplexType getComplexType()
Description copied from interface: XSType

Returns the complex types information.

Specified by:
getComplexType in interface XSType

getAtomicType

public XSAtomicType getAtomicType()
Description copied from interface: XSSimpleType

Returns the atomic type details.

Specified by:
getAtomicType in interface XSSimpleType

getListType

public XSListType getListType()
Description copied from interface: XSSimpleType

Returns the list type details.

Specified by:
getListType in interface XSSimpleType

getUnionType

public XSUnionType getUnionType()
Description copied from interface: XSSimpleType

Returns the union type details.

Specified by:
getUnionType in interface XSSimpleType

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: XSObject

Returns the objects location.

Specified by:
getLocator in interface XSObject

getXSObjectFactory

public XSObjectFactory getXSObjectFactory()

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
Throws:
org.xml.sax.SAXException