public class ReplacementTermMapper extends LineMapper
| 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 Line |
getLineInstance() |
protected String |
getProxy1Guid(Line line)
Get proxy1 guid.
|
protected String |
getProxy2Guid(Line line)
Get proxy2 guid
The proxy has omrs type GlossaryTerm
|
protected String |
getRelationshipTypeDefGuid(Relationship relationship)
Get the relationship type def guid.
|
protected String |
getTypeName()
get type name
|
protected boolean |
mapEnumToLine(Line line,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area Line property.
|
protected void |
mapLineToInstanceProperties(Line line,
InstanceProperties properties)
Map the supplied Line to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToLine(Line line,
String propertyName,
Object value)
Map a primitive omrs property to the replacementTerm object.
|
protected void |
setEnd1GuidInLine(Line line,
String guid)
Pass the guid of the EntityProxy for end 1 to the Line ,so it can store it appropriately
|
protected void |
setEnd2GuidInLine(Line line,
String guid)
Pass the guid of the EntityProxy for end 2 to the Line ,so it can store it appropriately
|
mapInstancePropertiesToLine, mapLineToRelationship, mapMapToLine, mapRelationshipToLine, throwWrongTypeExceptionpublic static final String REPLACEMENT_TERM
public ReplacementTermMapper(OMRSAPIHelper omrsapiHelper)
protected void mapLineToInstanceProperties(Line line, InstanceProperties properties)
mapLineToInstanceProperties in class LineMapperline - supplied lineproperties - equivalent instance properties to the Lineprotected boolean mapPrimitiveToLine(Line line, String propertyName, Object value)
mapPrimitiveToLine in class LineMapperline - the glossary to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToLine(Line line, String propertyName, EnumPropertyValue enumPropertyValue)
LineMappermapEnumToLine in class LineMapperline - the line to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valueprotected String getProxy1Guid(Line line)
getProxy1Guid in class LineMapperline - lineprotected String getProxy2Guid(Line line)
getProxy2Guid in class LineMapperline - for this Lineprotected String getRelationshipTypeDefGuid(Relationship relationship)
getRelationshipTypeDefGuid in class LineMapperrelationship - the relationship associated with the typedef whose guid is returned.protected String getTypeName()
LineMapperprotected Line getLineInstance()
protected void setEnd1GuidInLine(Line line, String guid)
LineMappersetEnd1GuidInLine in class LineMapperline - line to updateguid - guid to add into the Lineprotected void setEnd2GuidInLine(Line line, String guid)
LineMappersetEnd2GuidInLine in class LineMapperline - line to updateguid - guid to add into the LineCopyright © 2018–2019 ODPi. All rights reserved.