Class UsedInContextMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.UsedInContextMapper
- All Implemented Interfaces:
IRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>,Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>
public class UsedInContextMapper
extends RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>
Mapping methods to map between the usedInContext and the equivalent omrs Relationship.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
genericHandler, repositoryHelper -
Constructor Summary
ConstructorsConstructorDescriptionUsedInContextMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContextget type nameprotected booleanmapEnumToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext usedInContext, String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EnumPropertyValue enumPropertyValue) Map an omrs enum property to a Subject Area relationship property.protected booleanmapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext usedInContext, String propertyName, Object value) Map a primitive omrs property to the usedInContext object.protected voidmapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext usedInContext, 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, mapInstancePropertiesToRelationship, mapMapToRelationship
-
Field Details
-
USED_IN_CONTEXT
- See Also:
-
-
Constructor Details
-
UsedInContextMapper
public UsedInContextMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Details
-
mapRelationshipToInstanceProperties
protected void mapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext usedInContext, 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.UsedInContext>- Parameters:
usedInContext- supplied relationshipinstanceProperties- equivalent instance properties to the relationship
-
mapPrimitiveToRelationship
protected boolean mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext usedInContext, String propertyName, Object value) Map a primitive omrs property to the usedInContext object.- Overrides:
mapPrimitiveToRelationshipin classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>- Parameters:
usedInContext- 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(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext usedInContext, String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EnumPropertyValue enumPropertyValue) Description copied from class:RelationshipMapperMap 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:
mapEnumToRelationshipin classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>- Parameters:
usedInContext- 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:RelationshipMapperget type name- Specified by:
getTypeNamein interfaceMapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext> - Specified by:
getTypeNamein classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext>- Returns:
- the omrs type name.
-
getRelationshipInstance
protected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.UsedInContext getRelationshipInstance()
-