|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bval.util.AccessStrategy
public abstract class AccessStrategy
Description: abstract class to encapsulate different strategies
to get the value of a Property. This class is designed such that
subclasses are intended to know internally to which property they refer,
with only the particular target instance being externally required
to calculate the property's value. One intent of this design is
that the notion of the very definition of a property is abstracted
along with the mechanism for accessing that property.
Constructor Summary | |
---|---|
AccessStrategy()
|
Method Summary | |
---|---|
abstract Object |
get(Object instance)
Get the value from the given instance. |
abstract ElementType |
getElementType()
Get the Java program ElementType used by this AccessStrategy
to determine property values. |
abstract Type |
getJavaType()
Get the type of the property |
abstract String |
getPropertyName()
Get a name representative of this property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessStrategy()
Method Detail |
---|
public abstract Object get(Object instance)
instance
-
IllegalArgumentException
- in case of an errorpublic abstract ElementType getElementType()
ElementType
used by this AccessStrategy
to determine property values.
public abstract Type getJavaType()
public abstract String getPropertyName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |