Class TranslationMapper
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<Translation>
-
- org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.TranslationMapper
-
- All Implemented Interfaces:
IRelationshipMapper<Translation>,Mapper<Relationship,Translation>
public class TranslationMapper extends RelationshipMapper<Translation>
Mapping methods to map between the translation and the equivalent omrs Relationship.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTRANSLATION-
Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
genericHandler, repositoryHelper
-
-
Constructor Summary
Constructors Constructor Description TranslationMapper(OpenMetadataAPIGenericHandler genericHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TranslationgetRelationshipInstance()StringgetTypeName()get type nameprotected booleanmapPrimitiveToRelationship(Translation translation, String propertyName, Object value)Map a primitive omrs property to the translation object.protected voidmapRelationshipToInstanceProperties(Translation translation, InstanceProperties instanceProperties)Map the supplied relationship to omrs InstanceProperties.-
Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
getTypeDefGuid, map, map, mapEnumToRelationship, mapInstancePropertiesToRelationship, mapMapToRelationship
-
-
-
-
Field Detail
-
TRANSLATION
public static final String TRANSLATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TranslationMapper
public TranslationMapper(OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Detail
-
mapRelationshipToInstanceProperties
protected void mapRelationshipToInstanceProperties(Translation translation, InstanceProperties instanceProperties)
Map the supplied relationship to omrs InstanceProperties.- Overrides:
mapRelationshipToInstancePropertiesin classRelationshipMapper<Translation>- Parameters:
translation- supplied relationshipinstanceProperties- equivalent instance properties to the relationship
-
mapPrimitiveToRelationship
protected boolean mapPrimitiveToRelationship(Translation translation, String propertyName, Object value)
Map a primitive omrs property to the translation object.- Overrides:
mapPrimitiveToRelationshipin classRelationshipMapper<Translation>- Parameters:
translation- the omas relationship to be updatedpropertyName- the omrs property namevalue- the omrs primitive property value- Returns:
- true if the propertyName was recognised and mapped to the relationship, otherwise false
-
getTypeName
public String getTypeName()
Description copied from class:RelationshipMapperget type name- Specified by:
getTypeNamein interfaceMapper<Relationship,Translation>- Specified by:
getTypeNamein classRelationshipMapper<Translation>- Returns:
- the omrs type name.
-
getRelationshipInstance
protected Translation getRelationshipInstance()
-
-