ariba.util.fieldvalue
Class FieldValue_Extensible
java.lang.Object
ariba.util.core.ClassExtension
ariba.util.fieldvalue.FieldValue
ariba.util.fieldvalue.FieldValue_Object
ariba.util.fieldvalue.FieldValue_Extensible
- All Implemented Interfaces:
- java.lang.Cloneable
public class FieldValue_Extensible
- extends FieldValue_Object
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.
Method Summary |
FieldValueAccessor |
createAccessor(java.lang.Object target,
java.lang.String fieldName,
int type)
Creates and returns a new FieldValueAccessor (by default,
a ReflectionFieldValueAccessor) for the given target and fieldName. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldValue_Extensible
public FieldValue_Extensible()
createAccessor
public FieldValueAccessor createAccessor(java.lang.Object target,
java.lang.String fieldName,
int type)
- Description copied from class:
FieldValue_Object
- Creates and returns a new FieldValueAccessor (by default,
a ReflectionFieldValueAccessor) for the given target and fieldName.
No caching is done by this method. This method is designed to be
overridden by subclasses of FieldValue_Object which want to define
their own specialized accessors. Note that the target is passed
rather than its class so that accessors can be created at a finer
granularity than class. Certain meta-data driven classes require
this flexibility.
- Overrides:
createAccessor
in class FieldValue_Object
- Parameters:
target
- the object for which the accessor will be createdfieldName
- the name of the field for which the accessor will be createdtype
- the type of accessor will be created (either FieldValue.Setter
or FieldValue.Getter)
- Returns:
- a new FieldValueAccessor (ReflectionFieldValueAccessor by default)
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.