Package eu.bandm.tools.xslt.base
Class ResultContext
java.lang.Object
eu.bandm.tools.xslt.base.ResultContext
Convenience class for accessing all data which depends
on the target DTD and is required for xslt parsing and execution.
This includes the sax parsing method and the implementing classes,
indexed by the
NamespaceName
of the target's dtd element definitions.-
Field Summary
Modifier and TypeFieldDescription(package private) final Set<NamespaceName>
(package private) final Class<?>
(package private) final Class<?>
(package private) final Class<?>
(package private) final Class<?>
(package private) final Map<NamespaceName,
Class<? extends TypedElement>> final DTM.Dtd
(package private) final Set<NamespaceName>
final boolean
static final String
(package private) final PathMap
(package private) XMLDocumentIdentifier
(package private) final Map<NamespaceName,
Method> (package private) final Map<NamespaceName,
Method> static final ResultContext
final DTD.Dtd
Original DTD, only needed for "WhitespaceIgnorer" in verbatimXML, seeApplication.feedTextToResult(Element,String)
. -
Method Summary
Modifier and TypeMethodDescription(package private) static void
copySaxMethods
(Map<NamespaceName, TypedDTD.AbstractElementInfo> infos, Class<?> extension, Map<NamespaceName, Class<? extends TypedElement>> classes, Map<NamespaceName, Method> methods) This extraction must also be done for the sax parsing methods for "xslt" itself, but only once.void
dumpToContentHandler
(TypedSubstantial corpus, ContentHandler ch) Calls the Dump-method of the target tdom implementation via reflection and pipes all SAX events into the ContentHandler.static @Opt ResultContext
newInstance
(String tdom_package_name, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Extracts all the data required for parsing and stores them into public read-only fields.
-
Field Details
-
name_sax_parse_method
- See Also:
-
textOnly
-
isTextOnly
public final boolean isTextOnly -
dtd
-
x_dtd
Original DTD, only needed for "WhitespaceIgnorer" in verbatimXML, seeApplication.feedTextToResult(Element,String)
. -
resultDtdDocId
XMLDocumentIdentifier resultDtdDocId -
tdom_package_name
-
classes
-
semiparseMethods
-
sax_parse_methods
-
ignore_ws
-
class_base
-
class_dumper
-
class_extension
-
class_visitor
-
pathMap
-
allAttributeNames
-
-
Method Details
-
copySaxMethods
static void copySaxMethods(Map<NamespaceName, TypedDTD.AbstractElementInfo> infos, Class<?> extension, Map<NamespaceName, Class<? extends TypedElement>> classes, Map<NamespaceName, Method> methods) This extraction must also be done for the sax parsing methods for "xslt" itself, but only once. Therefore it is made package-visible here.- Parameters:
infos
- input parameter: element wise info as provided byTypedDTD
.extension
- input param: the extension class, required for method look-upclasses
- OUTPUT param: map fromNamespaceName
to immplementingClass
.methods
- OUTPUT param: map fromNamespaceName
to sax parsingMethod
.
-
get_resultDtdDocId
-
newInstance
@Opt public static @Opt ResultContext newInstance(String tdom_package_name, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Extracts all the data required for parsing and stores them into public read-only fields. Esp. initializespathMap
, the relations for Fragmented Validation. Returns null in case of error, so that calling level can continue batch processing with alternatives. -
dumpToContentHandler
Calls the Dump-method of the target tdom implementation via reflection and pipes all SAX events into the ContentHandler.
-