public static final class Setting.Literal extends AnnotationLiteral<Setting> implements Setting
AnnotationLiteral that implements the Setting
interface/annotation.Setting,
Serialized FormSetting.Literal| Constructor and Description |
|---|
Literal(String name,
String defaultValue,
boolean required)
Creates a new
Setting.Literal. |
| Modifier and Type | Method and Description |
|---|---|
String |
defaultValue()
The default value for the setting.
|
String |
name()
The setting name.
|
boolean |
required()
Whether a value for the setting must be present; it is illegal
to set this to
true and set the defaultValue element to a value other than Setting.UNSET |
annotationType, equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationType, equals, hashCode, toStringpublic Literal(String name, String defaultValue, boolean required)
Setting.Literal.name - the value for the name
element; may be null in which case Setting.UNSET will be used insteaddefaultValue - the value for the defaultValue element; may be null in which case Setting.UNSET will be used insteadrequired - the value for the required elementpublic final String name()
null but possibly Setting.UNSETpublic final String defaultValue()
null but possibly
Setting.UNSETpublic final boolean required()
true and set the defaultValue element to a value other than Setting.UNSETCopyright © 2019–2020, microBean™. All rights reserved.