Package eu.bandm.tools.xslt.base
Class ElementMap
java.lang.Object
eu.bandm.tools.xslt.base.ElementMap
Auxiliary type for
tdom models,
which maps namespace names of DTD elements
to implementing java classes and to parsing methods.
- Element empty -> no parsing method, but simply constructor (xhtml:Element_meta) has a public empty constructor !!
- Element pcdata only -> ??? ( xhtml:Element_title ) implements TypedElement.PCDataContainer has a EL(String) constructor !! dtm element .content instanceof Dtm.Mixed and elems()==empty
- Element mixed content -> semiparse constructor mixed content FEHLT NOCH FIXME !!! (xhtml:Element_a) implements TypedElement.MixedContentContainer, dtm element .content instanceof Dtm.Mixed
- Element structured content -> semiparse constructor (Element*) (xhtml:Element_html) dtm element .content instanceof Dtm.CP
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class[]
static final Class[]
static final Class[]
(package private) Map<NamespaceName,
Class> (package private) Map<NamespaceName,
ElementMap.group> static final String
(package private) Map<NamespaceName,
Method> (package private) Map<NamespaceName,
Constructor> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClasses
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Map<NamespaceName, TypedDTD.AbstractElementInfo> map, Class<? extends TypedExtension> extension, Class<? extends TypedElement> commonAbstractSuperclass, boolean addSemiParsers) Add implementing java classes and parsing methods to maps.static Class
arrayClass
(Class c)
-
Field Details
-
name_sax_parse_method
- See Also:
-
elementClasses
Map<NamespaceName,Class> elementClasses -
sax_parse_methods
Map<NamespaceName,Method> sax_parse_methods -
semiparse_constructors
Map<NamespaceName,Constructor> semiparse_constructors -
groups
Map<NamespaceName,ElementMap.group> groups -
args_empty_constructor
-
args_string_constructor
-
args_mixed_constructor
-
-
Constructor Details
-
ElementMap
public ElementMap()
-
-
Method Details
-
arrayClass
-
addClasses
public void addClasses(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Map<NamespaceName, TypedDTD.AbstractElementInfo> map, Class<? extends TypedExtension> extension, Class<? extends TypedElement> commonAbstractSuperclass, boolean addSemiParsers) Add implementing java classes and parsing methods to maps. The map argument is mostly taken from[TDOM-PACKAGE]/DTD.dtd.getInterfaceInfo().getElements() , which is a map fromNamespaceName
toTypedDTD.AbstractElementInfo
, reachable from aTypedDTD.DTDInfo
.
-