|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") 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 | |
|---|---|
abstract java.lang.String |
getName()
Get the name of the attribute |
abstract java.lang.String |
getValue()
Get the value of the attribute |
abstract boolean |
getValueAsBoolean()
Get the value of the attribute, as a boolean. |
abstract boolean |
getValueAsBoolean(boolean defaultValue)
Get the value of the attribute, as a boolean. |
abstract double |
getValueAsDouble()
Get the value of the attribute, as a double. |
abstract double |
getValueAsDouble(double defaultValue)
Get the value of the attribute, as a double. |
abstract float |
getValueAsFloat()
Get the value of the attribute, as a float. |
abstract float |
getValueAsFloat(float defaultValue)
Get the value of the attribute, as a float. |
abstract int |
getValueAsInt()
Get the value of the attribute, as an int. |
abstract int |
getValueAsInt(int defaultValue)
Get the value of the attribute, as an int. |
abstract long |
getValueAsLong()
Get the value of the attribute, as a long. |
abstract long |
getValueAsLong(long defaultValue)
Get the value of the attribute, as a long. |
abstract 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 | |||||||||||||