public class ProjectMapper extends EntityDetailMapper implements INodeMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOSSARY_PROJECT |
static String |
PROJECT |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
ProjectMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Classification> |
getInlinedClassifications(Node 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).
|
protected String |
getTypeName() |
Project |
mapEntityDetailToNode(EntityDetail entityDetail)
Map EntityDetail to Project or a sub type of Project
|
protected void |
mapNodeToInstanceProperties(Node node,
InstanceProperties instanceProperties)
Map the supplied Node to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToNode(Node node,
String propertyName,
Object value)
Map a primitive omrs property to the Project object.
|
protected boolean |
updateNodeWithClassification(Node node,
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
|
mapEntityDetailToNode, mapEnumToNode, mapMapToNode, mapNodeToEntityDetail, populateAdditionalPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapNodeToEntityDetailpublic static final String PROJECT
public static final String GLOSSARY_PROJECT
public ProjectMapper(OMRSAPIHelper omrsapiHelper)
public Project mapEntityDetailToNode(EntityDetail entityDetail) throws InvalidParameterException
mapEntityDetailToNode in interface INodeMapperentityDetail - the supplied EntityDetailInvalidParameterException - a parameter is null or an invalid value.protected List<Classification> getInlinedClassifications(Node node)
EntityDetailMappernode - supplied nodeprotected boolean mapPrimitiveToNode(Node node, String propertyName, Object value)
mapPrimitiveToNode in class EntityDetailMappernode - the Project to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected void mapNodeToInstanceProperties(Node node, InstanceProperties instanceProperties)
mapNodeToInstanceProperties in class EntityDetailMappernode - supplied nodeinstanceProperties - equivalent instance properties to the Nodeprotected boolean updateNodeWithClassification(Node node, Classification omasClassification)
EntityDetailMappernode - node to updateomasClassification - classificationprotected String getTypeName()
Copyright © 2018–2019 ODPi. All rights reserved.