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

Class JAXBSimpleTypeImpl

Implemented Interfaces:
JAXBSimpleType, XSSimpleType

public class JAXBSimpleTypeImpl
extends java.lang.Object
implements JAXBSimpleType

Author:
Jochen Wiedmann

Constructor Summary

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.
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.

Constructor Details

JAXBSimpleTypeImpl

protected JAXBSimpleTypeImpl(XSType pMyType,
                             XSSimpleType pBaseType)
            throws SAXException
Creates a new instance of JAXBSimpleTypeImpl.

Method Details

getAtomicType

public XSAtomicType getAtomicType()
Returns the atomic type details.
Specified by:
getAtomicType in interface XSSimpleType

getEnumerations

public XSEnumeration[] getEnumerations()
Returns the values of the "enumeration" facets.
Specified by:
getEnumerations in interface XSSimpleType

getJAXBJavaType

public JAXBJavaType getJAXBJavaType()
Returns the jaxb:javaType customization details.
Specified by:
getJAXBJavaType in interface JAXBSimpleType

getJAXBTypesafeEnumClass

public JAXBTypesafeEnumClass getJAXBTypesafeEnumClass()
Returns the jaxb:typesafeEnumClass details.
Specified by:
getJAXBTypesafeEnumClass in interface JAXBSimpleType

getListType

public XSListType getListType()
Returns the list type details.
Specified by:
getListType in interface XSSimpleType

getPattern

public String[][] getPattern()
Specified by:
getPattern in interface XSSimpleType

getRestrictedType

public XSType getRestrictedType()
If the simple type is a restriction, returns the restricted simple type.
Specified by:
getRestrictedType in interface XSSimpleType

getUnionType

public XSUnionType getUnionType()
Returns the union type details.
Specified by:
getUnionType in interface XSSimpleType

isAtomic

public boolean isAtomic()
Returns whether the simple type is atomic.
Specified by:
isAtomic in interface XSSimpleType

isList

public boolean isList()
Returns whether the simple type is a list.
Specified by:
isList in interface XSSimpleType

isRestriction

public boolean isRestriction()
Specified by:
isRestriction in interface XSSimpleType

isUnion

public boolean isUnion()
Returns whether the simple type is a union.
Specified by:
isUnion in interface XSSimpleType