public abstract class EnumOption extends BasicOption
Constructor and Description |
---|
EnumOption(java.lang.String id,
int uid,
java.lang.String name,
java.lang.String shortDescription,
java.lang.String longDescription,
boolean isRequest,
boolean isResponse,
EnumOptionValue defaultValue,
boolean dontpersist) |
Modifier and Type | Method and Description |
---|---|
EnumOptionValue |
getDefault()
Gets the default value for this option.
|
abstract EnumOptionValue |
mapId(int id)
Map a integer id to a value
|
abstract EnumOptionValue |
mapId(java.lang.String id)
Map a string id to a value
|
getId, getLongDescription, getName, getShortDescription, getUid, isRequest, isResponse, toString
public EnumOption(java.lang.String id, int uid, java.lang.String name, java.lang.String shortDescription, java.lang.String longDescription, boolean isRequest, boolean isResponse, EnumOptionValue defaultValue, boolean dontpersist)
public EnumOptionValue getDefault()
public abstract EnumOptionValue mapId(int id)
id
- The integer id of a value for this enumpublic abstract EnumOptionValue mapId(java.lang.String id)
id
- The sting id of a value for this enumCopyright © 2021 Oracle. All right reserved. Restricted and confidential property of Oracle. Solely for use by recipent under agreement forbidding disclosure.