public class PersonTypeConverter extends AbstractRegistryObjectTypeConverter<PersonType>
mapToSchemaElement
Constructor and Description |
---|
PersonTypeConverter() |
PersonTypeConverter(MapToSchemaElement<PersonType> mapToSchemaElement) |
Modifier and Type | Method and Description |
---|---|
Optional<PersonType> |
convert(Map<String,Object> map)
This method creates an PersonType from the values in the provided map.
|
public PersonTypeConverter(MapToSchemaElement<PersonType> mapToSchemaElement)
public PersonTypeConverter()
public Optional<PersonType> convert(Map<String,Object> map)
PERSON_NAME_KEY = "PersonName" ADDRESS_KEY = "Address"; EMAIL_ADDRESS_KEY = "EmailAddress"; TELEPHONE_KEY = "TelephoneNumber";
This will also try to populate the RegistryObjectType values also looked for in the map.
Uses: PostalAddressTypeConverter EmailAddressTypeConverter TelephoneNumberTypeConverter PersonNameTypeConverter
convert
in class AbstractRegistryObjectTypeConverter<PersonType>
map
- the Map representation of the PersonType to generate, null returns empty OptionalThis work is licensed under a Creative Commons Attribution 4.0 International License.