Class CategoryMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper<Category>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.CategoryMapper
- All Implemented Interfaces:
INodeMapper<Category>
,Mapper<EntityDetail,
Category>
Mapping methods to map between Category (or a subtype of Category) and EntityDetail.
These mapping methods map classifications and attributes that directly map to OMRS.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
genericHandler, repositoryHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Classification>
A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)Get the type nameMap from a Subject Area OMAS Node to an OMRS EntityDetailmap
(EntityDetail entityDetail) Map EntityDetail to Category or a sub type of Categoryprotected void
mapNodeToInstanceProperties
(Category node, InstanceProperties instanceProperties) Map the supplied Node to omrs InstanceProperties.protected boolean
updateNodeWithClassification
(Category category, Classification omasClassification) Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, mapMapToNode, mapPrimitiveToNode, populateAdditionalProperties, removePropertyByNameFromInstanceProperties, toEntityDetail
-
Field Details
-
GLOSSARY_CATEGORY
- See Also:
-
-
Constructor Details
-
CategoryMapper
-
-
Method Details
-
map
Map EntityDetail to Category or a sub type of Category- Parameters:
entityDetail
- the supplied EntityDetail- Returns:
- Category the equivalent Category to the supplied entityDetail.
-
map
Description copied from interface:INodeMapper
Map from a Subject Area OMAS Node to an OMRS EntityDetail- Parameters:
node
- a Subject Area OMAS Node- Returns:
- an OMRS EntityDetail
- Throws:
InvalidParameterException
-
mapNodeToInstanceProperties
Map the supplied Node to omrs InstanceProperties.- Overrides:
mapNodeToInstanceProperties
in classEntityDetailMapper<Category>
- Parameters:
node
- supplied nodeinstanceProperties
- equivalent instance properties to the Node
-
updateNodeWithClassification
protected boolean updateNodeWithClassification(Category category, Classification omasClassification) -
getInlinedClassifications
A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)- Parameters:
node
- supplied term- Returns:
- inlined classifications.
-
getTypeName
Description copied from interface:Mapper
Get the type name- Specified by:
getTypeName
in interfaceMapper<EntityDetail,
Category> - Specified by:
getTypeName
in classEntityDetailMapper<Category>
- Returns:
- type name
-