public class TermHasARelationshipMapper extends RelationshipMapper<HasA>
| Modifier and Type | Field and Description |
|---|---|
static String |
TERM_HASA_RELATIONSHIP |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
TermHasARelationshipMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected HasA |
getRelationshipInstance() |
String |
getTypeName()
get type name
|
protected boolean |
mapEnumToRelationship(HasA termHasARelationship,
String propertyName,
EnumPropertyValue enumPropertyValue)
Map an omrs enum property to a Subject Area relationship property.
|
protected boolean |
mapPrimitiveToRelationship(HasA termHasARelationship,
String propertyName,
Object value)
Map a primitive omrs property to the termHASARelationship object.
|
protected void |
mapRelationshipToInstanceProperties(HasA termHasARelationship,
InstanceProperties instanceProperties)
Map the supplied omas relationship to omrs InstanceProperties.
|
getTypeDefGuid, map, map, mapInstancePropertiesToRelationship, mapMapToRelationshippublic static final String TERM_HASA_RELATIONSHIP
public TermHasARelationshipMapper(OMRSAPIHelper omrsapiHelper)
protected void mapRelationshipToInstanceProperties(HasA termHasARelationship, InstanceProperties instanceProperties)
mapRelationshipToInstanceProperties in class RelationshipMapper<HasA>termHasARelationship - supplied relationshipinstanceProperties - equivalent instance properties to the relationshipprotected boolean mapPrimitiveToRelationship(HasA termHasARelationship, String propertyName, Object value)
mapPrimitiveToRelationship in class RelationshipMapper<HasA>termHasARelationship - the omas relationship to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected boolean mapEnumToRelationship(HasA termHasARelationship, String propertyName, EnumPropertyValue enumPropertyValue)
RelationshipMappermapEnumToRelationship in class RelationshipMapper<HasA>termHasARelationship - the relationship to be updatedpropertyName - the omrs property nameenumPropertyValue - the omrs enum property valuepublic String getTypeName()
RelationshipMappergetTypeName in interface Mapper<Relationship,HasA>getTypeName in class RelationshipMapper<HasA>protected HasA getRelationshipInstance()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.