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