public class ReplacementTermMapper extends LineMapper<ReplacementTerm>
| Modifier and Type | Field and Description |
|---|---|
static String |
REPLACEMENT_TERM |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
ReplacementTermMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected ReplacementTerm |
getLineInstance() |
protected String |
getProxy1Guid(ReplacementTerm replacementTerm)
Get proxy1 guid.
|
protected String |
getProxy2Guid(ReplacementTerm replacementTerm)
Get proxy2 guid
The proxy has omrs type GlossaryTerm
|
String |
getTypeName()
get type name
|
protected boolean |
mapEnumToLine(ReplacementTerm replacementTerm,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area Line property.
|
protected void |
mapLineToInstanceProperties(ReplacementTerm replacementTerm,
InstanceProperties properties)
Map the supplied Line to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToLine(ReplacementTerm replacementTerm,
String propertyName,
Object value)
Map a primitive omrs property to the replacementTerm object.
|
protected void |
setEnd1GuidInLine(ReplacementTerm replacementTerm,
String guid)
Pass the guid of the EntityProxy for end 1 to the Line ,so it can store it appropriately
|
protected void |
setEnd2GuidInLine(ReplacementTerm replacementTerm,
String guid)
Pass the guid of the EntityProxy for end 2 to the Line ,so it can store it appropriately
|
getTypeDefGuid, map, map, mapInstancePropertiesToLine, mapMapToLinepublic static final String REPLACEMENT_TERM
public ReplacementTermMapper(OMRSAPIHelper omrsapiHelper)
protected void mapLineToInstanceProperties(ReplacementTerm replacementTerm, InstanceProperties properties)
mapLineToInstanceProperties in class LineMapper<ReplacementTerm>replacementTerm - supplied lineproperties - equivalent instance properties to the Lineprotected boolean mapPrimitiveToLine(ReplacementTerm replacementTerm, String propertyName, Object value)
mapPrimitiveToLine in class LineMapper<ReplacementTerm>replacementTerm - the glossary to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToLine(ReplacementTerm replacementTerm, String propertyName, EnumPropertyValue enumPropertyValue)
LineMappermapEnumToLine in class LineMapper<ReplacementTerm>replacementTerm - the line to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valueprotected String getProxy1Guid(ReplacementTerm replacementTerm)
getProxy1Guid in class LineMapper<ReplacementTerm>replacementTerm - lineprotected String getProxy2Guid(ReplacementTerm replacementTerm)
getProxy2Guid in class LineMapper<ReplacementTerm>replacementTerm - for this Linepublic String getTypeName()
LineMappergetTypeName in interface Mapper<Relationship,ReplacementTerm>getTypeName in class LineMapper<ReplacementTerm>protected ReplacementTerm getLineInstance()
protected void setEnd1GuidInLine(ReplacementTerm replacementTerm, String guid)
LineMappersetEnd1GuidInLine in class LineMapper<ReplacementTerm>replacementTerm - line to updateguid - guid to add into the Lineprotected void setEnd2GuidInLine(ReplacementTerm replacementTerm, String guid)
LineMappersetEnd2GuidInLine in class LineMapper<ReplacementTerm>replacementTerm - line to updateguid - guid to add into the LineCopyright © 2018–2020 ODPi. All rights reserved.