@User public class Document_translationfile extends Document
Element_translationfile
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_translationfile(Element_translationfile root)
Create a document in a bottom-up fashion from its toplevel element.
|
Document_translationfile(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_translationfile |
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_translationfile(Element_translationfile root)
public Document_translationfile(InputStream in, Extension ext) throws TdomContentException, IOException, TdomAttributeException
encode(EncodingOutputStream)
.
XML text representation requires some XML parser
and piping its SAX Events into #Document_translationfile(SAXEventStream)}.@User public Element_translationfile 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 TdomContentException, IOException, TdomAttributeException
decode
in class TypedDocument<Element,Extension>
TdomContentException
IOException
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 .