public class SynonymMapper extends RelationshipMapper<Synonym>
| Modifier and Type | Field and Description |
|---|---|
static String |
SYNONYM |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
SynonymMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected Synonym |
getRelationshipInstance() |
String |
getTypeName()
get type name
|
protected boolean |
mapEnumToRelationship(Synonym synonym,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area relationship property.
|
protected boolean |
mapPrimitiveToRelationship(Synonym synonym,
String propertyName,
Object value)
Map a primitive omrs property to the synonym object.
|
protected void |
mapRelationshipToInstanceProperties(Synonym synonym,
InstanceProperties instanceProperties)
Map the supplied relationship to omrs InstanceProperties.
|
getTypeDefGuid, map, map, mapInstancePropertiesToRelationship, mapMapToRelationshippublic static final String SYNONYM
public SynonymMapper(OMRSAPIHelper omrsapiHelper)
protected void mapRelationshipToInstanceProperties(Synonym synonym, InstanceProperties instanceProperties)
mapRelationshipToInstanceProperties in class RelationshipMapper<Synonym>synonym - supplied relationshipinstanceProperties - equivalent instance properties to the relationshipprotected boolean mapPrimitiveToRelationship(Synonym synonym, String propertyName, Object value)
mapPrimitiveToRelationship in class RelationshipMapper<Synonym>synonym - the omas relationship to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToRelationship(Synonym synonym, String propertyName, EnumPropertyValue enumPropertyValue)
RelationshipMappermapEnumToRelationship in class RelationshipMapper<Synonym>synonym - the relationship to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valuepublic String getTypeName()
RelationshipMappergetTypeName in interface Mapper<Relationship,Synonym>getTypeName in class RelationshipMapper<Synonym>protected Synonym getRelationshipInstance()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.