|
|||||||||||
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
de.fu_berlin.ties.xml.TagConstituent
A tag in an XML document. An instance of this class represents a single start tag, end tag or empty tag.
Field Summary | |
static short |
EMPTY_TAG
Type constant: an empty tag. |
static short |
END_TAG
Type constant: an end tag. |
static short |
START_TAG
Type constant: a start tag. |
Constructor Summary | |
TagConstituent(short constType,
String tagName)
Creates a new instance, automatically generating a suitable representation without attributes (i.e. |
|
TagConstituent(short constType,
String tagName,
int markupSeries)
Creates a new instance, automatically generating a suitable representation without attributes (i.e. |
|
TagConstituent(short constType,
String tagName,
String rep)
Creates a new instance, without storing a markup series number. |
|
TagConstituent(short constType,
String tagName,
String rep,
int markupSeries)
Creates a new instance, without setting a reference to a next constituent. |
|
TagConstituent(short constType,
String tagName,
String rep,
int markupSeries,
XMLConstituent prevEntry,
XMLConstituent nextEntry)
Creates a new instance. |
Method Summary | |
int |
getMarkupSeriesNo()
Returns the number of the markup series this tag is part of. |
String |
getName()
Returns the name of this tag. |
TagVariety |
getVariety()
Returns the TagVariety of this tag.
|
void |
setMarkupSeriesNo(int i)
Sets the number of the markup series this tag is part of. |
void |
setVariety(TagVariety newValue)
Specifies the TagVariety of this tag. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class de.fu_berlin.ties.xml.XMLConstituent |
getRepresentantion, getType, nextConstituent, previousConstituent, setRepresentantion |
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 |
Field Detail |
public static final short START_TAG
public static final short END_TAG
public static final short EMPTY_TAG
Constructor Detail |
public TagConstituent(short constType, String tagName) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)tagName
- the name of this tag
IllegalArgumentException
- if constType
differs from
the static type constants defined in this classpublic TagConstituent(short constType, String tagName, int markupSeries) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)tagName
- the name of this tagmarkupSeries
- the number of the markup series this tag is part of
IllegalArgumentException
- if constType
differs from
the static type constants defined in this classpublic TagConstituent(short constType, String tagName, String rep) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)tagName
- the name of this tagrep
- the representation of this constituent within the XML
document, i.e. the string fragment from the document representing this
constituent
IllegalArgumentException
- if constType
differs from
the static type constants defined in this classpublic TagConstituent(short constType, String tagName, String rep, int markupSeries) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)tagName
- the name of this tagrep
- the representation of this constituent within the XML
document, i.e. the string fragment from the document representing this
constituentmarkupSeries
- the number of the markup series this tag is part of
IllegalArgumentException
- if constType
differs from
the static type constants defined in this classpublic TagConstituent(short constType, String tagName, String rep, int markupSeries, XMLConstituent prevEntry, XMLConstituent nextEntry) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)tagName
- the name of this tagrep
- the representation of this constituent within the XML
document, i.e. the string fragment from the document representing this
constituentmarkupSeries
- the number of the markup series this tag is part ofprevEntry
- a reference to the previous constituentnextEntry
- a reference to the next constituent
IllegalArgumentException
- if constType
differs from
the static type constants defined in this classMethod Detail |
public final String getName()
public int getMarkupSeriesNo()
-1
if the markup series number
is not knownpublic TagVariety getVariety()
TagVariety
of this tag.
Defaults to TagVariety.REGULAR
.
public void setMarkupSeriesNo(int i)
i
- the new numberpublic void setVariety(TagVariety newValue)
TagVariety
of this tag.
newValue
- the new value to setpublic String toString()
toString
in class XMLConstituent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |