public class GlossaryMapper extends EntityDetailMapper<Glossary>
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOSSARY |
static String |
OMRS_CANONICAL_VOCABULARY_NAME |
static String |
OMRS_TAXONOMY_NAME |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
GlossaryMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Classification> |
getInlinedClassifications(Glossary node)
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).
|
String |
getTypeName()
Get the type name
|
Glossary |
map(EntityDetail entityDetail)
Map EntityDetail to Glossary or a sub type of Glossary
|
EntityDetail |
map(Glossary node)
Map from a Subject Area OMAS Node to an OMRS EntityDetail
|
protected 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)
Update Node with classification
This method should be overridden by types of node if they want to use the Classification as an in lined property
|
getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, populateAdditionalProperties, toEntityDetailpublic static final String GLOSSARY
public static final String OMRS_TAXONOMY_NAME
public static final String OMRS_CANONICAL_VOCABULARY_NAME
public GlossaryMapper(OMRSAPIHelper omrsapiHelper)
public Glossary map(EntityDetail entityDetail)
entityDetail - the supplied EntityDetailpublic EntityDetail map(Glossary node)
INodeMappernode - a Subject Area OMAS Nodeprotected List<Classification> getInlinedClassifications(Glossary node)
EntityDetailMappernode - supplied nodeprotected boolean mapPrimitiveToNode(Glossary glossary, String propertyName, Object value)
mapPrimitiveToNode in class EntityDetailMapper<Glossary>glossary - the glossary to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected void mapNodeToInstanceProperties(Glossary node, InstanceProperties instanceProperties)
mapNodeToInstanceProperties in class EntityDetailMapper<Glossary>node - supplied nodeinstanceProperties - equivalent instance properties to the Nodeprotected boolean updateNodeWithClassification(Glossary glossary, Classification omasClassification)
EntityDetailMapperglossary - node to updateomasClassification - classificationpublic String getTypeName()
MappergetTypeName in interface Mapper<EntityDetail,Glossary>getTypeName in class EntityDetailMapper<Glossary>Copyright © 2018–2020 ODPi. All rights reserved.