public static class JPConverter.FromObject extends JPConverter
JPConverter.ExternalObjectWrapper, JPConverter.FromBigDecimal, JPConverter.FromBigInteger, JPConverter.FromBoolean, JPConverter.FromBooleanArray, JPConverter.FromByte, JPConverter.FromByteArray, JPConverter.FromCharacter, JPConverter.FromCharArray, JPConverter.FromCollection, JPConverter.FromDate, JPConverter.FromDouble, JPConverter.FromDoubleArray, JPConverter.FromFloat, JPConverter.FromFloatArray, JPConverter.FromInt, JPConverter.FromIntArray, JPConverter.FromLong, JPConverter.FromLongArray, JPConverter.FromObject, JPConverter.FromObjectArray, JPConverter.FromQName, JPConverter.FromSequence, JPConverter.FromSequenceIterator, JPConverter.FromShort, JPConverter.FromShortArray, JPConverter.FromSource, JPConverter.FromString, JPConverter.FromURI, JPConverter.FromXdmValue, JPConverter.VoidConverter| Modifier and Type | Field and Description |
|---|---|
static JPConverter.FromObject |
INSTANCE |
| Constructor and Description |
|---|
FromObject() |
| Modifier and Type | Method and Description |
|---|---|
Sequence<?> |
convert(java.lang.Object object,
XPathContext context)
Convert a Java object to an equivalent XPath value
|
int |
getCardinality()
Get the cardinality of the XPath value that will result from the conversion
|
ItemType |
getItemType()
Get the item type of the XPath value that will result from the conversion
|
allocatepublic static final JPConverter.FromObject INSTANCE
public Sequence<?> convert(java.lang.Object object, XPathContext context) throws XPathException
JPConverterconvert in class JPConverterobject - the java object to be convertedcontext - the XPath dynamic evaluation contextXPathException - if the conversion is not possible or if it failspublic ItemType getItemType()
JPConvertergetItemType in class JPConverterpublic int getCardinality()
JPConvertergetCardinality in class JPConverterCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.