|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.type.SchemaType
net.sf.saxon.type.SimpleType
net.sf.saxon.type.ListType
public class 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(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 |
Object |
map(Item item,
XPathContext context,
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(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 SimpleTypepublic SimpleType getItemType()
public void setItemType(SimpleType type)
throws SchemaException
type - the SimpleType for this ListType.
SchemaException
public void validateContent(CharSequence value,
NamespaceResolver namespaceResolver)
throws ValidationException
validateContent in class SimpleTypeValidationException
public SequenceIterator getTypedValue(CharSequence value)
throws ValidationException
getTypedValue in class SimpleTypevalue - the string value
ValidationException
public Object map(Item item,
XPathContext context,
Object info)
throws XPathException
map in interface MappingFunctionitem - 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 | ||||||||