|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
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 | |
---|---|
java.lang.String |
getName()
Get the name of the attribute |
java.lang.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(java.lang.String value)
Set the value of the attribute |
Method Detail |
---|
java.lang.String getName()
void setValue(java.lang.String value)
value
- the value of the attributejava.lang.String getValue()
int getValueAsInt(int defaultValue)
defaultValue
- the value to return if the
provided value is not set (null) or cannot be
represented as an int
int getValueAsInt()
long getValueAsLong(long defaultValue)
defaultValue
- the value to return if the
provided value is not set (null) or cannot be
represented as a long
long getValueAsLong()
double getValueAsDouble(double defaultValue)
defaultValue
- the value to return if the
provided value is not set (null) or cannot be
represented as a double
double getValueAsDouble()
float getValueAsFloat(float defaultValue)
defaultValue
- the value to return if the
provided value is not set (null) or cannot be
represented as a float
float getValueAsFloat()
boolean getValueAsBoolean(boolean defaultValue)
defaultValue
- the value to return if the
provided value is not set (null) or cannot be
represented as a boolean
boolean getValueAsBoolean()
|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |