|
|||||||||||
| 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
edu.uky.rch.ept.xmlSegmentTree.element.SimpleElement
edu.uky.rch.ept.xmlSegmentTree.element.TagElement
Class representing an XML element with attributes. Defers
equals to the superclass, meaning equals DOES
NOT take attributes into consideration. This is necessary to preserve
symmetry of the equals() relation against members of class
SimpleElement.
| Constructor Summary | |
TagElement(Position start,
Position end,
String tag,
Map attributes)
Create a new tagged element at the specified position. |
|
TagElement(Position location,
String tag,
Map attributes)
Create a new empty tagged element at the specified position. |
|
| Method Summary | |
List |
getAttributes()
Get a list of attribute keys. |
String |
getAttributeValue(String attr)
Get the value of an attribute. |
String |
toString()
|
| Methods inherited from class edu.uky.rch.ept.xmlSegmentTree.element.SimpleElement |
equals, getEnd, getStart, getString, getTag, isEmpty, isString |
| Methods inherited from class edu.uky.rch.ept.xmlSegmentTree.element.AbstractElement |
disjoint, endsAfter, endsBefore, endsWithin, getLength, overlaps, startsAfter, startsBefore, startsWithin, within |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TagElement(Position start,
Position end,
String tag,
Map attributes)
start - the location of the element's beginningend - the location of the element's endtag - the element's tagattributes - a map representing the attributes of the element
IllegalArgumentException - if start, end,
or tag is null.
public TagElement(Position location,
String tag,
Map attributes)
location - the location of the elementtag - the element's tagattributes - a map representing the attributes of the element
IllegalArgumentException - if location or
tag is null.| Method Detail |
public List getAttributes()
Element
getAttributes in interface ElementgetAttributes in class SimpleElementpublic String getAttributeValue(String attr)
Element
getAttributeValue in interface ElementgetAttributeValue in class SimpleElementpublic String toString()
toString in class SimpleElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||