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