public class ClassificationTypeConverter extends AbstractRegistryObjectTypeConverter<ClassificationType>
mapToSchemaElement
Constructor and Description |
---|
ClassificationTypeConverter() |
ClassificationTypeConverter(MapToSchemaElement<ClassificationType> mapToSchemaElement) |
Modifier and Type | Method and Description |
---|---|
Optional<ClassificationType> |
convert(Map<String,Object> map)
This method creates an ClassificationType from the values in the provided map.
|
public ClassificationTypeConverter(MapToSchemaElement<ClassificationType> mapToSchemaElement)
public ClassificationTypeConverter()
public Optional<ClassificationType> convert(Map<String,Object> map)
CLASSIFICATION_NODE = "classificationNode"; CLASSIFIED_OBJECT = "classifiedObject"; CLASSIFICATION_SCHEME = "classificationScheme"; NODE_REPRESENTATION = "nodeRepresentation";
This will also try to populate the RegistryObjectType values also looked for in the map.
convert
in class AbstractRegistryObjectTypeConverter<ClassificationType>
map
- the Map representation of the ClassificationType to generate, null returns empty
OptionalThis work is licensed under a Creative Commons Attribution 4.0 International License.