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