org.apache.ws.jaxme.xs.types
Class AbstractListType

java.lang.Object
  extended by org.apache.ws.jaxme.xs.types.AbstractBuiltinType
      extended by org.apache.ws.jaxme.xs.types.AbstractSimpleType
          extended by org.apache.ws.jaxme.xs.types.AbstractListType
All Implemented Interfaces:
XSListType, XSObject, XSOpenAttrs, XSSimpleType, XSType
Direct Known Subclasses:
XSEntities, XSIDREFs, XSNMTokens

public abstract class AbstractListType
extends AbstractSimpleType
implements XSListType

Author:
Jochen Wiedmann

Constructor Summary
AbstractListType()
           
 
Method Summary
 java.lang.Long getLength()
          Returns the value of the "length" facet or null, if the facet is not set.
 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.
 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.types.AbstractSimpleType
getAtomicType, getComplexType, getEnumerations, getListType, getParentObject, getPattern, getSimpleType, getUnionType, getXSObjectFactory, isAtomic, isSimple, isTopLevelObject, isUnion
 
Methods inherited from class org.apache.ws.jaxme.xs.types.AbstractBuiltinType
getAnnotations, getLocator, getOpenAttributes, getSchemaHeader, getXSSchema, isGlobal, setGlobal, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSListType
getItemType
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSType
getName, isBuiltin
 

Constructor Detail

AbstractListType

public AbstractListType()
Method Detail

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 AbstractSimpleType

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

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