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