org.apache.ws.jaxme.xs.impl

Class XSListTypeRestrictionImpl

Implemented Interfaces:
XSListType, XSSimpleType

public class XSListTypeRestrictionImpl
extends XSSimpleTypeRestrictionImpl
implements XSListType

Author:
Jochen Wiedmann

Constructor Summary

XSListTypeRestrictionImpl(XSType pParent, XSType pRestrictedType, XsGSimpleRestrictionModel pRestriction)

Method Summary

XSType
getItemType()
Returns the item type (which is, of course, a simple type).
Long
getLength()
Returns the value of the "length" facet or null, if the facet is not set.
XSListType
getListType()
Returns the list type details.
Long
getMaxLength()
Returns the value of the "minLength" facet or null, if the facet is not set.
Long
getMinLength()
Returns the value of the "maxLength" facet or null, if the facet is not set.
boolean
isList()
Returns whether the simple type is a list.

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

getBaseType, getEnumerations, getPattern, getRestrictedType, getRestriction, isRestriction

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

getAtomicType, getListType, getUnionType, isAtomic, isList, isUnion

Constructor Details

XSListTypeRestrictionImpl

public XSListTypeRestrictionImpl(XSType pParent,
                                 XSType pRestrictedType,
                                 XsGSimpleRestrictionModel pRestriction)
            throws SAXException

Method Details

getItemType

public XSType getItemType()
Returns the item type (which is, of course, a simple type).
Specified by:
getItemType in interface XSListType

getLength

public Long getLength()
Returns the value of the "length" facet or null, if the facet is not set.
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()
Returns the value of the "minLength" facet or null, if the facet is not set.
Specified by:
getMaxLength in interface XSListType

getMinLength

public Long getMinLength()
Returns the value of the "maxLength" facet or null, if the facet is not set.
Specified by:
getMinLength in interface XSListType

isList

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