Contents | Package | Class | Tree | Deprecated | Index | Help | XML for Java 1.0.4 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----com.ibm.xml.xpointer.AttrTerm
An attribute term specifies a location in terms of another location, called the location source. The location source is the entire resource if there are no preceding location terms; otherwise it is the location specified by the preceding term (which might be relative to a location term before that).
The attribute term has the single keyword attr
which takes only an
attribute name as a selector and returns the attribute's value.
Following is an example of an attribute XPointer that returns the value of the attribute
named department
of the element with ID a23
: id(a23).attr(department)
Constructor Summary | |
AttrTerm(java.lang.String name)
|
Method Summary | |
java.lang.String | getName()
|
java.lang.String | toString()
attr(name) .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttrTerm(java.lang.String name)
name
- Name of the attribute in this attribute term.
Method Detail |
public java.lang.String getName()
public java.lang.String toString()
attr(name)
.Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |