public abstract class AbstractListType extends AbstractSimpleType implements XSListType
Constructor and Description |
---|
AbstractListType() |
Modifier and Type | Method and Description |
---|---|
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.
|
getAtomicType, getComplexType, getEnumerations, getListType, getParentObject, getPattern, getSimpleType, getUnionType, getXSObjectFactory, isAtomic, isSimple, isTopLevelObject, isUnion
getAnnotations, getLocator, getOpenAttributes, getSchemaHeader, getXSSchema, isGlobal, setGlobal, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemType
public boolean isList()
XSSimpleType
Returns whether the simple type is a list.
isList
in interface XSSimpleType
isList
in class AbstractSimpleType
public java.lang.Long getLength()
XSListType
Returns the value of the "length" facet or null, if the facet is not set.
getLength
in interface XSListType
public java.lang.Long getMinLength()
XSListType
Returns the value of the "maxLength" facet or null, if the facet is not set.
getMinLength
in interface XSListType
public java.lang.Long getMaxLength()
XSListType
Returns the value of the "minLength" facet or null, if the facet is not set.
getMaxLength
in interface XSListType
public boolean isRestriction()
XSSimpleType
Returns whether the type is a restriction of another
simple type. (Almost all simple types are, the exception being
the ur type XSAnySimpleType
.
isRestriction
in interface XSSimpleType
public XSType getRestrictedType()
XSSimpleType
If the simple type is a restriction, returns the restricted simple type.
getRestrictedType
in interface XSSimpleType