Package net.sf.saxon.expr
Class PJConverter.Identity
- java.lang.Object
- 
- net.sf.saxon.expr.PJConverter
- 
- net.sf.saxon.expr.PJConverter.Identity
 
 
- 
- Enclosing class:
- PJConverter
 
 public static class PJConverter.Identity extends PJConverter 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class net.sf.saxon.expr.PJConverterPJConverter.AnyURIValueToURI, PJConverter.AnyURIValueToURL, PJConverter.Atomic, PJConverter.BooleanValueToBoolean, PJConverter.CalendarValueToCalendar, PJConverter.CalendarValueToDate, PJConverter.CalendarValueToInstant, PJConverter.CalendarValueToLocalDateTime, PJConverter.CalendarValueToOffsetDateTime, PJConverter.CalendarValueToZonedDateTime, PJConverter.DateValueToLocalDate, 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
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static PJConverter.IdentityINSTANCE
 - 
Constructor SummaryConstructors Constructor Description Identity()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconvert(Sequence value, java.lang.Class<?> targetClass, XPathContext context)Convert an XPath value to a Java value of a specified class- 
Methods inherited from class net.sf.saxon.expr.PJConverterallocate, allocateNodeListCreator, getEquivalentSequenceType, getParameterizedSequenceType
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final PJConverter.Identity INSTANCE 
 
- 
 - 
Method Detail- 
convertpublic java.lang.Object convert(Sequence value, java.lang.Class<?> targetClass, XPathContext context) throws XPathException Description copied from class:PJConverterConvert an XPath value to a Java value of a specified class- Specified by:
- convertin class- PJConverter
- Parameters:
- value- the supplied XPath value
- targetClass- the class of the required Java value
- context- the XPath dynamic context
- Returns:
- the corresponding Java value, which is guaranteed to be an instance of the target class (except that an empty sequence is converted to null)
- Throws:
- XPathException- if the conversion is not possible or fails
 
 
- 
 
-