Class ProjectScopeMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<ProjectScope>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.ProjectScopeMapper
- All Implemented Interfaces:
IRelationshipMapper<ProjectScope>
,Mapper<Relationship,
ProjectScope>
Mapping methods to map between the ProjectScope 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 TypeMethodDescriptionget type nameprotected boolean
mapPrimitiveToRelationship
(ProjectScope projectScope, String propertyName, Object value) Map a primitive omrs property to the antonym object.void
mapRelationshipToInstanceProperties
(ProjectScope projectScope, 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
-
PROJECT_SCOPE
- See Also:
-
-
Constructor Details
-
ProjectScopeMapper
-
-
Method Details
-
getTypeName
Description copied from class:RelationshipMapper
get type name- Specified by:
getTypeName
in interfaceMapper<Relationship,
ProjectScope> - Specified by:
getTypeName
in classRelationshipMapper<ProjectScope>
- Returns:
- the omrs type name.
-
getRelationshipInstance
-
mapRelationshipToInstanceProperties
public void mapRelationshipToInstanceProperties(ProjectScope projectScope, InstanceProperties instanceProperties) Map the supplied relationship to omrs InstanceProperties.- Overrides:
mapRelationshipToInstanceProperties
in classRelationshipMapper<ProjectScope>
- Parameters:
projectScope
- supplied relationshipinstanceProperties
- equivalent instance properties to the relationship
-
mapPrimitiveToRelationship
protected boolean mapPrimitiveToRelationship(ProjectScope projectScope, String propertyName, Object value) Map a primitive omrs property to the antonym object.- Overrides:
mapPrimitiveToRelationship
in classRelationshipMapper<ProjectScope>
- Parameters:
projectScope
- the ProjectScope 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
-