public class FieldAccessorFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldAccessorFactory.Presence
Constants for distinguishing whether this field must be present.
|
Modifier and Type | Method and Description |
---|---|
static FieldAccessor |
forField(Class<? extends AbstractFieldsObject> clazz,
String name)
Creates a new FieldAccessor for a field that has the given ASN.1 name,
and is in the CHOICE type with the given class.
|
static FieldAccessor |
forField(Class<? extends AbstractFieldsObject> clazz,
String name,
FieldAccessorFactory.Presence presence)
Creates a new FieldAccessor for a field that has the given ASN.1 name,
is in the type with the given class,
and is either mandatory or optional.
|
public static FieldAccessor forField(Class<? extends AbstractFieldsObject> clazz, String name)
clazz
- the Class that defines methods on the fieldname
- ASN.1 name of the field, after any @rename adaptationpublic static FieldAccessor forField(Class<? extends AbstractFieldsObject> clazz, String name, FieldAccessorFactory.Presence presence)
clazz
- the Class that defines methods on the fieldname
- ASN.1 name of the field, after any @rename adaptationpresence
- whether the field is mandatory or optional (null if in a CHOICE)