public class PersonWebConverter extends RegistryObjectWebConverter
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_KEY |
static String |
EMAIL_ADDRESS_KEY |
static String |
PERSON_NAME_KEY |
static String |
TELEPHONE_KEY |
CLASSIFICATION_KEY, DESCRIPTION_KEY, EXTERNAL_IDENTIFIER_KEY, HOME_KEY, ID_KEY, INTERNATIONAL_STRING_TYPE_HELPER, LID_KEY, NAME_KEY, OBJECT_TYPE_KEY, SLOT, STATUS_KEY, VERSION_INFO_KEY
Constructor and Description |
---|
PersonWebConverter() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
convert(PersonType person)
This method creates a Map
|
convertRegistryObject
public static final String ADDRESS_KEY
public static final String EMAIL_ADDRESS_KEY
public static final String PERSON_NAME_KEY
public static final String TELEPHONE_KEY
public Map<String,Object> convert(PersonType person)
PERSON_NAME_KEY = "PersonName" ADDRESS_KEY = "Address"; EMAIL_ADDRESS_KEY = "EmailAddress"; TELEPHONE_KEY = "TelephoneNumber";
This will also try to parse RegistryObjectType values to the map.
Uses: PostalAddressWebConverter EmailAddressWebConverter TelephoneNumberWebConverter PersonNameWebConverter
person
- the PersonType to be converted into a map, null returns empty MapThis work is licensed under a Creative Commons Attribution 4.0 International License.