Class GlossaryMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper<Glossary>
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.GlossaryMapper
- All Implemented Interfaces:
INodeMapper<Glossary>
,Mapper<EntityDetail,
Glossary>
Mapping methods to map between Glossary (or a subtype of Glossary) and EntityDetail.
These mapping methods map classifications and attributes that directly map to OMRS.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
genericHandler, repositoryHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<Classification>
Get the type nameMap from a Subject Area OMAS Node to an OMRS EntityDetailmap
(EntityDetail entityDetail) Map EntityDetail to Glossary or a sub type of Glossaryprotected void
mapNodeToInstanceProperties
(Glossary node, InstanceProperties instanceProperties) Map the supplied Node to omrs InstanceProperties.protected boolean
mapPrimitiveToNode
(Glossary glossary, String propertyName, Object value) Map a primitive omrs property to the glossary object.protected boolean
updateNodeWithClassification
(Glossary glossary, Classification omasClassification) Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.entities.EntityDetailMapper
getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, mapMapToNode, populateAdditionalProperties, removePropertyByNameFromInstanceProperties, toEntityDetail
-
Constructor Details
-
GlossaryMapper
-
-
Method Details
-
map
Map EntityDetail to Glossary or a sub type of Glossary- Parameters:
entityDetail
- the supplied EntityDetail- Returns:
- Glossary the equivalent Glossary 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
-
getInlinedClassifications
-
mapPrimitiveToNode
Map a primitive omrs property to the glossary object.- Overrides:
mapPrimitiveToNode
in classEntityDetailMapper<Glossary>
- Parameters:
glossary
- the glossary 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<Glossary>
- Parameters:
node
- supplied nodeinstanceProperties
- equivalent instance properties to the Node
-
updateNodeWithClassification
protected boolean updateNodeWithClassification(Glossary glossary, Classification omasClassification) -
getTypeName
Description copied from interface:Mapper
Get the type name- Specified by:
getTypeName
in interfaceMapper<EntityDetail,
Glossary> - Specified by:
getTypeName
in classEntityDetailMapper<Glossary>
- Returns:
- type name
-