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