Class TermMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.TermMapper
- All Implemented Interfaces:
INodeMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>,Mapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail,org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
public class TermMapper
extends EntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>
Static mapping methods to map between the Term and the generated OMRSBean for GlossaryTerm.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
genericHandler, repositoryHelper -
Constructor Summary
ConstructorsConstructorDescriptionTermMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification>getInlinedClassifications(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term) A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)Get the type nameorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailmap(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term node) Map from a Subject Area OMAS Node to an OMRS EntityDetailorg.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Termmap(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) Map (convert) EntityDetail to Term or a sub type of Termprotected voidmapNodeToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties) Map the supplied Node to omrs InstanceProperties.protected booleanmapPrimitiveToNode(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, String propertyName, Object value) Map a primitive omrs property to the term object.protected booleanupdateNodeWithClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, mapMapToNode, populateAdditionalProperties, removePropertyByNameFromInstanceProperties, toEntityDetail
-
Field Details
-
GLOSSARY_TERM
- See Also:
-
-
Constructor Details
-
TermMapper
public TermMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Details
-
map
public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term map(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) Map (convert) EntityDetail to Term or a sub type of Term- Parameters:
entityDetail- the supplied EntityDetail- Returns:
- Term the equivalent Term to the supplied entityDetail.
-
map
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail map(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term node) throws org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException Description copied from interface:INodeMapperMap from a Subject Area OMAS Node to an OMRS EntityDetail- Parameters:
node- a Subject Area OMAS Node- Returns:
- an OMRS EntityDetail
- Throws:
org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException
-
mapPrimitiveToNode
protected boolean mapPrimitiveToNode(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, String propertyName, Object value) Map a primitive omrs property to the term object.- Overrides:
mapPrimitiveToNodein classEntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>- Parameters:
term- the term to be updatedpropertyName- the omrs property namevalue- the omrs primitive property value- Returns:
- true if the propertyName was recognised and mapped to the Node, otherwise false
-
mapNodeToInstanceProperties
protected void mapNodeToInstanceProperties(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties) Map the supplied Node to omrs InstanceProperties.- Overrides:
mapNodeToInstancePropertiesin classEntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>- Parameters:
term- supplied nodeinstanceProperties- equivalent instance properties to the Node
-
updateNodeWithClassification
protected boolean updateNodeWithClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term, org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) -
getInlinedClassifications
protected List<org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification> getInlinedClassifications(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term term) A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)- Parameters:
term- supplied term- Returns:
- inlined classifications.
-
getTypeName
Description copied from interface:MapperGet the type name- Specified by:
getTypeNamein interfaceMapper<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail,org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term> - Specified by:
getTypeNamein classEntityDetailMapper<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>- Returns:
- type name
-