| com.uwyn.rife.ioc.PropertyValue
All known Subclasses: com.uwyn.rife.ioc.PropertyValueParticipant, com.uwyn.rife.ioc.PropertyValueTemplate, com.uwyn.rife.ioc.PropertyValueObject,
PropertyValue | public interface PropertyValue (Code) | | This interface defines the methods that need to be implemented by classes
that are able to provide values to properties.
These classes should make all value retrieval as lazy as possible and
store only the parameters that are required to obtain the actual data
dynamically at runtime.
author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3634 $ since: 1.0 |
Method Summary | |
public Object | getValue() Retrieves a property value. | public String | getValueString() Retrieves a string representation of the property value. | public boolean | isNeglectable() Indicates whether the value provided by this instance is neglectable in
a textual context. | public boolean | isStatic() Indicates whether the value is statically fixed an not dynamically
retrieved at runtime. |
getValue | public Object getValue() throws PropertyValueException(Code) | | Retrieves a property value.
the requested property value; or null if the property value couldn't be found exception: PropertyValueException - When something went wrong during theretrieval of the property value. since: 1.0
|
getValueString | public String getValueString() throws PropertyValueException(Code) | | Retrieves a string representation of the property value.
the requested string representation of the property value; or null if the property value couldn't be found exception: PropertyValueException - When something went wrong during theretrieval of the property value. since: 1.0
|
isNeglectable | public boolean isNeglectable()(Code) | | Indicates whether the value provided by this instance is neglectable 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 neglectable ones.
true if the value is neglectable in a textualcontext; orfalse otherwise since: 1.0
|
isStatic | public boolean isStatic()(Code) | | Indicates whether the value is statically fixed an not dynamically
retrieved at runtime.
true if the value is static; orfalse if the value is dynamically retrieved at runtime since: 1.0
|
|
|