public class CategoryMapper extends EntityDetailMapper<Category>
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOSSARY_CATEGORY |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
CategoryMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and 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)
|
String |
getTypeName()
Get the type name
|
EntityDetail |
map(Category node)
Map from a Subject Area OMAS Node to an OMRS EntityDetail
|
Category |
map(EntityDetail entityDetail)
Map EntityDetail to Category or a sub type of Category
|
protected void |
mapNodeToInstanceProperties(Category node,
InstanceProperties instanceProperties)
Map the supplied Node to omrs InstanceProperties.
|
protected boolean |
updateNodeWithClassification(Category category,
Classification omasClassification)
Update Node with classification
This method should be overridden by types of node if they want to use the Classification as an in lined property
|
getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, mapPrimitiveToNode, populateAdditionalProperties, toEntityDetailpublic static final String GLOSSARY_CATEGORY
public CategoryMapper(OMRSAPIHelper omrsapiHelper)
public Category map(EntityDetail entityDetail)
entityDetail - the supplied EntityDetailpublic EntityDetail map(Category node)
INodeMappernode - a Subject Area OMAS Nodeprotected void mapNodeToInstanceProperties(Category node, InstanceProperties instanceProperties)
mapNodeToInstanceProperties in class EntityDetailMapper<Category>node - supplied nodeinstanceProperties - equivalent instance properties to the Nodeprotected boolean updateNodeWithClassification(Category category, Classification omasClassification)
EntityDetailMappercategory - node to updateomasClassification - classificationprotected List<Classification> getInlinedClassifications(Category node)
node - supplied termpublic String getTypeName()
MappergetTypeName in interface Mapper<EntityDetail,Category>getTypeName in class EntityDetailMapper<Category>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.