ValueRepresentation
AnyURIValue
, AtomicValue
, Base64BinaryValue
, BigIntegerValue
, BooleanValue
, CalendarValue
, DateTimeValue
, DateValue
, DayTimeDurationValue
, DecimalValue
, DoubleValue
, DurationValue
, EmptySequence
, FloatValue
, GDateValue
, GDayValue
, GMonthDayValue
, GMonthValue
, GYearMonthValue
, GYearValue
, HexBinaryValue
, Int64Value
, IntegerRange
, IntegerValue
, NotationValue
, NumericValue
, ObjectValue
, QNameValue
, QualifiedNameValue
, SequenceExtent
, SingletonNode
, StringValue
, TimeValue
, UntypedAtomicValue
, YearMonthDurationValue
public interface GroundedValue extends ValueRepresentation
EMPTY_VALUE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
Item |
itemAt(int n) |
Get the n'th item in the value, counting from 0
|
GroundedValue |
subsequence(int start,
int length) |
Get a subsequence of the value
|
getStringValue, getStringValueCS
Item itemAt(int n)
n
- the index of the required item, with 0 representing the first item in the sequenceGroundedValue subsequence(int start, int length)
start
- the index of the first item to be included in the result, counting from zero.
A negative value is taken as zero. If the value is beyond the end of the sequence, an empty
sequence is returnedlength
- the number of items to be included in the result. Specify Integer.MAX_VALUE to
get the subsequence up to the end of the base sequence. If the value is negative, an empty sequence
is returned. If the value goes off the end of the sequence, the result returns items up to the end
of the sequence