|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.util.ListEntry
de.fu_berlin.ties.xml.XMLConstituent
A constituent in an XML document.
Constructor Summary | |
XMLConstituent(short constType,
String rep)
Creates a new instance, without setting a reference to a next constituent. |
|
XMLConstituent(short constType,
String rep,
XMLConstituent prevEntry,
XMLConstituent nextEntry)
Creates a new instance. |
Method Summary | |
String |
getRepresentantion()
Returns the representation of this tag within the XML document. |
short |
getType()
Returns the type of this constituent. |
XMLConstituent |
nextConstituent()
Returns the next constituent in the list, if any. |
XMLConstituent |
previousConstituent()
Returns the previous constituent in the list, if any. |
void |
setRepresentantion(String string)
Sets the representation of this tag within the XML document. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class de.fu_berlin.ties.util.ListEntry |
hasNext, hasPrevious, insertAfter, insertBefore, next, previous, remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XMLConstituent(short constType, String rep)
constType
- the typ of this constituent (one of the type constants
defined in subclasses of this type)rep
- the representation of this constituent within the XML
document, i.e. the string fragment from the document representing this
constituentpublic XMLConstituent(short constType, String rep, XMLConstituent prevEntry, XMLConstituent nextEntry)
constType
- the typ of this constituent (one of the type constants
defined in subclasses of this type)rep
- the representation of this constituent within the XML
document, i.e. the string fragment from the document representing this
constituentprevEntry
- a reference to the next constituentnextEntry
- a reference to the next constituentMethod Detail |
public String getRepresentantion()
public short getType()
public XMLConstituent nextConstituent()
ListEntry.next()
and casting the result to an
XMLConstituent
.
public XMLConstituent previousConstituent()
ListEntry.previous()
and casting the
result to an XMLConstituent
.
public void setRepresentantion(String string)
string
- the representation, i.e. the string fragment from the
document representing this constituentpublic String toString()
toString
in class ListEntry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |