|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.JPConverter
net.sf.saxon.expr.JPConverter.FromObjectArray
public static class JPConverter.FromObjectArray
Nested Class Summary |
---|
Constructor Summary | |
---|---|
JPConverter.FromObjectArray(JPConverter itemConverter)
|
Method Summary | |
---|---|
java.lang.String |
compile(java.lang.String var,
CodeGeneratorService compiler)
Generate a Java expression (as text) that can be used to implement this conversion when compiling a query |
ValueRepresentation |
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 |
Methods inherited from class net.sf.saxon.expr.JPConverter |
---|
allocate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPConverter.FromObjectArray(JPConverter itemConverter)
Method Detail |
---|
public ValueRepresentation convert(java.lang.Object object, XPathContext context) throws XPathException
JPConverter
convert
in class JPConverter
object
- the java object to be convertedcontext
- the XPath dynamic evaluation context
XPathException
- if the conversion is not possible or if it failspublic ItemType getItemType()
JPConverter
getItemType
in class JPConverter
public int getCardinality()
JPConverter
getCardinality
in class JPConverter
public java.lang.String compile(java.lang.String var, CodeGeneratorService compiler)
JPConverter
compile
in class JPConverter
var
- the Java variable that will hold the Java value to be convertedcompiler
- provides callback services
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |