public static class PJConverter.IntegerValueToInt extends PJConverter
PJConverter.AnyURIValueToURI, PJConverter.AnyURIValueToURL, PJConverter.Atomic, PJConverter.BooleanValueToBoolean, PJConverter.CalendarValueToCalendar, PJConverter.CalendarValueToDate, 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.ToSequenceExtent, PJConverter.ToSequenceIterator, PJConverter.UnwrapExternalObject
?????? | ????? |
---|---|
static PJConverter.IntegerValueToInt |
INSTANCE |
?????? |
---|
IntegerValueToInt() |
?????? | ????? |
---|---|
java.lang.String |
compile(java.lang.String var,
java.lang.Class targetClass,
CodeGeneratorService compiler)
Generate Java code to implement the type conversion
|
java.lang.Object |
convert(ValueRepresentation value,
java.lang.Class targetClass,
XPathContext context)
Convert an XPath value to a Java value of a specified class
|
allocate, allocateNodeListCreator, getEquivalentItemType
public static PJConverter.IntegerValueToInt INSTANCE
public java.lang.Object convert(ValueRepresentation value, java.lang.Class targetClass, XPathContext context) throws XPathException
PJConverter
convert
??? PJConverter
value
- the supplied XPath valuetargetClass
- the class of the required Java valuecontext
- the XPath dynamic contextXPathException
- if the conversion is not possible or failspublic java.lang.String compile(java.lang.String var, java.lang.Class targetClass, CodeGeneratorService compiler)
PJConverter
compile
??? PJConverter
var
- the name of a variable whose value will be the XPath ValueRepresentation
to be convertedtargetClass
- the required class of the Java valuecompiler
- provides supporting services by callback @return the text of a Java expression whose result will be a Java object/value of the
required type