|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Item
This class represents an item in a sequence as defined by the XPath 2.0 specification.
Every item is either an atomic value or
a node.
| Method Summary | |
|---|---|
AtomicValue |
atomize()
|
int |
conversionPreference(java.lang.Class<?> javaClass)
|
AtomicValue |
convertTo(int requiredType)
Convert this item into an atomic value, whose type corresponds to the specified target type. |
void |
copyTo(DBBroker broker,
DocumentBuilderReceiver receiver)
|
java.lang.String |
getStringValue()
Return the string value of this item (see the definition of string value in XPath). |
int |
getType()
Return the type of this item according to the type constants defined in class Type. |
void |
nodeMoved(NodeId oldNodeId,
StoredNode newNode)
Nodes may implement this method to be informed of storage address and node id changes after updates. |
java.lang.Object |
toJavaObject(java.lang.Class<?> target)
|
void |
toSAX(DBBroker broker,
org.xml.sax.ContentHandler handler,
java.util.Properties properties)
|
Sequence |
toSequence()
Convert this item into a sequence, containing only the item. |
| Method Detail |
|---|
int getType()
Type.
java.lang.String getStringValue()
throws XPathException
XPathExceptionSequence toSequence()
AtomicValue convertTo(int requiredType)
throws XPathException
Type. An XPathException is thrown
if the conversion is impossible.
requiredType -
XPathException
AtomicValue atomize()
throws XPathException
XPathException
void toSAX(DBBroker broker,
org.xml.sax.ContentHandler handler,
java.util.Properties properties)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
void copyTo(DBBroker broker,
DocumentBuilderReceiver receiver)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionint conversionPreference(java.lang.Class<?> javaClass)
java.lang.Object toJavaObject(java.lang.Class<?> target)
throws XPathException
XPathException
void nodeMoved(NodeId oldNodeId,
StoredNode newNode)
oldNodeId - newNode - UpdateListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||