public class TdomReader extends Object
tdom
model from some textual representation.
Constructor and Description |
---|
TdomReader() |
Modifier and Type | Method and Description |
---|---|
static <T extends TypedDocument,D extends TypedDTD> |
parseXmlFile(InputSource inputSource,
Class<T> documentClass,
D dtdInstance,
boolean debug) |
static <T extends TypedDocument> |
parseXmlFile(InputSource inputSource,
Class<T> documentClass,
TypedDTD dtdInstance) |
static <T extends TypedDocument,E extends TypedExtension> |
parseXmlFile(InputSource inputSource,
Class<T> documentClass,
TypedDTD dtdInstance,
Class<E> extClass,
E ext) |
static <T extends TypedDocument,E extends TypedExtension> |
parseXmlFile(InputSource inputSource,
Class<T> documentClass,
TypedDTD dtdInstance,
Class<E> extClass,
E ext,
boolean debug)
Glueing code for creating a
tdom model from some textual representation. |
public static <T extends TypedDocument> T parseXmlFile(InputSource inputSource, Class<T> documentClass, TypedDTD dtdInstance)
public static <T extends TypedDocument,E extends TypedExtension> T parseXmlFile(InputSource inputSource, Class<T> documentClass, TypedDTD dtdInstance, Class<E> extClass, E ext)
public static <T extends TypedDocument,D extends TypedDTD> T parseXmlFile(InputSource inputSource, Class<T> documentClass, D dtdInstance, boolean debug)
public static <T extends TypedDocument,E extends TypedExtension> T parseXmlFile(InputSource inputSource, Class<T> documentClass, TypedDTD dtdInstance, Class<E> extClass, E ext, boolean debug)
tdom
model from some textual representation.
inputSource
- to parsedocumentClass
- the Class object generated by tdom, a sub-class of
tdom.runtime.TypedDocument
.dtdInstance
- an instance of the DTD type generated by tdom,
i.e. of a sub-class of
tdom.runtime.TypedDTD
.
This class is normally called "DTD.java" in the generated package sources
and suplies one instance in its static field "dtd"..debug
- a flag when set causes printing of all parsed SAX events
to System.out
.see also the complete user documentation .