@User public class Document_a_verbatimXml extends Document
Element_a_verbatimXml
as its root (=topmost) element.
Of main interest for the programmer are the constructors. These allow to read different external representations. Furthermore, each instance is visitable as a whole.Furthermore, the ID relation is managed by TypedDocument.createDictionary()
.TypedNode.ParseListener<E extends TypedElement<?,?>>
root, STRING_ETHEREAL_SEPARATOR
Constructor and Description |
---|
Document_a_verbatimXml(Element_a_verbatimXml root)
Create a document in a bottom-up fashion from its toplevel element.
|
Document_a_verbatimXml(InputStream in,
Extension ext)
Input must be tdom-spec compressed encoding,
as written by
encode(EncodingOutputStream) . |
Modifier and Type | Method and Description |
---|---|
protected Element |
decode(DecodingInputStream in,
Extension ext) |
void |
encode(EncodingOutputStream out) |
void |
encode(EncodingOutputStream out,
Extension ext)
Abstract fall-back method which MUST be overridden and always throws an Exception.
|
Element_a_verbatimXml |
getDocumentElement()
Return the top level element.
|
int |
getTagIndex() |
void |
host(Visitor visitor)
Send the visitor to this instance.
|
createDictionary, decode, decodeEthereals, encode, encodeEthereals, end, getDTD, getEtherealContainer, getRootUntyped, start
asBigDecimal, asBigDecimal, asBigDecimal, asBigDecimal, asBigInteger, asBigInteger, asBigInteger, asBigInteger, asBoolean, asBoolean, asDouble, asDouble, asDouble, asDouble, asFloat, asFloat, asFloat, asFloat, asHexInt, asHexInt, asHexInt, asHexInt, asInt, asInt, asInt, asInt, asLong, asLong, asLong, asLong, asTrimmedString, asTrimmedString, asTrimmedString, asTrimmedString, checkPlus, checkPlus, checkStar, checkStar, checkStrict, encode, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocation
@User public Document_a_verbatimXml(Element_a_verbatimXml root)
root
- (never null) top element.public Document_a_verbatimXml(InputStream in, Extension ext) throws IOException, TdomContentException, TdomAttributeException
encode(EncodingOutputStream)
.
XML text representation requires some XML parser
and piping its SAX Events into #Document_a:verbatimXml(SAXEventStream)}.@User public Element_a_verbatimXml getDocumentElement()
public void host(Visitor visitor)
Visitable
public final int getTagIndex()
getTagIndex
in class TypedDocument<Element,Extension>
protected final Element decode(DecodingInputStream in, Extension ext) throws IOException, TdomContentException, TdomAttributeException
decode
in class TypedDocument<Element,Extension>
IOException
TdomContentException
TdomAttributeException
public final void encode(EncodingOutputStream out, Extension ext) throws IOException
TypedNode
encode
in class TypedDocument<Element,Extension>
IOException
public final void encode(EncodingOutputStream out) throws IOException
IOException
see also the complete user documentation .