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