Class SynonymMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<Synonym>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.SynonymMapper
- All Implemented Interfaces:
IRelationshipMapper<Synonym>
,Mapper<Relationship,
Synonym>
Mapping methods to map between the synonym 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 Synonym
get type nameprotected 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.Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
getTypeDefGuid, map, map, mapInstancePropertiesToRelationship, mapMapToRelationship
-
Field Details
-
SYNONYM
- See Also:
-
-
Constructor Details
-
SynonymMapper
-
-
Method Details
-
mapRelationshipToInstanceProperties
protected void mapRelationshipToInstanceProperties(Synonym synonym, InstanceProperties instanceProperties) Map the supplied relationship to omrs InstanceProperties.- Overrides:
mapRelationshipToInstanceProperties
in classRelationshipMapper<Synonym>
- Parameters:
synonym
- supplied relationshipinstanceProperties
- equivalent instance properties to the relationship
-
mapPrimitiveToRelationship
Map a primitive omrs property to the synonym object.- Overrides:
mapPrimitiveToRelationship
in classRelationshipMapper<Synonym>
- Parameters:
synonym
- 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
-
mapEnumToRelationship
protected boolean mapEnumToRelationship(Synonym synonym, String propertyName, EnumPropertyValue enumPropertyValue) Description copied from class:RelationshipMapper
Map an omrs enum property to a Subject Area relationship property. The child class is expected to override this method if the type has enum properties- Overrides:
mapEnumToRelationship
in classRelationshipMapper<Synonym>
- Parameters:
synonym
- the relationship to be updatedpropertyName
- the omrs property nameenumPropertyValue
- the omrs enum property value- Returns:
- true if it was a property we were expecting , otherwise false;
-
getTypeName
Description copied from class:RelationshipMapper
get type name- Specified by:
getTypeName
in interfaceMapper<Relationship,
Synonym> - Specified by:
getTypeName
in classRelationshipMapper<Synonym>
- Returns:
- the omrs type name.
-
getRelationshipInstance
-