org.apache.ws.jaxme.xs.impl

Class XSListTypeImpl

Implemented Interfaces:
XSListType, XSSimpleType

public class XSListTypeImpl
extends XSSimpleTypeImpl
implements XSListType

Author:
Jochen Wiedmann

Constructor Summary

XSListTypeImpl(XSType pOwner, XsEList pBaseList)

Method Summary

XSEnumeration[]
getEnumerations()
Returns the values of the "enumeration" facets.
XSType
getItemType()
Long
getLength()
XSListType
getListType()
Returns the list type details.
Long
getMaxLength()
Long
getMinLength()
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.
boolean
isList()
Returns whether the simple type is a list.
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

XSListTypeImpl

public XSListTypeImpl(XSType pOwner,
                      XsEList pBaseList)
            throws SAXException

Method Details

getEnumerations

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

getItemType

public XSType getItemType()
Specified by:
getItemType in interface XSListType

getLength

public Long getLength()
Specified by:
getLength in interface XSListType

getListType

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

getMaxLength

public Long getMaxLength()
Specified by:
getMaxLength in interface XSListType

getMinLength

public Long getMinLength()
Specified by:
getMinLength in interface XSListType

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

isList

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

isRestriction

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