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>
Mapping methods to map between the translation and the equivalent omrs Relationship.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
genericHandler, repositoryHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Translation
get type nameprotected 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.Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
getTypeDefGuid, map, map, mapEnumToRelationship, mapInstancePropertiesToRelationship, mapMapToRelationship
-
Field Details
-
TRANSLATION
- See Also:
-
-
Constructor Details
-
TranslationMapper
-
-
Method Details
-
mapRelationshipToInstanceProperties
protected void mapRelationshipToInstanceProperties(Translation translation, InstanceProperties instanceProperties) Map the supplied relationship to omrs InstanceProperties.- Overrides:
mapRelationshipToInstanceProperties
in 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:
mapPrimitiveToRelationship
in 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
Description copied from class:RelationshipMapper
get type name- Specified by:
getTypeName
in interfaceMapper<Relationship,
Translation> - Specified by:
getTypeName
in classRelationshipMapper<Translation>
- Returns:
- the omrs type name.
-
getRelationshipInstance
-