public class TermCategorizationMapper extends RelationshipMapper<Categorization>
| Modifier and Type | Field and Description |
|---|---|
static String |
TERM_CATEGORIZATION |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
TermCategorizationMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected Categorization |
getRelationshipInstance() |
String |
getTypeName()
get type name
|
protected boolean |
mapEnumToRelationship(Categorization termCategorization,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area relationship property.
|
protected boolean |
mapPrimitiveToRelationship(Categorization termCategorization,
String propertyName,
Object value)
Map a primitive omrs property to the termCategorization object.
|
protected void |
mapRelationshipToInstanceProperties(Categorization termCategorization,
InstanceProperties instanceProperties)
Map the supplied relationship to omrs InstanceProperties.
|
getTypeDefGuid, map, map, mapInstancePropertiesToRelationship, mapMapToRelationshippublic static final String TERM_CATEGORIZATION
public TermCategorizationMapper(OMRSAPIHelper omrsapiHelper)
protected void mapRelationshipToInstanceProperties(Categorization termCategorization, InstanceProperties instanceProperties)
mapRelationshipToInstanceProperties in class RelationshipMapper<Categorization>termCategorization - supplied relationshipinstanceProperties - equivalent instance properties to the relationshipprotected boolean mapPrimitiveToRelationship(Categorization termCategorization, String propertyName, Object value)
mapPrimitiveToRelationship in class RelationshipMapper<Categorization>termCategorization - the omas relationship to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToRelationship(Categorization termCategorization, String propertyName, EnumPropertyValue enumPropertyValue)
RelationshipMappermapEnumToRelationship in class RelationshipMapper<Categorization>termCategorization - the relationship to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valuepublic String getTypeName()
RelationshipMappergetTypeName in interface Mapper<Relationship,Categorization>getTypeName in class RelationshipMapper<Categorization>protected Categorization getRelationshipInstance()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.