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>
public class CategoryMapper extends EntityDetailMapper<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
Fields Modifier and Type Field Description static StringGLOSSARY_CATEGORY-
Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
genericHandler, repositoryHelper
-
-
Constructor Summary
Constructors Constructor Description CategoryMapper(OpenMetadataAPIGenericHandler genericHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Classification>getInlinedClassifications(Category node)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)StringgetTypeName()Get the type nameEntityDetailmap(Category node)Map from a Subject Area OMAS Node to an OMRS EntityDetailCategorymap(EntityDetail entityDetail)Map EntityDetail to Category or a sub type of Categoryprotected voidmapNodeToInstanceProperties(Category node, InstanceProperties instanceProperties)Map the supplied Node to omrs InstanceProperties.protected booleanupdateNodeWithClassification(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 Detail
-
GLOSSARY_CATEGORY
public static final String GLOSSARY_CATEGORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CategoryMapper
public CategoryMapper(OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Detail
-
map
public Category map(EntityDetail entityDetail)
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
public EntityDetail map(Category node) throws InvalidParameterException
Description copied from interface:INodeMapperMap from a Subject Area OMAS Node to an OMRS EntityDetail- Parameters:
node- a Subject Area OMAS Node- Returns:
- an OMRS EntityDetail
- Throws:
InvalidParameterException
-
mapNodeToInstanceProperties
protected void mapNodeToInstanceProperties(Category node, InstanceProperties instanceProperties)
Map the supplied Node to omrs InstanceProperties.- Overrides:
mapNodeToInstancePropertiesin classEntityDetailMapper<Category>- Parameters:
node- supplied nodeinstanceProperties- equivalent instance properties to the Node
-
updateNodeWithClassification
protected boolean updateNodeWithClassification(Category category, Classification omasClassification)
-
getInlinedClassifications
protected List<Classification> getInlinedClassifications(Category node)
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
public String getTypeName()
Description copied from interface:MapperGet the type name- Specified by:
getTypeNamein interfaceMapper<EntityDetail,Category>- Specified by:
getTypeNamein classEntityDetailMapper<Category>- Returns:
- type name
-
-