|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
Attributes map name/value pairs into metadata records.
Currently, only OMR TypedProperty's are supported.
Like Configuration, an Attribute cannot be directly
instantiated. Clients should call Configuration.setAttribute().
Attribute provides a number of convenience methods to translate
the metadata representation of the Attribute value.
Configuration| Method Summary | |
String |
getName()
Get the name of the attribute |
String |
getValue()
Get the value of the attribute |
boolean |
getValueAsBoolean()
Get the value of the attribute, as a boolean. |
boolean |
getValueAsBoolean(boolean defaultValue)
Get the value of the attribute, as a boolean. |
double |
getValueAsDouble()
Get the value of the attribute, as a double. |
double |
getValueAsDouble(double defaultValue)
Get the value of the attribute, as a double. |
float |
getValueAsFloat()
Get the value of the attribute, as a float. |
float |
getValueAsFloat(float defaultValue)
Get the value of the attribute, as a float. |
int |
getValueAsInt()
Get the value of the attribute, as an int. |
int |
getValueAsInt(int defaultValue)
Get the value of the attribute, as an int. |
long |
getValueAsLong()
Get the value of the attribute, as a long. |
long |
getValueAsLong(long defaultValue)
Get the value of the attribute, as a long. |
void |
setValue(String value)
Set the value of the attribute |
| Method Detail |
public String getName()
public void setValue(String value)
value - the value of the attributepublic String getValue()
public int getValueAsInt(int defaultValue)
defaultValue - the value to return if the
provided value is not set (null) or cannot be
represented as an intpublic int getValueAsInt()
public long getValueAsLong(long defaultValue)
defaultValue - the value to return if the
provided value is not set (null) or cannot be
represented as a longpublic long getValueAsLong()
public double getValueAsDouble(double defaultValue)
defaultValue - the value to return if the
provided value is not set (null) or cannot be
represented as a doublepublic double getValueAsDouble()
public float getValueAsFloat(float defaultValue)
defaultValue - the value to return if the
provided value is not set (null) or cannot be
represented as a floatpublic float getValueAsFloat()
public boolean getValueAsBoolean(boolean defaultValue)
defaultValue - the value to return if the
provided value is not set (null) or cannot be
represented as a booleanpublic boolean getValueAsBoolean()
|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||