|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.type.SchemaType | +--net.sf.saxon.type.SimpleType | +--net.sf.saxon.type.ListType
Represents a SimpleType that is a list of a given SimpleType, known as its itemType. A ListType may be a restriction of another ListType; the itemType must either be an AtomicType or a UnionType whose members are not list types.
Field Summary |
Fields inherited from class net.sf.saxon.type.SimpleType |
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNION |
Fields inherited from class net.sf.saxon.type.SchemaType |
ALL_DERIVATIONS, DERIVE_BY_EXTENSION, DERIVE_BY_LIST, DERIVE_BY_RESTRICTION, DERIVE_BY_SUBSTITUTION, DERIVE_BY_UNION, finalProhibitions, INVALID, UNVALIDATED, VALIDATED, VALIDATING, validationPhase |
Constructor Summary | |
ListType(NamePool pool)
Create a new ListType. |
Method Summary | |
SimpleType |
getItemType()
Returns the simpleType of the items in this ListType. |
SequenceIterator |
getTypedValue(java.lang.CharSequence value)
Get the typed value of a given input string. |
boolean |
isListType()
Returns true if this type is derived by list, or if it is derived by restriction from a list type, or if it is a union that contains a list as one of its members |
java.lang.Object |
map(Item item,
XPathContext context,
java.lang.Object info)
Implement the mapping function |
void |
setItemType(SimpleType type)
Sets the itemType for this ListType (the type of item that instances of this list type contain). |
void |
validateContent(java.lang.CharSequence value,
NamespaceResolver namespaceResolver)
Check whether a given input string is valid according to this SimpleType |
Methods inherited from class net.sf.saxon.type.SimpleType |
addFacet, getBuiltInBaseType, getFacet, getFacetList, getFacets, getFacets, getLocalFacets, getTypedValue, isNamespaceSensitive, isSimpleType, setFacets, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListType(NamePool pool)
Method Detail |
public boolean isListType()
isListType
in class SimpleType
public SimpleType getItemType()
public void setItemType(SimpleType type) throws SchemaException
type
- the SimpleType for this ListType.
SchemaException
public void validateContent(java.lang.CharSequence value, NamespaceResolver namespaceResolver) throws ValidationException
validateContent
in class SimpleType
ValidationException
public SequenceIterator getTypedValue(java.lang.CharSequence value) throws ValidationException
getTypedValue
in class SimpleType
value
- the string value
ValidationException
public java.lang.Object map(Item item, XPathContext context, java.lang.Object info) throws XPathException
map
in interface MappingFunction
item
- The item to be mapped.
If context is supplied, this must be the same as context.currentItem().context
- The processing context. This is supplied only for mapping constructs that
set the context node, position, and size. Otherwise it is null.info
- Arbitrary information supplied by the creator of the MappingIterator. It must be
read-only and immutable for the duration of the iteration.
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |