Package eu.bandm.tools.dtd
Class DTD.CP
java.lang.Object
eu.bandm.tools.dtd.DTD.ContentModel
eu.bandm.tools.dtd.DTD.CP
- All Implemented Interfaces:
Formattable
,Cloneable
- Direct Known Subclasses:
DTD.Abbrev
,DTD.Choice
,DTD.Seq
,DTD.Singleton
- Enclosing class:
- DTD
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.)
(This definition has been created by UMod from the source at SYSTEM "DTD.umod":70.1-7, see this pretty print.)
-
Field Summary
Modifier and TypeFieldDescriptionprotected 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
combine
(int modifier1, int modifier2) doclone()
Clones this object.format()
Delivers a format object for pretty-printing by inheritance from some ancestor class.int
Generated by umod; model author's documentation MISSING.get_modifier
(Pattern<? super Integer> p) 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
-
Field Details
-
NONE
public static final int NONE- See Also:
-
OPTIONAL
public static final int OPTIONAL- See Also:
-
STAR
public static final int STAR- See Also:
-
PLUS
public static final int PLUS- See Also:
-
modifier
protected int modifierGenerated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "DTD.umod":203.5-49, see this pretty print.)
The type of this field is int(never null)
Its value defaults toNONE
.- See Also:
-
-
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 fieldmodifier
-
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
Clones this object. Method never fails, sinceCloneable
is known to be implemented.- Overrides:
doclone
in classDTD.ContentModel
- Returns:
- a fresh copy.
-
format
Delivers a format object for pretty-printing by inheritance from some ancestor class.- Specified by:
format
in interfaceFormattable
- Overrides:
format
in classDTD.ContentModel
- Returns:
- a format that represents this object in a pretty-printable way
-
combine
public static int combine(int modifier1, int modifier2) -
modify
-
initFrom
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 classDTD.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":203.5-49, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type int(never null)
- See Also:
-
with_modifier
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "DTD.umod":203.5-49, see this pretty print.) -
get_modifier
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 classDTD.__Patterns
.
-