public static class DTD.Choice extends DTD.CP
Modifier and Type | Field and Description |
---|---|
protected CheckedList<DTD.CP> |
alts
Generated by umod; model author's documentation MISSING.
|
protected static int |
BASE_HASH |
ANY, EMPTY
format
Constructor and Description |
---|
Choice()
Synthetic minimal constructor provided by the umod compiler.
|
Choice(CheckedList<DTD.CP> alts)
Constructor generated according to specification #1
Constructor defined according to directive "C 1/..". |
Choice(int modifier,
CheckedList<DTD.CP> alts)
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..". |
Modifier and Type | Method and Description |
---|---|
void |
descend_alts(DTD.MATCH_ONLY_00 visitor) |
DTD.Choice |
doclone()
Clones this object.
|
boolean |
equals(Object e0)
Generated by umod because this class is
ALGEBRAIC . |
Format |
format()
Delivers a format object for pretty-printing, as specified in the umod source.
|
CheckedList<DTD.CP> |
get_alts()
Generated by umod; model author's documentation MISSING.
|
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.
|
static String |
getFormatHint()
Delivers the format specification from the umod source.
|
int |
hashCode()
Generated by umod because this class is
ALGEBRAIC . |
DTD.Choice |
initFrom(Object o0)
Copies values of all common fields from the argument.
|
DTD.CP |
modify(int modifier) |
DTD.Choice |
with_alts(CheckedList<DTD.CP> val)
Generated by umod; model author's documentation MISSING.
|
boolean |
x_equals(DTD.Choice e0) |
combine, get_modifier, get_modifier, with_modifier
x_equals
protected static final int BASE_HASH
protected CheckedList<DTD.CP> alts
CheckedList
<DTD.CP
(never
null)>(never null)public Choice(int modifier, CheckedList<DTD.CP> alts)
modifier
- is copied to field DTD.CP.modifier
alts
- is copied to field alts
public Choice(CheckedList<DTD.CP> alts)
alts
- is copied to field alts
public Choice()
public DTD.Choice doclone()
Cloneable
is known
to be implemented.public static String getFormatHint()
alts['('|' | ',')']$switch
modifier{1:'?',2:'*',3:'+'}
public Format format()
format
in interface Formattable
format
in class DTD.CP
public boolean equals(Object e0)
ALGEBRAIC
.equals
in class DTD.ContentModel
public boolean x_equals(DTD.Choice e0)
public int hashCode()
ALGEBRAIC
.hashCode
in class DTD.ContentModel
public DTD.Choice initFrom(Object o0)
public CheckedList<DTD.CP> get_alts()
CheckedList
<DTD.CP
(never
null)>(never null)public DTD.Choice with_alts(CheckedList<DTD.CP> val)
val
- the new value of type CheckedList
<DTD.CP
(never
null)>(never null)alts
public void descend_alts(DTD.MATCH_ONLY_00 visitor)
public static Pattern<DTD.Choice> get_alts(Pattern<? super CheckedList<DTD.CP>> p)
DTD.__Patterns
.see also the complete user documentation .