com.uwyn.rife.ioc
Interface PropertyValue

All Known Implementing Classes:
PropertyValueObject, PropertyValueParticipant, PropertyValueTemplate

public interface PropertyValue

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.

Since:
1.0
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Method Summary
 Object getValue()
          Retrieves a property value.
 String getValueString()
          Retrieves a string representation of the property value.
 boolean isNeglectable()
          Indicates whether the value provided by this instance is neglectable in a textual context.
 boolean isStatic()
          Indicates whether the value is statically fixed an not dynamically retrieved at runtime.
 

Method Detail

getValue

Object getValue()
                throws PropertyValueException
Retrieves a property value.

Returns:
the requested property value; or

null if the property value couldn't be found

Throws:
PropertyValueException - When something went wrong during the retrieval of the property value.
Since:
1.0

getValueString

String getValueString()
                      throws PropertyValueException
Retrieves a string representation of the property value.

Returns:
the requested string representation of the property value; or

null if the property value couldn't be found

Throws:
PropertyValueException - When something went wrong during the retrieval of the property value.
Since:
1.0

isNeglectable

boolean isNeglectable()
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.

Returns:
true if the value is neglectable in a textual context; or

false otherwise

Since:
1.0

isStatic

boolean isStatic()
Indicates whether the value is statically fixed an not dynamically retrieved at runtime.

Returns:
true if the value is static; or

false if the value is dynamically retrieved at runtime

Since:
1.0


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.