|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.wrappers.Annotator.LocInfo
class Annotator.LocInfo
| Field Summary | |
|---|---|
(package private) int |
endTagEndPos
|
(package private) int |
seq
Sequence in document, ordered by start position (prefix order) |
(package private) int |
startTagEndPos
|
(package private) int |
startTagStartPos
Node type, typically Node.ELEMENT_NODE. |
(package private) int |
type
|
| Constructor Summary | |
|---|---|
Annotator.LocInfo(int seq,
int nodeType,
int startTagStartPos)
Creates a LocInfo. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHeadText(java.lang.String xml)
Returns the fragment of source XML corresponding to the head tag of this element, if this is an element, otherwise the whole node. |
java.lang.String |
getText(boolean headOnly)
Returns the text of this location. |
java.lang.String |
getText(java.lang.String xml)
Returns the fragment of source XML that this node encompasses. |
java.lang.String |
toString()
|
java.lang.String |
toString(Annotator annotator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final int seq
final int startTagStartPos
Node.ELEMENT_NODE.
final int type
int startTagEndPos
int endTagEndPos
| Constructor Detail |
|---|
Annotator.LocInfo(int seq,
int nodeType,
int startTagStartPos)
seq - Sequence number in documentnodeType - Node type, typically Node.ELEMENT_NODE.startTagStartPos - Position of start of element| Method Detail |
|---|
public java.lang.String toString(Annotator annotator)
public java.lang.String getText(java.lang.String xml)
xml - Whole source XML
public java.lang.String getHeadText(java.lang.String xml)
xml - Whole source XML
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText(boolean headOnly)
Location.getText(boolean).
headOnly - Whether to return only the head of elements
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||