|
||||||||||
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.OtherConstituent
public class OtherConstituent
A constituent in an XML document that is not a tag. An instance of this class represents a document or markup declaration, XML prolog, processing instruction, comment, CDATA section, textual content or outer whitespace.
Field Summary | |
---|---|
static short |
CDATA_SECTION
Type constant: a CDATA section. |
static short |
COMMENT
Type constant: a comment. |
static short |
DOCTYPE
Type constant: a document type declaration. |
static short |
OUTER_WHITESPACE
Type constant: Whitespace between elements. |
static short |
PI
Type constant: a processing instruction. |
static short |
TEXT
Type constant: textual content. |
static short |
XML_PROLOG
Type constant: the XML prolog. |
Constructor Summary | |
---|---|
OtherConstituent(short constType,
String rep)
Creates a new instance, without setting a reference to a next constituent. |
|
OtherConstituent(short constType,
String rep,
XMLConstituent prevEntry,
XMLConstituent nextEntry)
Creates a new instance. |
Method Summary | |
---|---|
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 DOCTYPE
public static final short XML_PROLOG
public static final short PI
public static final short COMMENT
public static final short CDATA_SECTION
public static final short TEXT
OUTER_WHITESPACE
constituents.
public static final short OUTER_WHITESPACE
Constructor Detail |
---|
public OtherConstituent(short constType, String rep) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)rep
- 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 OtherConstituent(short constType, String rep, XMLConstituent prevEntry, XMLConstituent nextEntry) throws IllegalArgumentException
constType
- the typ of this constituent (must be one of the static
type constants defined in this class)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 constituent
IllegalArgumentException
- if constType
differs from
the static type constants defined in this classMethod Detail |
---|
public String toString()
toString
in class XMLConstituent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |