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