public final class FieldBindingSide extends Object implements BindingSide
Constructor and Description |
---|
FieldBindingSide(Field field)
Creates binding to field from field reference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns name (ex.
|
Object |
getValue(Object object)
Extracts value from passed object and returns it.
|
Class |
getValueClass()
Returns value class.
|
int |
hashCode() |
boolean |
isGetterAvailable()
Returns
true if getter is available, otherwise false . |
boolean |
isSetterAvailable()
Returns
true if setter is available, otherwise false . |
void |
setValue(Object object,
Object value)
Sets value for passed object.
|
String |
toString() |
public FieldBindingSide(Field field)
field
- field reference used to create binding.public Object getValue(Object object)
BindingSide
MappingException
will be trown.getValue
in interface BindingSide
object
- value source.public void setValue(Object object, Object value)
BindingSide
MappingException
will be trown.setValue
in interface BindingSide
object
- value object.value
- value to set.public Class getValueClass()
BindingSide
getValueClass
in interface BindingSide
public String getName()
BindingSide
getName
in interface BindingSide
public boolean isGetterAvailable()
BindingSide
true
if getter is available, otherwise false
.isGetterAvailable
in interface BindingSide
true
if getter is available, otherwise false
.public boolean isSetterAvailable()
BindingSide
true
if setter is available, otherwise false
.isSetterAvailable
in interface BindingSide
true
if setter is available, otherwise false
.Copyright © 2014. All rights reserved.