|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uky.rch.ept.xmlSegmentTree.element.AbstractElement
An abstract implementation of Element, defining the binary
predicates as well as getLength().
| Constructor Summary | |
AbstractElement()
|
|
| Method Summary | |
boolean |
disjoint(Element e)
Are this element and another element disjoint? |
boolean |
endsAfter(Element e)
Does this element end after another element? |
boolean |
endsBefore(Element e)
Does this element end before another element? |
boolean |
endsWithin(Element e)
Does this element end within another element? |
abstract List |
getAttributes()
Get a list of attribute keys. |
abstract String |
getAttributeValue(String attr)
Get the value of an attribute. |
abstract Position |
getEnd()
Get the endpoint of this element. |
int |
getLength()
Get the length of this element. |
abstract Position |
getStart()
Get the beginning of this element. |
abstract String |
getString()
Get the string of a string element. |
abstract String |
getTag()
Get the tag of this element. |
abstract boolean |
isEmpty()
Is this element empty? |
abstract boolean |
isString()
Returns true if this element is a string element. |
boolean |
overlaps(Element e)
Does this element overlap with another element? |
boolean |
startsAfter(Element e)
Does this element start after another element? |
boolean |
startsBefore(Element e)
Does this element start before another element? |
boolean |
startsWithin(Element e)
Does this element start within another element? |
boolean |
within(Element e)
Does this element lie within another element? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractElement()
| Method Detail |
public abstract Position getStart()
Element
getStart in interface Elementpublic abstract Position getEnd()
Element
getEnd in interface Elementpublic abstract boolean isEmpty()
Element
isEmpty in interface Elementpublic abstract String getTag()
Element
getTag in interface Elementnull if this element is not a tagged element.public abstract List getAttributes()
Element
getAttributes in interface Elementpublic abstract String getAttributeValue(String attr)
Element
getAttributeValue in interface Elementattr - the attribute key.
null if the attribute
is not present.public abstract boolean isString()
Element
isString in interface Elementpublic abstract String getString()
Element
getString in interface Elementnull if this element is a tagged element.public int getLength()
Element
getLength in interface Elementpublic boolean startsBefore(Element e)
Element
startsBefore in interface Elemente - the element to test against.
e.public boolean startsAfter(Element e)
Element
startsAfter in interface Elemente - the element to test against.
e.public boolean startsWithin(Element e)
Element
startsWithin in interface Elemente - the element to test against.
e.public boolean endsBefore(Element e)
Element
endsBefore in interface Elemente - the element to test against.
e.public boolean endsAfter(Element e)
Element
endsAfter in interface Elemente - the element to test against.
e.public boolean endsWithin(Element e)
Element
endsWithin in interface Elemente - the element to test against.
e.public boolean within(Element e)
Element
within in interface Elemente - the element to test against.
e.public boolean overlaps(Element e)
Element
overlaps in interface Elemente - the element to test against.
e overlap.public boolean disjoint(Element e)
Element
disjoint in interface Elemente - the element to test against.
e are disjoint.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||