org.apache.ws.jaxme.xs.impl

Class XSSimpleTypeRestrictionImpl

Implemented Interfaces:
XSSimpleType
Known Direct Subclasses:
XSAtomicTypeRestrictionImpl, XSListTypeRestrictionImpl, XSUnionTypeRestrictionImpl

public abstract class XSSimpleTypeRestrictionImpl
extends XSSimpleTypeImpl

Author:
Jochen Wiedmann

Constructor Summary

XSSimpleTypeRestrictionImpl(XSType pParent, XSType pRestrictedType, XsGSimpleRestrictionModel pRestriction)

Method Summary

protected XSSimpleType
getBaseType()
XSEnumeration[]
getEnumerations()
Returns the values of the "enumeration" facets.
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.
protected XsGSimpleRestrictionModel
getRestriction()
boolean
isRestriction()
Returns whether the type is a restriction of another simple type.

Methods inherited from class org.apache.ws.jaxme.xs.impl.XSSimpleTypeImpl

getAtomicType, getListType, getUnionType, isAtomic, isList, isUnion

Constructor Details

XSSimpleTypeRestrictionImpl

protected XSSimpleTypeRestrictionImpl(XSType pParent,
                                      XSType pRestrictedType,
                                      XsGSimpleRestrictionModel pRestriction)
            throws SAXException

Method Details

getBaseType

protected XSSimpleType getBaseType()

getEnumerations

public XSEnumeration[] getEnumerations()
Returns the values of the "enumeration" facets.
Specified by:
getEnumerations 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

getRestriction

protected XsGSimpleRestrictionModel getRestriction()

isRestriction

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