org.locomotive.directory
Class BeanPropertyValue
java.lang.Object
|
+--org.locomotive.directory.BeanPropertyValue
- public class BeanPropertyValue
- extends java.lang.Object
A class representing a bean property value.
Field Summary |
static int |
COMPONENT_TYPE
Indicates that this value references a component, and
and that the computed value cannot be stored for future use. |
static int |
CONSTANT_TYPE
Indicates that value of this property is constant, and
computedValue can be used in future lookups. |
Method Summary |
java.lang.Object |
getComputedValue()
Get the computed value for this property value. |
int |
getType()
Get the type of this property value declaration. |
java.lang.String |
getValue()
Get the value as a String. |
void |
setComputedValue(java.lang.Object computedValue)
Set the computed value for this property value. |
void |
setType(int type)
Set the type of this property value declaration. |
void |
setValue(java.lang.String value)
Set the value as a String. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
CONSTANT_TYPE
public static final int CONSTANT_TYPE
- Indicates that value of this property is constant, and
computedValue can be used in future lookups.
- See Also:
getType().
COMPONENT_TYPE
public static final int COMPONENT_TYPE
- Indicates that this value references a component, and
and that the computed value cannot be stored for future use.
BeanPropertyValue
public BeanPropertyValue()
getType
public int getType()
- Get the type of this property value declaration. The type defaults
to CONSTANT_TYPE.
setType
public void setType(int type)
- Set the type of this property value declaration. The type defaults
to CONSTANT_TYPE.
- Parameters:
type
- The type of this value declaration.
getComputedValue
public java.lang.Object getComputedValue()
- Get the computed value for this property value. It will
return null if no value has been computed for it.
setComputedValue
public void setComputedValue(java.lang.Object computedValue)
- Set the computed value for this property value.
It can only be called for the type is CONSTANT_TYPE.
- Parameters:
computedValue
- Object containing the computed value.
getValue
public java.lang.String getValue()
- Get the value as a String.
setValue
public void setValue(java.lang.String value)
- Set the value as a String.
- Parameters:
value
- The String value for this property.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object