|
XML for Java Compatibility API 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.xpointer.AbsTerm
The AbsTerm class provides support for absolute location terms in XPointers. An absolute term selects one or more elements or locations in an XML document without reference to any other sub-resource location.
The keywords of an absolute term do not depend on the existence of a location source. They can be used to establish a location source or can serve as self-contained XPointers:
For example, the location term id(a27)
chooses the necessarily unique
element of the containing resource which has an attribute declared to be of type ID whose
value is a27
.
A
and which has an
attribute called NAME
whose value is the same as the supplied case-sensitive
nameValue. This is exactly the function performed by the "#" fragment
identifier in the context of an HTML document.
XPointer
, Serialized FormConstructor Summary | |
AbsTerm(int type)
Constructor for root() and origin() . |
|
AbsTerm(int type,
java.lang.String param)
Constructor for id(Name) and html(nameValue) . |
Method Summary | |
java.lang.String |
getParameter()
Returns the argument to the keyword of this absolute term. |
int |
getType()
Returns the integer representing the keyword type of this absolute term. |
java.lang.String |
getTypeName()
Returns the string keyword type of this absolute term. |
java.lang.String |
toString()
Returns this absolute term in the form of either: root()
origin()
id(name)
html("nameValue")
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AbsTerm(int type, java.lang.String param)
id(Name)
and html(nameValue)
.type
- An integer representing the keyword type of this absolute term.
Must be one of: XPointer.ST_ID, or XPointer.ST_HTML
.param
- If type=ST_ROOTID, Name in id(Name)
.
If type=ST_HTML, nameValue (excluding quotes) in html(nameValue)
.public AbsTerm(int type)
root()
and origin()
.type
- An integer representing the keyword type of this absolute term.
Must be one of: XPointer.ST_ROOT, XPointer.ST_ORIGIN
.Method Detail |
public int getType()
XPointer.ST_ROOT, XPointer.ST_ORIGIN, XPointer.ST_ID, or XPointer.ST_HTML
.getTypeName()
public java.lang.String getTypeName()
root, origin, id, or html
.getType()
public java.lang.String getParameter()
id(Name)
.
If type=ST_HTML, nameValue (excluding quotes) in html(nameValue)
.
Otherwise =null
.public java.lang.String toString()
root()
origin()
id(name)
html("nameValue")
|
XML for Java Compatibility API 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |