net.jxta.impl.document
Class LiteXMLElement.tagRange
java.lang.Object
|
+--net.jxta.impl.document.LiteXMLElement.tagRange
- Enclosing class:
- LiteXMLElement
- protected static class LiteXMLElement.tagRange
- extends java.lang.Object
A tagRange is a collection of char ranges useful for describing XML
structures. 'startTag' is the range of the opening tag, ie.
'endTag' is the range of the terminating tag, ie. . The 'body'
range everything between the start and end tags. For empty-element tags
the 'startTag' and 'endTag' will be equal and the 'body' tag will be
NULL.
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
startTag
public LiteXMLElement.charRange startTag
body
public LiteXMLElement.charRange body
endTag
public LiteXMLElement.charRange endTag
LiteXMLElement.tagRange
public LiteXMLElement.tagRange()
LiteXMLElement.tagRange
public LiteXMLElement.tagRange(LiteXMLElement.charRange startTag,
LiteXMLElement.charRange body,
LiteXMLElement.charRange endTag)
isValid
public boolean isValid()
equals
public boolean equals(java.lang.Object aRange)
- Overrides:
- equals in class java.lang.Object
compareTo
public int compareTo(java.lang.Object aRange)
throws java.lang.ClassCastException
- Compares two ranges for equality.
- Parameters:
someRange
- The range against which this range will be compared.- Returns:
- true if the two ranges are equal, otherwise false.
contains
public boolean contains(LiteXMLElement.tagRange someRange)