public abstract class AbstractRegistryObjectTypeConverter<T extends RegistryObjectType> extends Object
Modifier and Type | Field and Description |
---|---|
protected MapToSchemaElement<T> |
mapToSchemaElement |
Constructor and Description |
---|
AbstractRegistryObjectTypeConverter(MapToSchemaElement<T> mapToSchemaElement) |
Modifier and Type | Method and Description |
---|---|
Optional<T> |
convert(Map<String,Object> map)
This method creates a RegistryObjectType from the values in the provided map.
|
protected MapToSchemaElement<T extends RegistryObjectType> mapToSchemaElement
public AbstractRegistryObjectTypeConverter(MapToSchemaElement<T> mapToSchemaElement)
public Optional<T> convert(Map<String,Object> map)
CLASSIFICATION_KEY = "Classification"; EXTERNAL_IDENTIFIER_KEY = "ExternalIdentifier"; NAME_KEY = "Name"; DESCRIPTION_KEY = "Description"; VERSION_INFO_KEY = "VersionInfo"; SLOT = "Slot"; ID_KEY = "id"; HOME_KEY = "home"; LID_KEY = "Lid"; STATUS_KEY = "Status"; OBJECT_TYPE_KEY = "objectType";
Uses: ClassificationTypeConverter ExternalIdentifierTypeConverter SlotTypeConverter InternationalStringTypeHelper
map
- the Map representation of the RegistryObjectType to generate, null returns empty
OptionalThis work is licensed under a Creative Commons Attribution 4.0 International License.