@User public class Document_a_list extends Document
Element_a_list 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_list(Element_a_list root)
Create a document in a bottom-up fashion from its toplevel element.
|
Document_a_list(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_list |
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, startasBigDecimal, 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_list(Element_a_list root)
root - (never null) top element.public Document_a_list(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:list(SAXEventStream)}.@User public Element_a_list getDocumentElement()
public void host(Visitor visitor)
Visitablepublic 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>IOExceptionTdomContentExceptionTdomAttributeExceptionpublic final void encode(EncodingOutputStream out, Extension ext) throws IOException
TypedNodeencode in class TypedDocument<Element,Extension>IOExceptionpublic final void encode(EncodingOutputStream out) throws IOException
IOExceptionsee also the complete user documentation .