Class DTD.Choice

All Implemented Interfaces:
Formattable, Cloneable
Enclosing class:
DTD

public static class DTD.Choice extends DTD.CP
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "DTD.umod":73.1-5, see this pretty print.)
  • Field Details

  • Constructor Details

    • Choice

      public Choice(int modifier, CheckedList<DTD.CP> alts)
      Constructor generated according to specification #0
      Constructor defined according to directive "C 0/..".

      Parameters:
      modifier - is copied to field DTD.CP.modifier
      alts - is copied to field alts
    • Choice

      public Choice(CheckedList<DTD.CP> alts)
      Constructor generated according to specification #1
      Constructor defined according to directive "C 1/..".

      Parameters:
      alts - is copied to field alts
    • Choice

      public Choice()
      Synthetic minimal constructor provided by the umod compiler.
      Constructor with minimal set of arguments, supplied automatically by the umod compiler, not explicitly by user.
      (All object fields are set to their default values.)

  • Method Details

    • doclone

      public DTD.Choice doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.
      Overrides:
      doclone in class DTD.CP
      Returns:
      a fresh copy.

    • getFormatHint

      public static String getFormatHint()
      Delivers the format specification from the umod source.
      The constant return value is ..
      alts['('|' | ',')']$switch modifier{1:'?',2:'*',3:'+'}
      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 DTD.CP
      Returns:
      a format that represents this object in a pretty-printable way
    • modify

      public DTD.CP modify(int modifier)
      Overrides:
      modify in class DTD.CP
    • equals

      public boolean equals(Object e0)
      Generated by umod because this class is ALGEBRAIC.
      Overrides:
      equals in class DTD.ContentModel
    • x_equals

      public boolean x_equals(DTD.Choice e0)
    • hashCode

      public int hashCode()
      Generated by umod because this class is ALGEBRAIC.
      Overrides:
      hashCode in class DTD.ContentModel
    • initFrom

      public DTD.Choice 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 DTD.CP
    • get_alts

      public CheckedList<DTD.CP> get_alts()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTD.umod":236.7-51, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type CheckedList<DTD.CP(never null)>(never null)
      See Also:
    • with_alts

      public DTD.Choice with_alts(CheckedList<DTD.CP> val)
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTD.umod":236.7-51, see this pretty print.)
      Parameters:
      val - the new value of type CheckedList<DTD.CP(never null)>(never null)
      Returns:
      a new instance of the algebraic/immutable data type, with the addressed field set to the new value.
      See Also:

    • descend_alts

      @Deprecated public void descend_alts(DTD.MATCH_ONLY_00 visitor)
      Deprecated.
    • get_alts

      public static Pattern<DTD.Choice> get_alts(Pattern<? super CheckedList<DTD.CP>> 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 DTD.__Patterns.