ariba.util.fieldvalue
Class ExtensibleFieldValueAccessor
java.lang.Object
ariba.util.fieldvalue.BaseAccessor
ariba.util.fieldvalue.ExtensibleFieldValueAccessor
- All Implemented Interfaces:
- FieldValueAccessor, FieldValueGetter, FieldValueSetter
public class ExtensibleFieldValueAccessor
- extends BaseAccessor
- implements FieldValueSetter, FieldValueGetter
FieldValue_Extensible provides an implementation of the FieldValue
interface for the Extensible interface. Clasess which implement the
Extensible interface allow for named fields to be added dynamically
to their instances. These fields are managed in a hashtable. The
FieldValue_Extensible implementation uses this hashtable as an optional
place to locate fields after we have failed to find the desired field
in the usual way.
newInstance
public static ExtensibleFieldValueAccessor newInstance(Class targetClass,
String targetFieldName)
- Creates a new instance of an ExtensibleFieldValueAccessor.
- Parameters:
targetClass - the class for which the access applies.targetFieldName - the name of the desired field
- Returns:
- a new ExtensibleFieldValueAccessor
getValue
public Object getValue(Object target)
- Gets a value from the target's extendedFields hashtable. You must call
setValue(...) before calling this or a FieldValueException will be thrown.
- Specified by:
getValue in interface FieldValueGetter
- Parameters:
target - the object on which the receiver will
perform the get operation.
- Returns:
- the object found in the extendedFields hashtable.
setValue
public void setValue(Object target,
Object value)
- Puts a value in the target's extendedFields hashtable.
- Specified by:
setValue in interface FieldValueSetter
- Parameters:
target - the object on which the receiver will
perform the set operation.value - the object put in the hashtable.
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.