|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.document.DocumentData
A representation of data within a document. All data within a document
must be in one of several pre-defined data types. These are:
TYPE_BOOLEAN - boolean data type having values true or false
TYPE_NODESET - a set of nodes as defined by the org.w3c.dom.NodeList.
TYPE_NULL - null data
TYPE_NUMBER - floating point data (implemented as double)
TYPE_RTREEFRAG - document fragment
TYPE_STRING - Unicode string (java.lang.String)
TYPE_UNKNOWN - Unknown type
For example, calling IDocument.getDocumentData(String path) with a path
that refers to the root of a document, you will get a NodeSetDocumentData
return value that contains the root element of the document. You can call
toNodeSet() on this object to return a org.w3c.dom..NodeList
which you can use to iterate over the single returned element.
You may create instances of the sublasses of this class, for use in
IDocument methods such as addDocumentData().
IDocument.addDocumentData(String, DocumentData)
Field Summary | |
static int |
TYPE_BOOLEAN
|
static int |
TYPE_NODESET
|
static int |
TYPE_NULL
|
static int |
TYPE_NUMBER
|
static int |
TYPE_RTREEFRAG
|
static int |
TYPE_STRING
|
static int |
TYPE_UNKNOWN
|
Constructor Summary | |
DocumentData()
|
|
DocumentData(weblogic.apache.xpath.objects.XObject xobj)
|
Method Summary | |
static DocumentData |
createDocumentData(weblogic.apache.xpath.objects.XObject xobj)
|
String |
dump()
Create a string describing this document data ( |
String |
dump(boolean includeType)
Create a string describing this document data ( |
boolean |
equals(DocumentData data)
Tell if two objects are functionally equal. |
int |
getType()
Get the type for this document data. |
boolean |
greaterThan(DocumentData data)
Tell if this object is greater than the other. |
boolean |
greaterThanOrEqual(DocumentData data)
Tell if this object is greater than or equal to the other. |
boolean |
lessThan(DocumentData data)
Tell if this object is less than the other. |
boolean |
lessThanOrEqual(DocumentData data)
Tell if this object is less than or equal to the other. |
boolean |
toBoolean()
Cast this document data to a boolean. |
NodeIterator |
toNodeIterator()
Cast this document data to a list that represents the nodes contained within it. |
NodeList |
toNodeSet()
Cast this document data to a list that represents the nodes contained within it. |
double |
toNumber()
Cast this data to a number (double) |
Object |
toObject()
Return a java object that's closest to the represenation that should be handed to an extension. |
DocumentFragment |
toRtree()
Cast this document data to a document fragment |
String |
toStr()
Cast this document data to a string. |
String |
toXML()
Create a string describing this document data. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_BOOLEAN
public static final int TYPE_NODESET
public static final int TYPE_NULL
public static final int TYPE_NUMBER
public static final int TYPE_RTREEFRAG
public static final int TYPE_STRING
public static final int TYPE_UNKNOWN
Constructor Detail |
public DocumentData()
public DocumentData(weblogic.apache.xpath.objects.XObject xobj)
Method Detail |
public static DocumentData createDocumentData(weblogic.apache.xpath.objects.XObject xobj) throws TransformerException
TransformerException
public int getType()
public boolean toBoolean() throws DocumentException
DocumentException
public NodeList toNodeSet() throws DocumentException
DocumentException
public NodeIterator toNodeIterator() throws DocumentException
DocumentException
public double toNumber() throws DocumentException
DocumentException
public DocumentFragment toRtree() throws DocumentException
DocumentException
public String toStr() throws DocumentException
DocumentException
public String toXML()
public String dump()
public String dump(boolean includeType)
includeType
-
public boolean equals(DocumentData data) throws DocumentException
DocumentException
public boolean greaterThan(DocumentData data) throws DocumentException
DocumentException
public boolean greaterThanOrEqual(DocumentData data) throws DocumentException
DocumentException
public boolean lessThan(DocumentData data) throws DocumentException
DocumentException
public boolean lessThanOrEqual(DocumentData data) throws DocumentException
DocumentException
public Object toObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |