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>
public class GlossaryMapper extends EntityDetailMapper<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
Constructors Constructor Description GlossaryMapper(OpenMetadataAPIGenericHandler genericHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Classification>getInlinedClassifications(Glossary node)StringgetTypeName()Get the type nameEntityDetailmap(Glossary node)Map from a Subject Area OMAS Node to an OMRS EntityDetailGlossarymap(EntityDetail entityDetail)Map EntityDetail to Glossary or a sub type of Glossaryprotected voidmapNodeToInstanceProperties(Glossary node, InstanceProperties instanceProperties)Map the supplied Node to omrs InstanceProperties.protected booleanmapPrimitiveToNode(Glossary glossary, String propertyName, Object value)Map a primitive omrs property to the glossary object.protected booleanupdateNodeWithClassification(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 Detail
-
GlossaryMapper
public GlossaryMapper(OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Detail
-
map
public Glossary map(EntityDetail entityDetail)
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
public EntityDetail map(Glossary node) throws 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:
InvalidParameterException
-
getInlinedClassifications
protected List<Classification> getInlinedClassifications(Glossary node)
-
mapPrimitiveToNode
protected boolean mapPrimitiveToNode(Glossary glossary, String propertyName, Object value)
Map a primitive omrs property to the glossary object.- Overrides:
mapPrimitiveToNodein 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
protected void mapNodeToInstanceProperties(Glossary node, InstanceProperties instanceProperties)
Map the supplied Node to omrs InstanceProperties.- Overrides:
mapNodeToInstancePropertiesin classEntityDetailMapper<Glossary>- Parameters:
node- supplied nodeinstanceProperties- equivalent instance properties to the Node
-
updateNodeWithClassification
protected boolean updateNodeWithClassification(Glossary glossary, Classification omasClassification)
-
getTypeName
public String getTypeName()
Description copied from interface:MapperGet the type name- Specified by:
getTypeNamein interfaceMapper<EntityDetail,Glossary>- Specified by:
getTypeNamein classEntityDetailMapper<Glossary>- Returns:
- type name
-
-