Class TermTypedByRelationshipMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.TermTypedByRelationshipMapper
- All Implemented Interfaces:
IRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy>,Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship,org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy>
public class TermTypedByRelationshipMapper
extends RelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy>
Mapping methods to map between the termTYPEDBYRelationship and the equivalent omrs Relationship.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.RelationshipMapper
genericHandler, repositoryHelper -
Constructor Summary
ConstructorsConstructorDescriptionTermTypedByRelationshipMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedByget type nameprotected booleanmapEnumToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy termTYPEDBYRelationship, 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.TypedBy termTYPEDBYRelationship, String propertyName, Object value) Map a primitive omrs property to the termTYPEDBYRelationship object.protected voidmapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy termTYPEDBYRelationship, 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
-
TERM_TYPED_BY_RELATIONSHIP
- See Also:
-
-
Constructor Details
-
TermTypedByRelationshipMapper
public TermTypedByRelationshipMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Details
-
mapRelationshipToInstanceProperties
protected void mapRelationshipToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy termTYPEDBYRelationship, 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.TypedBy>- Parameters:
termTYPEDBYRelationship- supplied relationshipinstanceProperties- equivalent instance properties to the relationship
-
mapPrimitiveToRelationship
protected boolean mapPrimitiveToRelationship(org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy termTYPEDBYRelationship, String propertyName, Object value) Map a primitive omrs property to the termTYPEDBYRelationship object.- Overrides:
mapPrimitiveToRelationshipin classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy>- Parameters:
termTYPEDBYRelationship- 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.TypedBy termTYPEDBYRelationship, 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.TypedBy>- Parameters:
termTYPEDBYRelationship- 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.TypedBy> - Specified by:
getTypeNamein classRelationshipMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy>- Returns:
- the omrs type name.
-
getRelationshipInstance
protected org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TypedBy getRelationshipInstance()
-