Class DTM.Element

java.lang.Object
eu.bandm.tools.dtm.DTM.Named
eu.bandm.tools.dtm.DTM.Element
All Implemented Interfaces:
Formattable, Cloneable
Enclosing class:
DTM

public static class DTM.Element extends DTM.Named
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "DTM.umod":25.1-28.16, see this pretty print.)
  • Field Details

  • Constructor Details

    • Element

      public Element(NamespaceName name, DTM.Content content)
      Constructor generated according to specification #0
      Constructor defined according to directive "C 0/..".
      Parameters:
      name - is copied to field DTM.Named.name
      content - is copied to field content
  • Method Details

    • doclone

      public DTM.Element doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.
      Overrides:
      doclone in class DTM.Named
      Returns:
      a fresh copy.
    • getFormatHint

      public static String getFormatHint()
      Delivers the format specification from the umod source.
      The constant return value is ..
      '<!ELEMENT'| name, content|'>'/'<!ATTLIST' name |attrs{$to}[/]|'>'
      This can be used e.g. by format code interpreters which process objects of different origin.
    • format

      public Format format()
      Delivers a format object for pretty-printing, as specified in the umod source.
      Specified by:
      format in interface Formattable
      Overrides:
      format in class DTM.Named
      Returns:
      a format that represents this object in a pretty-printable way
    • initFrom

      public DTM.Element initFrom(Object o0)
      Copies values of all common fields from the argument. All fields of this class definition are copied, iff the argument is of this class. Then the superclass method is invoked with the same argument.
      Overrides:
      initFrom in class DTM.Named
    • get_attrs

      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTM.umod":26.9-64, see this pretty print.)
      Generated getter method. @see #attrs
      Returns:
      The current field value of type CheckedMap_RD<NamespaceName(never null),DTM.Attribute(never null)>(never null)
    • set_attrs

      public boolean set_attrs(CheckedMap_RD<NamespaceName,DTM.Attribute> val)
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTM.umod":26.9-64, see this pretty print.)
      Updates the (mutable) instance destructively.
      Parameters:
      val - the new value of type CheckedMap_RD<NamespaceName(never null),DTM.Attribute(never null)>(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • put_attrs

      public void put_attrs(NamespaceName key0, DTM.Attribute value)
      Convenience un-Currying method.
      Set the value at the given coordinate and automatically generate all intermediate collections, if not yet existing.
      Parameters:
      value - the new value of type DTM.Attribute(never null)
      See Also:
    • containsKey_attrs

      public boolean containsKey_attrs(NamespaceName key0)
      Convenience un-Currying method.
      Returns:
      whether there exists a chain of collection objects to the given co-ordinate.
      See Also:
    • descend_attrs

      @Deprecated public void descend_attrs(DTM.MATCH_ONLY_00 visitor)
      Deprecated.
    • descend_0_attrs

      @Deprecated public void descend_0_attrs(DTM.MATCH_ONLY_00 visitor)
      Deprecated.
    • get_content

      public DTM.Content get_content()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTM.umod":27.9-63, see this pretty print.)
      Generated getter method. @see #content
      Returns:
      The current field value of type DTM.Content(never null)
    • set_content

      public boolean set_content(DTM.Content val)
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTM.umod":27.9-63, see this pretty print.)
      Updates the (mutable) instance destructively.
      Parameters:
      val - the new value of type DTM.Content(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_attrs

      public static Pattern<DTM.Element> get_attrs(Pattern<? super CheckedMap_RD<NamespaceName,DTM.Attribute>> p)
      Lifts a pattern which matches the field value to one which matches this whole object.
      More complex pattern methods are generated in the one ancillary class DTM.__Patterns.
    • get_content

      public static Pattern<DTM.Element> get_content(Pattern<? super DTM.Content> p)
      Lifts a pattern which matches the field value to one which matches this whole object.
      More complex pattern methods are generated in the one ancillary class DTM.__Patterns.