|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.tree.object.BaseXMLNode
public abstract class BaseXMLNode
Base class for adapting a W3C DOM Node
to a CAF tree INode
and CAF data IContentProvider
(as a IContentProvider
,
binding-expression access to the node's properties can be optimized).
Field Summary | |
---|---|
protected List |
m_children
Lazily created by INode.getChildren() . |
protected String |
m_id
Lazily created by INode.getId() . |
protected INode |
m_parent
Null if root. |
protected CachedXPathAPI |
m_xpathAPI
Lazily created by BaseXMLNode.getXPathAPI() . |
protected Map |
m_xpathCache
Lazily created cache of xpaths to evaluated results. |
Constructor Summary | |
---|---|
BaseXMLNode()
|
Method Summary | |
---|---|
Object |
getData()
Row data. |
INode |
getParent()
Node parent, or null for root. |
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider. |
Class |
getType(Object propertyKey)
Returns java type of the given property |
Object |
getValue(Object propertyKey)
Returns value of the given property |
protected abstract Node |
getXMLNode()
Wrapped DOM node. |
protected CachedXPathAPI |
getXPathAPI()
Xalan xpath api context. |
protected Object |
getXPathValue(String xpath)
Evaluates the specified xpath for the wrapped dom node. |
boolean |
hasProperty(Object propertyKey)
Checks if the given property is supported by this content provider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.webmethods.caf.faces.data.tree.INode |
---|
getChildren, getId |
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider |
---|
toString |
Field Detail |
---|
protected CachedXPathAPI m_xpathAPI
BaseXMLNode.getXPathAPI()
.
protected Map m_xpathCache
protected String m_id
INode.getId()
.
protected INode m_parent
protected List m_children
INode.getChildren()
.
Constructor Detail |
---|
public BaseXMLNode()
Method Detail |
---|
public Object getData()
INode
getData
in interface INode
public INode getParent()
INode
getParent
in interface INode
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.
getPropertyKeys
in interface IContentProvider
String
or Integer
public Class getType(Object propertyKey) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic Object getValue(Object propertyKey) throws EvaluationException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
propertyKey
- the property key of type String
or Integer
null
EvaluationException
- if error during property evaluation
PropertyNotFoundException
- if property is not supportedpublic boolean hasProperty(Object propertyKey)
IContentProvider
hasProperty
in interface IContentProvider
propertyKey
- property key of type String
or Integer
true
if property is supportedprotected abstract Node getXMLNode()
protected CachedXPathAPI getXPathAPI()
protected Object getXPathValue(String xpath) throws TransformerException
TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |