public class FieldAccessorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static FieldAccessor |
fromArray(String name,
FieldAccessor[] fieldAccessors)
Gets the FieldAccessor for the field with the given name
from the given array of FieldAccessors.
|
static Map<String,Object> |
getChoiceFieldsMap(AbstractFieldsObject object,
FieldAccessor[] fieldAccessors)
Gets a Map from :discriminant-name to field-value.
|
static Map<String,Object> |
getSequenceFieldsMap(AbstractFieldsObject object,
FieldAccessor[] fieldAccessors,
boolean withAbsents)
Gets a Map from field-name to field-value for the fields of a sequence.
|
public static FieldAccessor fromArray(String name, FieldAccessor[] fieldAccessors)
name
- ASN.1 name of the field, after any @rename adaptationfieldAccessors
- FieldAccessor[]public static Map<String,Object> getSequenceFieldsMap(AbstractFieldsObject object, FieldAccessor[] fieldAccessors, boolean withAbsents)
object
- that whose fields are to be accessedfieldAccessors
- FieldAccessor[]withAbsents
- whether to put absent optional fields into Mappublic static Map<String,Object> getChoiceFieldsMap(AbstractFieldsObject object, FieldAccessor[] fieldAccessors)
object
- that whose fields are to be accessedfieldAccessors
- FieldAccessor[]