Class DTD.CP

All Implemented Interfaces:
Formattable, Cloneable
Direct Known Subclasses:
DTD.Abbrev, DTD.Choice, DTD.Seq, DTD.Singleton
Enclosing class:
DTD

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

    Fields
    Modifier and Type
    Field
    Description
    protected int
    Generated by umod; model author's documentation MISSING.
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class eu.bandm.tools.dtd.DTD.ContentModel

    ANY, BASE_HASH, EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CP()
    Synthetic minimal constructor provided by the umod compiler.
    CP(int modifier)
    Constructor generated according to specification #0
    Constructor defined according to directive "C 0/..".
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    combine(int modifier1, int modifier2)
     
    Clones this object.
    Delivers a format object for pretty-printing by inheritance from some ancestor class.
    int
    Generated by umod; model author's documentation MISSING.
    static Pattern<DTD.CP>
    Lifts a pattern which matches the field value to one which matches this whole object.
    Copies values of all common fields from the argument.
    modify(int modifier)
     
    with_modifier(int val)
    Generated by umod; model author's documentation MISSING.

    Methods inherited from class eu.bandm.tools.dtd.DTD.ContentModel

    equals, hashCode, x_equals

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CP

      public CP(int modifier)
      Constructor generated according to specification #0
      Constructor defined according to directive "C 0/..".
      Parameters:
      modifier - is copied to field modifier
    • CP

      public CP()
      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.CP doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.
      Overrides:
      doclone in class DTD.ContentModel
      Returns:
      a fresh copy.
    • format

      public Format format()
      Delivers a format object for pretty-printing by inheritance from some ancestor class.
      Specified by:
      format in interface Formattable
      Overrides:
      format in class DTD.ContentModel
      Returns:
      a format that represents this object in a pretty-printable way
    • combine

      public static int combine(int modifier1, int modifier2)
    • modify

      public DTD.CP modify(int modifier)
    • initFrom

      public DTD.CP 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.ContentModel
    • get_modifier

      public int get_modifier()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "DTD.umod":198.5-49, see this pretty print.)
      Generated getter method. @see #modifier
      Returns:
      The current field value of type int(never null)
    • with_modifier

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

      public static Pattern<DTD.CP> get_modifier(Pattern<? super Integer> 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.