|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.pdark.decentxml.Token
public class Token
A piece of XML.
Constructor Summary | |
---|---|
Token()
|
Method Summary | |
---|---|
int |
getEndOffset()
The position after the last character of the token (matching the definition of String.substring(start,end) |
java.lang.String |
getEscapedText()
Return the text with all special characters (like line feed, new line, null bytes, characters in the unicode range) escaped. |
java.lang.String |
getPrefixWhiteSpace()
|
XMLSource |
getSource()
|
int |
getStartOffset()
The position in the source at which the token begins |
java.lang.String |
getText()
Return the string of text which this token represents in the XMLSource |
XMLTokenizer.Type |
getType()
|
void |
setEndOffset(int endOffset)
|
void |
setSource(XMLSource source)
|
void |
setStartOffset(int startOffset)
|
void |
setType(XMLTokenizer.Type type)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Token()
Method Detail |
---|
public void setSource(XMLSource source)
public XMLSource getSource()
public java.lang.String getText()
null
if there is no sourcepublic java.lang.String getEscapedText()
The result of this method can use used directly in a Java String.
null
if there is no sourcepublic java.lang.String toString()
toString
in class java.lang.Object
public void setType(XMLTokenizer.Type type)
public XMLTokenizer.Type getType()
public void setStartOffset(int startOffset)
public int getStartOffset()
public void setEndOffset(int endOffset)
public int getEndOffset()
String.substring(start,end)
public java.lang.String getPrefixWhiteSpace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |