Package eu.bandm.tools.d2d2.base
Class Dtd2Def.Phase1.AttConverter
java.lang.Object
eu.bandm.tools.dtm.DTM.MATCH_ONLY_00
eu.bandm.tools.dtm.DTM.SinglePathVisitor
eu.bandm.tools.d2d2.base.Dtd2Def.Phase1.AttConverter
- Enclosing class:
Dtd2Def.Phase1
Translates d2d attribute definitions to d2d expressions on references.
and creates the corresponding d2d definitions. The latter either in the
global aux element
Dtd2Def.attContainer, or local to the current element
targetEl. The name may be mangled due to LL(1) conflicts with the
content model (As in HTML "td/abbr" vs "td/@abbr" and "ins/cite" vs "ins/@cite").
"#FIXED" attributes are not translated at all.
Create one instance and re-use it for all attributes of one single element,
by invoking translate(DTM.Attribute).
-
Field Summary
Fields inherited from class eu.bandm.tools.dtm.DTM.MATCH_ONLY_00
_visitor_debug_stream, partial -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSets only the flag.protected voidSets only the flag.protected StringmakeQname(NamespaceName nn, Location<XMLDocumentIdentifier> elloc) Translate an attribute's NamespaceName into a valid d2d name.Methods inherited from class eu.bandm.tools.dtm.DTM.SinglePathVisitor
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, follow_alts, follow_attrs, follow_elems, follow_elems, follow_elems, follow_instructionsMethods inherited from class eu.bandm.tools.dtm.DTM.MATCH_ONLY_00
action, action, action, compile, followAll_alts, followAll_attrs, followAll_elems, followAll_elems, followAll_elems, followAll_instructions, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatch
-
Method Details
-
makeQname
Translate an attribute's NamespaceName into a valid d2d name.- Parameters:
elloc- Location of the element's definition, used for error messages.
-
action
Sets only the flag.- Overrides:
actionin classDTM.SinglePathVisitor
-
action
Sets only the flag.- Overrides:
actionin classDTM.SinglePathVisitor
-