public class TermHasARelationshipMapper extends LineMapper<HasA>
| Modifier and Type | Field and Description |
|---|---|
static String |
TERM_HASA_RELATIONSHIP |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
TermHasARelationshipMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected HasA |
getLineInstance() |
String |
getTypeName()
get type name
|
protected boolean |
mapEnumToLine(HasA termHasARelationship,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area Line property.
|
protected void |
mapLineToInstanceProperties(HasA termHasARelationship,
InstanceProperties instanceProperties)
Map the supplied Line to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToLine(HasA termHasARelationship,
String propertyName,
Object value)
Map a primitive omrs property to the termHASARelationship object.
|
getTypeDefGuid, map, map, mapInstancePropertiesToLine, mapMapToLinepublic static final String TERM_HASA_RELATIONSHIP
public TermHasARelationshipMapper(OMRSAPIHelper omrsapiHelper)
protected void mapLineToInstanceProperties(HasA termHasARelationship, InstanceProperties instanceProperties)
mapLineToInstanceProperties in class LineMapper<HasA>termHasARelationship - supplied lineinstanceProperties - equivalent instance properties to the Lineprotected boolean mapPrimitiveToLine(HasA termHasARelationship, String propertyName, Object value)
mapPrimitiveToLine in class LineMapper<HasA>termHasARelationship - the glossary to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToLine(HasA termHasARelationship, String propertyName, EnumPropertyValue enumPropertyValue)
LineMappermapEnumToLine in class LineMapper<HasA>termHasARelationship - the line to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valuepublic String getTypeName()
LineMappergetTypeName in interface Mapper<Relationship,HasA>getTypeName in class LineMapper<HasA>protected HasA getLineInstance()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.