public static class DTD.Singleton extends DTD.CP
Modifier and Type | Field and Description |
---|---|
protected static int |
BASE_HASH |
protected String |
name
Generated by umod; model author's documentation MISSING.
|
ANY, EMPTY
format
Constructor and Description |
---|
Singleton(int modifier,
String name)
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..". |
Singleton(String name)
Constructor generated according to specification #1
Constructor defined according to directive "C 1/..". |
Modifier and Type | Method and Description |
---|---|
DTD.Singleton |
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.
|
String |
get_name()
Generated by umod; model author's documentation MISSING.
|
static Pattern<DTD.Singleton> |
get_name(Pattern<? super String> 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.Singleton |
initFrom(Object o0)
Copies values of all common fields from the argument.
|
DTD.CP |
modify(int modifier) |
String |
toString() |
DTD.Singleton |
with_name(String val)
Generated by umod; model author's documentation MISSING.
|
boolean |
x_equals(DTD.Singleton e0) |
combine, get_modifier, get_modifier, with_modifier
x_equals
protected static final int BASE_HASH
protected String name
get_name()
,
with_name(java.lang.String)
public Singleton(int modifier, String name)
modifier
- is copied to field DTD.CP.modifier
name
- is copied to field name
public DTD.Singleton doclone()
Cloneable
is known
to be implemented.public static String getFormatHint()
name$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.Singleton e0)
public int hashCode()
ALGEBRAIC
.hashCode
in class DTD.ContentModel
public DTD.Singleton initFrom(Object o0)
public String get_name()
public DTD.Singleton with_name(String val)
val
- the new value of type java.lang.String(never null)name
public static Pattern<DTD.Singleton> get_name(Pattern<? super String> p)
DTD.__Patterns
.see also the complete user documentation .