|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.document.LiteXMLElement.charRange
A charRange defines a range of characters, probably within a string. The range is deemed to be invalid if 'start' is -1. A zero length range is, by convention, described by an 'end' value of 'start' - 1.
Field Summary | |
int |
end
Contains the end position of this range. |
int |
start
Contains the start position of this range. |
Constructor Summary | |
LiteXMLElement.charRange()
Constructor for a null charRange. |
|
LiteXMLElement.charRange(int start,
int end)
Constructor for which the bounds are specified. |
Method Summary | |
int |
compareTo(java.lang.Object aRange)
Compares two ranges for equality. |
boolean |
contains(int someLoc)
Returns true if the location specified is contained in this range. |
boolean |
contains(LiteXMLElement.charRange someRange)
Returns true if the charRange specified by someRange is contained within this range. |
boolean |
equals(java.lang.Object aRange)
Compares two ranges for equality. |
boolean |
isValid()
Returns true if the range is both non-null and has a length of greater than or equal to zero. |
int |
length()
Returns the length of this range. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public int start
public int end
Constructor Detail |
public LiteXMLElement.charRange()
public LiteXMLElement.charRange(int start, int end)
Method Detail |
public int length()
public boolean isValid()
public boolean equals(java.lang.Object aRange)
someRange
- The range against which this range will be compared.public int compareTo(java.lang.Object aRange) throws java.lang.ClassCastException
someRange
- The range against which this range will be compared.public boolean contains(LiteXMLElement.charRange someRange)
charRange
specified by someRange is contained within this range.someRange
- The range which must be contained within this range.public boolean contains(int someLoc)
someLoc
- the location which is to be tested.
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |