public interface FieldAccessor
Modifier and Type | Method and Description |
---|---|
Object |
get(AbstractFieldsObject object)
Calls a getter on this field in the given object.
|
Class<?> |
getEnclosingClass()
Gets the enclosing class of this field.
|
String |
getName()
Gets the ASN.1 name of this field,
after application of any @rename adaptation.
|
Parser<?> |
getParser()
Gets the parser for values of this field.
|
FieldAccessorFactory.Presence |
getPresence()
Gets whether this field is mandatory or optional.
|
Class<?> |
getType()
Gets the type of this field.
|
boolean |
has(AbstractFieldsObject object)
Calls a has or isChosen method on this field in the given object.
|
void |
set(AbstractFieldsObject object,
Object value)
Calls a setter on this field in the given object.
|
String getName()
Class<?> getType()
FieldAccessorFactory.Presence getPresence()
Class<?> getEnclosingClass()
Object get(AbstractFieldsObject object)
object
- the object from which to get this field's valuevoid set(AbstractFieldsObject object, Object value)
object
- the object in which to set this field's valuevalue
- new value for the object's fieldboolean has(AbstractFieldsObject object)
object
- the object in which to test this field's presenceParser<?> getParser()