org.apache.ws.jaxme.xs.impl
Class XSListTypeImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSSimpleTypeImpl
      extended by org.apache.ws.jaxme.xs.impl.XSListTypeImpl
All 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()
          Returns the item type (which is, of course, a simple type).
 java.lang.Long getLength()
          Returns the value of the "length" facet or null, if the facet is not set.
 XSListType getListType()
          Returns the list type details.
 java.lang.Long getMaxLength()
          Returns the value of the "minLength" facet or null, if the facet is not set.
 java.lang.Long getMinLength()
          Returns the value of the "maxLength" facet or null, if the facet is not set.
 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.
 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, getUnionType, isAtomic, isUnion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSListTypeImpl

public XSListTypeImpl(XSType pOwner,
                      XsEList pBaseList)
               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

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

isList

public boolean isList()
Description copied from interface: XSSimpleType

Returns whether the simple type is a list.

Specified by:
isList in interface XSSimpleType
Overrides:
isList in class XSSimpleTypeImpl

getListType

public XSListType getListType()
Description copied from interface: XSSimpleType

Returns the list type details.

Specified by:
getListType in interface XSSimpleType
Overrides:
getListType in class XSSimpleTypeImpl

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

getLength

public java.lang.Long getLength()
Description copied from interface: XSListType

Returns the value of the "length" facet or null, if the facet is not set.

Specified by:
getLength in interface XSListType

getMinLength

public java.lang.Long getMinLength()
Description copied from interface: XSListType

Returns the value of the "maxLength" facet or null, if the facet is not set.

Specified by:
getMinLength in interface XSListType

getMaxLength

public java.lang.Long getMaxLength()
Description copied from interface: XSListType

Returns the value of the "minLength" facet or null, if the facet is not set.

Specified by:
getMaxLength in interface XSListType

getItemType

public XSType getItemType()
Description copied from interface: XSListType

Returns the item type (which is, of course, a simple type).

Specified by:
getItemType in interface XSListType