|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xpath.XObject
This class represents an XPath object, and is capable of converting the object to various types, such as a string. This class acts as the base class to other XPath type objects, such as XString, and provides polymorphic casting capabilities.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
static int |
CLASS_BOOLEAN
|
static int |
CLASS_NODESET
|
static int |
CLASS_NULL
|
static int |
CLASS_NUMBER
|
static int |
CLASS_RTREEFRAG
|
static int |
CLASS_STRING
|
static int |
CLASS_UNKNOWN
|
protected java.lang.Object |
m_obj
|
Constructor Summary | |
XObject()
Create an XObject. |
|
XObject(java.lang.Object obj)
Create an XObject. |
Method Summary | |
boolean |
bool()
Cast result object to a boolean. |
java.lang.Object |
castToType(int t,
XPathSupport support)
Cast object to type t. |
boolean |
equals(XObject obj2)
Tell if two objects are functionally equal. |
protected void |
error(int msg)
Tell the user of an error, and probably throw an exception. |
protected void |
error(int msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an exception. |
int |
getType()
Tell what kind of class this is. |
protected java.lang.String |
getTypeString()
Given a request type, return the equivalent string. |
boolean |
greaterThan(XObject obj2)
Tell if one object is less than the other. |
boolean |
greaterThanOrEqual(XObject obj2)
Tell if one object is less than the other. |
boolean |
lessThan(XObject obj2)
Tell if one object is less than the other. |
boolean |
lessThanOrEqual(XObject obj2)
Tell if one object is less than or equal to the other. |
MutableNodeList |
mutableNodeset()
Cast result object to a nodelist. |
org.w3c.dom.NodeList |
nodeset()
Cast result object to a nodelist. |
boolean |
notEquals(XObject obj2)
Tell if two objects are functionally not equal. |
double |
num()
Cast result object to a number. |
java.lang.Object |
object()
Return a java object that's closes to the represenation that should be handed to an extension. |
org.w3c.dom.DocumentFragment |
rtree()
For functions to override. |
org.w3c.dom.DocumentFragment |
rtree(XPathSupport support)
Cast result object to a result tree fragment. |
java.lang.String |
str()
Cast result object to a string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.Object m_obj
public static final int CLASS_NULL
public static final int CLASS_UNKNOWN
public static final int CLASS_BOOLEAN
public static final int CLASS_NUMBER
public static final int CLASS_STRING
public static final int CLASS_NODESET
public static final int CLASS_RTREEFRAG
Constructor Detail |
public XObject()
public XObject(java.lang.Object obj)
Method Detail |
public int getType()
protected java.lang.String getTypeString()
public double num() throws org.xml.sax.SAXException
public boolean bool() throws org.xml.sax.SAXException
public java.lang.String str()
public java.lang.String toString()
public org.w3c.dom.DocumentFragment rtree(XPathSupport support)
public org.w3c.dom.DocumentFragment rtree()
public java.lang.Object object()
public org.w3c.dom.NodeList nodeset() throws org.xml.sax.SAXException
public MutableNodeList mutableNodeset() throws org.xml.sax.SAXException
public java.lang.Object castToType(int t, XPathSupport support) throws org.xml.sax.SAXException
public boolean lessThan(XObject obj2) throws org.xml.sax.SAXException
public boolean lessThanOrEqual(XObject obj2) throws org.xml.sax.SAXException
public boolean greaterThan(XObject obj2) throws org.xml.sax.SAXException
public boolean greaterThanOrEqual(XObject obj2) throws org.xml.sax.SAXException
public boolean equals(XObject obj2) throws org.xml.sax.SAXException
public boolean notEquals(XObject obj2) throws org.xml.sax.SAXException
protected void error(int msg) throws org.xml.sax.SAXException
protected void error(int msg, java.lang.Object[] args) throws org.xml.sax.SAXException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |