Package eu.bandm.tools.tdom.runtime
package eu.bandm.tools.tdom.runtime
Contains base and auxiliary classes for code generated by tdom.
This package contains
Naming conventions for the doc texts in this package:
The [XML] specification is not very clear w.r.t. the distinction of a model instance, the external representation as a text file, and the exact time point of parsing. For the discussion in the resp. method definitions we define
- the base classes used by the
tdom compiler
to derive the generated classes, - auxiliary data types and exceptions supporting consistency checks and de-serialization.
Naming conventions for the doc texts in this package:
The [XML] specification is not very clear w.r.t. the distinction of a model instance, the external representation as a text file, and the exact time point of parsing. For the discussion in the resp. method definitions we define
- "tdom model" to stand for all Java source files, generated when applying
TypedDOMGenerator
to one particular DTD file (or to an internal DTD model), and the class files compiled therefrom, - "the underlying DTD" to stand for this particular DTD,
- "tdom model instance" for a collection of objects/instances of the classes of such a tdom tdom model, representing one particular text object by classes from the tdom model,
- "Element's class" and "Attribute's class" to stand for the classes generated for one particular Element or Attribute definition from the DTD,
- "model (instance) initialization" to stand for the exact time point when parsing a text file, or receiving a SAX event, or executing an Element's class constructor explicitly from some user's code. I.e. all possible activities which create a fresh instance of an Element's or Attribute's class. The wording "... when initializing (a tdom model instance) ..." is meant accordingly.
-
ClassDescriptionSuper class for all generated matcher classes of a tdom model.Base class for all generated classes which realize an Attribute with type
CDATA
.Extends the checked list to ensure that it does not become empty.INTERNAL USE ONLY.Signals the case that a particular ID string value in a IDREF or IDREFS attribute value of a particular document is not related to a value of an ID attribute in the same document.Implementation which sends error messages to aMessageReceiver
.Realizes a map from String values to Elements.DOCME CHECK: Uses direct and inherited aggregation in parallel ? (=inherited and overwritten methods?)Base class for all generated classes which realize an Attribute with an "enumeration type", likeIndicates that a generated attribute has a generated enumeration as its value.INTERNAL USE ONLY.Signals the case that one(1) particular ID string value is related to two(2) different elements.Implements an Attribute of "ID
" type, which holds as its value a single id value.Indicates the presence of an ID attribute.Common superclass of several exceptions related to unconsistent usage of id values.Implements an Attribute of "IDREF
" type, which holds as its value a single id value.Implements an Attribute of "IDREFS
" type, which holds as its value a list of id values.Indicates that an anttribute has been declared as#IMPLIED
.Matchable<M>Base class for all generated classes which realize an Attribute with an "NMTOKEN
" type.Implements an Attribute of "NMTOKENS
" type, which holds as its value a list of NMTOKEN tokens separated by blanks.Indicates that PCData can be visited.Base class for all generated classes which realize an Attribute with a type which is defined as a disjunction of integer values, likeIs needed by xslt implementation to find the correct constructor.Signals the case that one(1) particular Element shall be identified by two(2) different ID string values.Signals that, when initializing a model instance, the treatment of one particular attribute does not fulfill the definitions for the currently parsed element, as defined by the DTD.Signals that, when initializing or updating a model instance, it is tried to assign a value to an attribute, which differs from that value which is declared "#FIXED
by the DTD.Signals that, when initializing a model instance, the value assigned to one particular attribute does not match the syntax defined by the DTD.Intended to match tdom element constructor calls as arguments for exception handler strategies.Signals that, when initializing or updating a model instance, the value assigned to one particular attribute does not match the syntax defined by the DTD.Signals that, when initializing a model instance, an attempt is made to assign a value to an undefined attribute.Signals that, when initializing a model instance, a sequence of elements is not long enough w.r.t. the content model defined for the currently parsed element.Signals that, when initializing a model instance, a sequence of elements or nodes does not match the content model defined for the currently parsed element.Signals that, when initializing a model instance, a violation of the document type format occured, as it is defined by the DTD.Signals that, when initializing a model instance, something went wrong with the underlying XML stream.Common base class for all attributes from some DTD.Auxiliary class to signal in a type signature of a constructor that it is called locally by another constructor which will handle attributes afterwards.Auxiliary class to signal in a type signature that noTdomAttributeSyntaxException
s can be thrown.TypedChoice<E extends TypedExtension>Base class for all model classes which represent a choice in a content model.Realizes comments in a tdom model instance.TypedContent.DecodingConstructor<C extends TypedContent,X extends TypedExtension, Y extends Exception> TypedContent.ParsingConstructor<C extends TypedContent,E extends TypedElement<E, X>, X extends TypedExtension, Y extends Exception> Fundamental base class for all Elements which can serve as a "document element" / "root element".Common superclass for generated subclasses called "DTD.java
", one for each tdom generated model.Reflection information for a "synthetic" element in the generated code, caused by a "<?tdom abstract ..>
" directive in the underlying DTD.Reflection information for one particular Attribute definition from the DTD.Container for all different kinds of reflection info objects.Reflection information for one particular Element definition from the DTD.Reflection information which indicates one(1) particular Java class, which has been generated to implement one(1) particular concept.Reflection information which indicates one(1) particular Java class, generated to implement one(1) particular concept which carries a NamespaceName.Base class for all generated classes which model "mixed contents" or "unmixed contents".Implemented by all Element types which include PCDATA and other elements.TypedElement.MixedContentFactory<C extends TypedElement.MixedContent<E,X>, E extends TypedElement<E, X>, X extends TypedExtension, Y extends Exception> Implemented by all Element types which include PCDATA.Content class in case that only PCData is contained, can be reused between models and instances.Common superclass for free floating, ubiquituous and syntactically unconstrained model components, namels comments and processing instructions.Gives access to theTypedEthereal
(Comments and PIs) which follow the open tag and precede the close tag of an Element, or stand at the begin and end of a document.Base class for the generated "Extension
" class.TypedExtension.ExtendedElement<E extends TypedElement>FIXME ????TypedNode<X extends TypedExtension>Fundamental superclass for all classes which implement tdom components.Listener interface which may be registered with the tdom generated parsing code and will be called after each successful parsing step.Represents a piece of contiguous PCData in a model instance.Realizes "PIs" = Processing Instructions in a tdom model instance.TypedSubstantial<X extends TypedExtension>Common superclass for the first class and syntactically constrained model components, namely Elements and PCData.TypedSubtree<E extends TypedExtension>Visits a tdom Element or Document class in a uniform way, e.g.Visitable<V extends BaseVisitor>Marks all generated classes which are reachable by the generated Visitor class.