public class XMLInputValue<V> extends InputValue<V>
This interface has several sub-interfaces. Instances may implement one or more of them:
InputValue.asObject()
will throw a UnsupportedOperationException
unless the value is an
external item.Modifier and Type | Field and Description |
---|---|
protected boolean |
sequence |
protected BaseURIAwareXMLStreamReader |
streamReader |
Modifier | Constructor and Description |
---|---|
|
XMLInputValue(BaseURIAwareXMLStreamReader value) |
|
XMLInputValue(Iterator<? extends Node> value) |
protected |
XMLInputValue(Iterator<? extends Node> value,
boolean sequence) |
protected |
XMLInputValue(XMLInputValue<V> value,
boolean sequence) |
Modifier and Type | Method and Description |
---|---|
Iterator<Node> |
asNodeIterator()
|
XMLEventReader |
asXMLEventReader()
A stream of XML events as a
XMLEventReader . |
BaseURIAwareXMLStreamReader |
asXMLStreamReader()
A stream of XML events as a
XMLStreamReader . |
XMLInputValue<V> |
ensureSingleItem()
Ensure that the number of items in the sequence is exactly one.
|
protected static <V> Iterator<V> |
ensureSingleItem(Iterator<V> iterator) |
Mult<? extends XMLInputValue<V>> |
mult(int limit)
Make multiples of this input.
|
protected boolean |
valueSupplied() |
asObject, asObject, cache, iteratorOf, toString
protected BaseURIAwareXMLStreamReader streamReader
protected final boolean sequence
public XMLInputValue(BaseURIAwareXMLStreamReader value)
protected XMLInputValue(XMLInputValue<V> value, boolean sequence)
public BaseURIAwareXMLStreamReader asXMLStreamReader() throws UnsupportedOperationException, NoSuchElementException
XMLStreamReader
.public XMLEventReader asXMLEventReader() throws UnsupportedOperationException, NoSuchElementException
XMLEventReader
.public Iterator<Node> asNodeIterator() throws UnsupportedOperationException, NoSuchElementException
public Mult<? extends XMLInputValue<V>> mult(int limit)
InputValue
mult
in class InputValue<V>
limit
- The maximum number of multiples that will be made. -1
means unlimited.public XMLInputValue<V> ensureSingleItem()
protected boolean valueSupplied()
valueSupplied
in class InputValue<V>
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.