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