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

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

public abstract class AbstractSimpleType
extends AbstractBuiltinType
implements XSSimpleType

Author:
Jochen Wiedmann

Constructor Summary
AbstractSimpleType()
           
 
Method Summary
 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.
 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()
           
 boolean isAtomic()
          Returns whether the simple type is atomic.
 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.
 
Methods inherited from class org.apache.ws.jaxme.xs.types.AbstractBuiltinType
getAnnotations, getLocator, getOpenAttributes, getSchemaHeader, getXSSchema, isGlobal, setGlobal, validate
 
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.XSSimpleType
getRestrictedType, isRestriction
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSType
getName, isBuiltin
 

Constructor Detail

AbstractSimpleType

public AbstractSimpleType()
Method Detail

isSimple

public boolean isSimple()
Description copied from interface: XSType

Returns whether the type is simple or not.

Specified by:
isSimple 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

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

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

getXSObjectFactory

public XSObjectFactory getXSObjectFactory()