|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
The Node
object acts as a wrapper for a KDOM element
that contains various convinience methods. In general this object
is preferred to the org.kxml2.kdom.Element
object
for acquiring elements and text values.
The primary convinience offered by the Node
object is
the ability to acquire a transformed representation of eithier an
element text block or attribute. This provides property getters
which will transform "${property}" values with system properties.
PropertyBuffer
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
This method is used to acquire an attribute from the wrapped element object. |
org.kxml2.kdom.Element |
getElement()
This method is used to provide the source element that this object wraps. |
java.lang.String |
getName()
This method is used to acquire the name of the element that this Node instance wraps. |
java.lang.String |
getProperty()
This is used to acquire the transformed value of a text element. |
java.lang.String |
getProperty(java.lang.String name)
This method is used to acquire a transformed value for the named attribute. |
java.lang.String |
getText()
This is used to acquire the string value for the element text. |
boolean |
isElement()
This method is used to determine the type of node this object represents. |
boolean |
isName(java.lang.String name)
This is used to check for the name of the element that this node object wraps. |
Method Detail |
---|
org.kxml2.kdom.Element getElement()
Node
object it can do so.
java.lang.String getName()
Node
instance wraps. This is used to that
the traverser can determine how to handle the node object.
java.lang.String getAttribute(java.lang.String name)
name
- this is the element attribute name to acquire
java.lang.String getProperty(java.lang.String name)
System
properties.
name
- this is the element attribute name to acquire
java.lang.String getProperty()
System
properties, or null if the text is null.
java.lang.String getText()
getProperty
can be used instead.
boolean isName(java.lang.String name)
name
- this is the name to be compared to the element
boolean isElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |