Package rife.ioc
Class PropertyValueObject
java.lang.Object
rife.ioc.PropertyValueObject
- All Implemented Interfaces:
PropertyValue
Holds a single static object property value that doesn't change at runtime.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyValueObject(Object value) The constructor that stores the static object instance. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Retrieves a property value.Retrieves a string representation of the property value.booleanIndicates whether the value provided by this instance is negligible in a textual context.booleanisStatic()Indicates whether the value is statically fixed and not dynamically retrieved at runtime.toString()
-
Constructor Details
-
PropertyValueObject
The constructor that stores the static object instance.- Parameters:
value- the static object instance- Since:
- 1.0
-
-
Method Details
-
getValue
Description copied from interface:PropertyValueRetrieves a property value.- Specified by:
getValuein interfacePropertyValue- Returns:
- the requested property value; or
nullif the property value couldn't be found
-
getValueString
Description copied from interface:PropertyValueRetrieves a string representation of the property value.- Specified by:
getValueStringin interfacePropertyValue- Returns:
- the requested string representation of the property value; or
nullif the property value couldn't be found
-
toString
-
isNegligible
public boolean isNegligible()Description copied from interface:PropertyValueIndicates whether the value provided by this instance is negligible in a textual context. This is for instance applicable to pure whitespace values that when trimmed, have zero length. The property construction logic will check this state to determine if it has to concatenate several property values together as one text result of only use one and discard all other negligible ones.- Specified by:
isNegligiblein interfacePropertyValue- Returns:
trueif the value is negligible in a textual context; orfalseotherwise
-
isStatic
public boolean isStatic()Description copied from interface:PropertyValueIndicates whether the value is statically fixed and not dynamically retrieved at runtime.- Specified by:
isStaticin interfacePropertyValue- Returns:
trueif the value is static; orfalseif the value is dynamically retrieved at runtime
-