Class TranslationMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.TranslationMapper
- All Implemented Interfaces:
IRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation>,Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation>
public class TranslationMapper
extends RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.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
ConstructorsConstructorDescriptionTranslationMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translationget type nameprotected booleanmapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation translation, String propertyName, Object value) Map a primitive omrs property to the translation object.protected voidmapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation translation, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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
public TranslationMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Details
-
mapRelationshipToInstanceProperties
protected void mapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation translation, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties) Map the supplied relationship to omrs InstanceProperties.- Overrides:
mapRelationshipToInstancePropertiesin classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation>- Parameters:
translation- supplied relationshipinstanceProperties- equivalent instance properties to the relationship
-
mapPrimitiveToRelationship
protected boolean mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation translation, String propertyName, Object value) Map a primitive omrs property to the translation object.- Overrides:
mapPrimitiveToRelationshipin classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.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:RelationshipMapperget type name- Specified by:
getTypeNamein interfaceMapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation> - Specified by:
getTypeNamein classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation>- Returns:
- the omrs type name.
-
getRelationshipInstance
protected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.Translation getRelationshipInstance()
-