public class OrganizationTypeConverter extends AbstractRegistryObjectTypeConverter<OrganizationType>
mapToSchemaElement
Constructor and Description |
---|
OrganizationTypeConverter() |
OrganizationTypeConverter(MapToSchemaElement<OrganizationType> mapToSchemaElement) |
Modifier and Type | Method and Description |
---|---|
Optional<OrganizationType> |
convert(Map<String,Object> map)
This method creates an OrganizationType from the values in the provided map.
|
public OrganizationTypeConverter(MapToSchemaElement<OrganizationType> mapToSchemaElement)
public OrganizationTypeConverter()
public Optional<OrganizationType> convert(Map<String,Object> map)
PARENT = "parent"; PRIMARY_CONTACT = "primaryContact"; 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
convert
in class AbstractRegistryObjectTypeConverter<OrganizationType>
map
- the Map representation of the OrganizationType to generate, null returns empty
OptionalThis work is licensed under a Creative Commons Attribution 4.0 International License.