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>
public class ProjectScopeMapper extends RelationshipMapper<ProjectScope>
Mapping methods to map between the ProjectScope and the equivalent omrs Relationship.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROJECT_SCOPE-
Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
genericHandler, repositoryHelper
-
-
Constructor Summary
Constructors Constructor Description ProjectScopeMapper(OpenMetadataAPIGenericHandler genericHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectScopegetRelationshipInstance()StringgetTypeName()get type nameprotected booleanmapPrimitiveToRelationship(ProjectScope projectScope, String propertyName, Object value)Map a primitive omrs property to the antonym object.voidmapRelationshipToInstanceProperties(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 Detail
-
PROJECT_SCOPE
public static final String PROJECT_SCOPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProjectScopeMapper
public ProjectScopeMapper(OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Detail
-
getTypeName
public String getTypeName()
Description copied from class:RelationshipMapperget type name- Specified by:
getTypeNamein interfaceMapper<Relationship,ProjectScope>- Specified by:
getTypeNamein classRelationshipMapper<ProjectScope>- Returns:
- the omrs type name.
-
getRelationshipInstance
public ProjectScope getRelationshipInstance()
-
mapRelationshipToInstanceProperties
public void mapRelationshipToInstanceProperties(ProjectScope projectScope, InstanceProperties instanceProperties)
Map the supplied relationship to omrs InstanceProperties.- Overrides:
mapRelationshipToInstancePropertiesin 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:
mapPrimitiveToRelationshipin 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
-
-