public static class PJConverter.ToZeroOrMore extends PJConverter
ZeroOrMore
, which allows any sequence
but is a generic (parameterized) class so there is compile-time information about the type
of itemsPJConverter.AnyURIValueToURI, PJConverter.AnyURIValueToURL, PJConverter.Atomic, PJConverter.BooleanValueToBoolean, PJConverter.CalendarValueToCalendar, PJConverter.CalendarValueToDate, PJConverter.CalendarValueToInstant, PJConverter.CalendarValueToZonedDateTime, PJConverter.General, PJConverter.Identity, PJConverter.IntegerValueToBigInteger, PJConverter.IntegerValueToByte, PJConverter.IntegerValueToChar, PJConverter.IntegerValueToInt, PJConverter.IntegerValueToLong, PJConverter.IntegerValueToShort, PJConverter.NumericValueToBigDecimal, PJConverter.NumericValueToDouble, PJConverter.NumericValueToFloat, PJConverter.QualifiedNameValueToQName, PJConverter.StringValueToChar, PJConverter.StringValueToString, PJConverter.ToArray, PJConverter.ToCollection, PJConverter.ToNull, PJConverter.ToOne, PJConverter.ToOneOrMore, PJConverter.ToSequenceExtent, PJConverter.ToSequenceIterator, PJConverter.ToZeroOrMore, PJConverter.ToZeroOrOne, PJConverter.UnwrapExternalObject
Modifier and Type | Field and Description |
---|---|
static PJConverter.ToZeroOrMore |
INSTANCE |
Constructor and Description |
---|
ToZeroOrMore() |
Modifier and Type | Method and Description |
---|---|
ZeroOrMore<Item<?>> |
convert(Sequence<?> value,
java.lang.Class<?> targetClass,
XPathContext context)
Convert an XPath value to a Java value of a specified class
|
allocate, allocateNodeListCreator, getEquivalentSequenceType, getParameterizedSequenceType
public static final PJConverter.ToZeroOrMore INSTANCE
public ZeroOrMore<Item<?>> convert(Sequence<?> value, java.lang.Class<?> targetClass, XPathContext context) throws XPathException
PJConverter
convert
in class PJConverter
value
- the supplied XPath valuetargetClass
- the class of the required Java valuecontext
- the XPath dynamic contextXPathException
- if the conversion is not possible or failsCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.