Class ContainerTemplate

Direct Known Subclasses:
AltTemplate, ChoiceTemplate, ElementTemplate, SequenceTemplate

abstract class ContainerTemplate extends NodeTemplate
  • Field Details

  • Constructor Details

  • Method Details

    • contentModel

      protected abstract DTD.ContentModel contentModel()
    • init

      protected void init()
      Overrides:
      init in class NodeTemplate
    • finish

      protected void finish()
      Overrides:
      finish in class NodeTemplate
    • generateDeclComment

      protected void generateDeclComment()
    • generateVisitMethod

      protected GeneratedMethod generateVisitMethod()
      For TypedSequence, TypedChoice, TypedAlt.
    • generateDumpMethod

      protected GeneratedMethod generateDumpMethod()
    • generateDumpElementsMethod

      protected GeneratedMethod generateDumpElementsMethod()
    • addAttrDescendStatement

      public void addAttrDescendStatement(String methodName)
    • addDescendStatement

      void addDescendStatement(Format template)
    • addDescendStatement

      void addDescendStatement(Format template, boolean priority)
      Overrides:
      addDescendStatement in class NodeTemplate
    • setNumbering

      public void setNumbering(DTD.CP cp)
    • getNumber

      public int getNumber()
    • generateTypedConstructor

      protected GeneratedConstructor generateTypedConstructor()
      The "typed constructor" has the same signature as the set(...) method, namely what corresponds correctly to the content model (notwithstanding null-checks and array length.)
    • generateSetMethod

      protected GeneratedMethod generateSetMethod()
      ATTENTION the set method serves as a prototype and the sequence of its parameters is copied to several other methods (for structured contents, defined by DTD.CP). FIXME not yet correctly handled for mixed contents !?!?
    • generateUntypedConstructor

      protected GeneratedConstructor generateUntypedConstructor()
      The "untyped constructor" requires a tdom object and is NORMALLY NOT visible to/callable by the programmer.
    • addVisitContentStatement

      public void addVisitContentStatement(String fieldName, String singularName, int modifier)
    • generateParseMethod

      protected GeneratedMethod generateParseMethod()
    • generateEncodeMethod

      protected GeneratedMethod generateEncodeMethod()
    • generateDecodeMethod

      protected GeneratedMethod generateDecodeMethod()
    • addDecodeArgument

      public void addDecodeArgument(Format decodeArgument)
    • generateDecodeStatement

      public void generateDecodeStatement()
    • addChild

      public void addChild(ContainerTemplate child)
    • internalSetDirectors

      protected ContentParserGenerator.Rule internalSetDirectors(ContentParserGenerator.Rule rule)
    • setDirectors

      protected abstract void setDirectors(ContentParserGenerator.Rule rule)
    • useSemiparser

      void useSemiparser()
      Overrides:
      useSemiparser in class NodeTemplate