org.apache.ws.jaxme.xs.jaxb.impl
Class JAXBSimpleTypeImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.jaxb.impl.JAXBSimpleTypeImpl
All Implemented Interfaces:
JAXBSimpleType, XSSimpleType

public class JAXBSimpleTypeImpl
extends java.lang.Object
implements JAXBSimpleType

Author:
Jochen Wiedmann

Constructor Summary
protected JAXBSimpleTypeImpl(XSType pMyType, XSSimpleType pBaseType)
          Creates a new instance of JAXBSimpleTypeImpl.
 
Method Summary
 XSAtomicType getAtomicType()
          Returns the atomic type details.
 XSEnumeration[] getEnumerations()
          Returns the values of the "enumeration" facets.
 JAXBJavaType getJAXBJavaType()
          Returns the jaxb:javaType customization details.
 JAXBTypesafeEnumClass getJAXBTypesafeEnumClass()
          Returns the jaxb:typesafeEnumClass details.
 XSListType getListType()
          Returns the list type details.
 java.lang.String[][] getPattern()
          Returns the value of the "pattern" facet or null, if the pattern has not been set.
 XSType getRestrictedType()
          If the simple type is a restriction, returns the restricted simple type.
 XSUnionType getUnionType()
          Returns the union type details.
 boolean isAtomic()
          Returns whether the simple type is atomic.
 boolean isList()
          Returns whether the simple type is a list.
 boolean isRestriction()
          Returns whether the type is a restriction of another simple type.
 boolean isUnion()
          Returns whether the simple type is a union.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBSimpleTypeImpl

protected JAXBSimpleTypeImpl(XSType pMyType,
                             XSSimpleType pBaseType)
                      throws org.xml.sax.SAXException

Creates a new instance of JAXBSimpleTypeImpl.

Throws:
org.xml.sax.SAXException
Method Detail

getJAXBJavaType

public JAXBJavaType getJAXBJavaType()
Description copied from interface: JAXBSimpleType

Returns the jaxb:javaType customization details.

Specified by:
getJAXBJavaType in interface JAXBSimpleType

getJAXBTypesafeEnumClass

public JAXBTypesafeEnumClass getJAXBTypesafeEnumClass()
Description copied from interface: JAXBSimpleType

Returns the jaxb:typesafeEnumClass details.

Specified by:
getJAXBTypesafeEnumClass in interface JAXBSimpleType

isAtomic

public boolean isAtomic()
Description copied from interface: XSSimpleType

Returns whether the simple type is atomic.

Specified by:
isAtomic in interface XSSimpleType

getAtomicType

public XSAtomicType getAtomicType()
Description copied from interface: XSSimpleType

Returns the atomic type details.

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

getListType

public XSListType getListType()
Description copied from interface: XSSimpleType

Returns the list type details.

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

getUnionType

public XSUnionType getUnionType()
Description copied from interface: XSSimpleType

Returns the union type details.

Specified by:
getUnionType in interface XSSimpleType

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

isRestriction

public boolean isRestriction()
Description copied from interface: XSSimpleType

Returns whether the type is a restriction of another simple type. (Almost all simple types are, the exception being the ur type XSAnySimpleType.

Specified by:
isRestriction in interface XSSimpleType

getRestrictedType

public XSType getRestrictedType()
Description copied from interface: XSSimpleType

If the simple type is a restriction, returns the restricted simple type.

Specified by:
getRestrictedType in interface XSSimpleType