|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bval.util.AccessStrategy
org.apache.bval.util.FieldAccess
public class FieldAccess
Description: direct field access strategy.
Constructor Summary | |
---|---|
FieldAccess(Field field)
Create a new FieldAccess instance. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Object |
get(Object instance)
Get the value from the given instance. |
ElementType |
getElementType()
Get the Java program ElementType used by this AccessStrategy
to determine property values. |
Type |
getJavaType()
Get the type of the property |
String |
getPropertyName()
Get a name representative of this property. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldAccess(Field field)
field
- Method Detail |
---|
public Object get(Object instance)
get
in class AccessStrategy
public ElementType getElementType()
ElementType
used by this AccessStrategy
to determine property values.
getElementType
in class AccessStrategy
public Type getJavaType()
getJavaType
in class AccessStrategy
public String getPropertyName()
getPropertyName
in class AccessStrategy
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |