|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A PresetDescriptor is created by the PresetCategory. It defines one of the attributes of the Presets.
Field Summary | |
static int |
TYPEID The type id of this class. |
static java.lang.String |
TYPENAME The constant class type identifier |
Method Summary | |
java.lang.String |
getDescription() Gets the description of the preset attribute. |
java.lang.String |
getFormat() Gets the format of the preset value. |
java.lang.String |
getName() Gets the name of the preset attribute. |
java.lang.String[] |
getOptions() Gets the options. |
DataType |
getPresetDataType() Get the DataType which is a symbolic description of the stored type. |
ArgumentType |
getPresetType() Gets the type of the preset, such as enum, single line, multi-line, etc. |
java.lang.Long |
getScale() Gets the scale of the numeric data type. |
java.lang.Long |
getSize() Gets the size of the data of the given data type. |
int |
getStoredType() Gets the stored data type in the database. |
boolean |
isEmptyOK() Test if the preset value can be empty. |
void |
setDescription(java.lang.String description) Sets the description of the preset attribute. |
void |
setEmptyOK(boolean emptyOK) Sets if the preset can be empty or not empty. |
void |
setFormat(java.lang.String format) Sets the format of the preset value. |
void |
setName(java.lang.String name) Sets the name of the preset attribute. |
void |
setOptions(java.lang.String[] options) Sets the options. |
void |
setPresetDataType(DataType type) Set the stored data type using the symbolic description. |
void |
setPresetDataType(java.lang.String code) Set the stored data type using the code number of the DataType. |
void |
setPresetType(ArgumentType type) Sets the type of the preset, such as enum, single line, multi-line, etc. |
void |
setScale(java.lang.Long scale) Sets the scale of the numeric data type. |
void |
setSize(java.lang.Long size) Sets the size of the data of the given data type. |
void |
setStoredType(int storedType) Sets the stored data type in the database. |
boolean |
verifyFormat(java.lang.String value) Verify if the preset value satisfy the format specification. |
Methods inherited from interface oracle.panama.model.ModelObject |
delete, getCreatedDate, getId, getLastModifiedDate, getTypeId, getTypeName, isSystem, setSystem, undoAll |
Methods inherited from interface oracle.panama.model.XMLObject |
setXML, toXML |
Field Detail |
public static final java.lang.String TYPENAME
public static final int TYPEID
Method Detail |
public java.lang.String getName()
getName
in interface ModelObject
public void setName(java.lang.String name)
setName
in interface ModelObject
name
- must be not nullpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String[] getOptions()
public void setOptions(java.lang.String[] options) throws TooManyOptionsException
throws
- PanamaRuntimeException if the options do not satisfy the formatTooManyOptionsException
public ArgumentType getPresetType()
public void setPresetType(ArgumentType type)
ArgumentType
public boolean isEmptyOK()
public void setEmptyOK(boolean emptyOK)
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
#verifyFormat()
public int getStoredType()
public void setStoredType(int storedType)
public java.lang.Long getSize()
public void setSize(java.lang.Long size)
public java.lang.Long getScale()
public void setScale(java.lang.Long scale)
public DataType getPresetDataType()
public void setPresetDataType(DataType type)
public void setPresetDataType(java.lang.String code)
public boolean verifyFormat(java.lang.String value) throws PanamaException
throws
- PanamaException if the format expression is not validPanamaException
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |