public class InputValue<V> extends Object
XMLInputValue
), atomic values, or maps, and by extension arbitrary objects ("external" items).Modifier | Constructor and Description |
---|---|
protected |
InputValue() |
protected |
InputValue(InputValue<V> value) |
|
InputValue(V value) |
Modifier and Type | Method and Description |
---|---|
V |
asObject() |
<T> T |
asObject(Class<T> type) |
protected static <T> Iterable<T> |
cache(Iterator<T> iterator,
int limit)
Cache a
Iterator . |
protected static <T> Iterator<T> |
iteratorOf(Supplier<T> supplier) |
Mult<? extends InputValue<V>> |
mult(int limit)
Make multiples of this input.
|
String |
toString() |
protected boolean |
valueSupplied() |
public InputValue(V value)
object
- A Java object that represents a single atomic value, sequence of atomic values,
map item, or other object (but not a node sequence).
The object may be a plain old Java object, for example:
String
: a single xs:string
atomic valueInteger
: a single xs:integer
atomic valueQName
: a single xs:QName
atomic valueIterator
<
Object
>
: a sequence of atomic valuesMap
<
Object
,
InputValue
>
: a XDM map
(where the keys are single atomic values and the values are arbitrary values)It may also be an object representing a non-XDM item.
protected InputValue()
protected InputValue(InputValue<V> value)
public V asObject() throws UnsupportedOperationException, NoSuchElementException
public final <T> T asObject(Class<T> type) throws UnsupportedOperationException, NoSuchElementException
public Mult<? extends InputValue<V>> mult(int limit)
limit
- The maximum number of multiples that will be made. -1
means unlimited.protected boolean valueSupplied()
protected static <T> Iterable<T> cache(Iterator<T> iterator, int limit)
Iterator
. Items are evicted after they have been supplied limit
times. Exceptions thrown by the input iterator are replayed.Copyright © 2010–2024 The DAISY Consortium. All rights reserved.