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