Class TermMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper<Term>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.TermMapper
- All Implemented Interfaces:
INodeMapper<Term>
,Mapper<EntityDetail,
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Classification>
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 nameMap from a Subject Area OMAS Node to an OMRS EntityDetailmap
(EntityDetail entityDetail) Map (convert) EntityDetail to Term or a sub type of Termprotected void
mapNodeToInstanceProperties
(Term term, InstanceProperties instanceProperties) Map the supplied Node to omrs InstanceProperties.protected boolean
mapPrimitiveToNode
(Term term, String propertyName, Object value) Map a primitive omrs property to the term object.protected boolean
updateNodeWithClassification
(Term term, 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
-
-
Method Details
-
map
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
Description copied from interface:INodeMapper
Map from a Subject Area OMAS Node to an OMRS EntityDetail- Parameters:
node
- a Subject Area OMAS Node- Returns:
- an OMRS EntityDetail
- Throws:
InvalidParameterException
-
mapPrimitiveToNode
Map a primitive omrs property to the term object.- Overrides:
mapPrimitiveToNode
in classEntityDetailMapper<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
Map the supplied Node to omrs InstanceProperties.- Overrides:
mapNodeToInstanceProperties
in classEntityDetailMapper<Term>
- Parameters:
term
- supplied nodeinstanceProperties
- equivalent instance properties to the Node
-
updateNodeWithClassification
-
getInlinedClassifications
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:Mapper
Get the type name- Specified by:
getTypeName
in interfaceMapper<EntityDetail,
Term> - Specified by:
getTypeName
in classEntityDetailMapper<Term>
- Returns:
- type name
-