public class UsedInContextMapper extends LineMapper<UsedInContext>
| Modifier and Type | Field and Description |
|---|---|
static String |
USED_IN_CONTEXT |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
UsedInContextMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected UsedInContext |
getLineInstance() |
String |
getTypeName()
get type name
|
protected boolean |
mapEnumToLine(UsedInContext usedInContext,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area Line property.
|
protected void |
mapLineToInstanceProperties(UsedInContext usedInContext,
InstanceProperties instanceProperties)
Map the supplied Line to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToLine(UsedInContext usedInContext,
String propertyName,
Object value)
Map a primitive omrs property to the usedInContext object.
|
getTypeDefGuid, map, map, mapInstancePropertiesToLine, mapMapToLinepublic static final String USED_IN_CONTEXT
public UsedInContextMapper(OMRSAPIHelper omrsapiHelper)
protected void mapLineToInstanceProperties(UsedInContext usedInContext, InstanceProperties instanceProperties)
mapLineToInstanceProperties in class LineMapper<UsedInContext>usedInContext - supplied lineinstanceProperties - equivalent instance properties to the Lineprotected boolean mapPrimitiveToLine(UsedInContext usedInContext, String propertyName, Object value)
mapPrimitiveToLine in class LineMapper<UsedInContext>usedInContext - the glossary to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToLine(UsedInContext usedInContext, String propertyName, EnumPropertyValue enumPropertyValue)
LineMappermapEnumToLine in class LineMapper<UsedInContext>usedInContext - the line to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valuepublic String getTypeName()
LineMappergetTypeName in interface Mapper<Relationship,UsedInContext>getTypeName in class LineMapper<UsedInContext>protected UsedInContext getLineInstance()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.