Class ConcreteRelationship
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.model.VersionedComponent
-
- in.cdac.medinfo.csnotk.csnolib.model.Component
-
- in.cdac.medinfo.csnotk.csnolib.model.ConcreteRelationship
-
public class ConcreteRelationship extends Component
Concrete Relationship represents an association between concept and concrete domain.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.BytegetActiveStatus()Retrieves the status of the Relationship.java.lang.StringgetCharacteristicTypeId()Returns the characteristic type.java.lang.StringgetDestinationValue()Returns the destination Concept Id.java.lang.StringgetDestinationValueWithPrefix()java.lang.StringgetId()Returns the component identifier.java.lang.StringgetModifierId()Returns the modifier Id.java.lang.StringgetModuleId()returns the module Id of the Relationship.intgetRelationshipGroup()Returns the relationship group.ConceptgetSourceConcept()Returns the source Concept Id.java.util.DategetTime()returns the effective time of the Relationship.ConceptgetType()inthashCode()voidsetActiveStatus(java.lang.Byte activeStatus)sets the Relationship status.voidsetCharacteristicTypeId(EnumCharacteristicType characteristicTypeId)Sets the characteristic type.voidsetDestinationValue(java.lang.String destinationValue)Sets the destination Concept Id.voidsetDestinationValueWithPrefix(java.lang.String prefixvalue)voidsetId(java.lang.String id)sets the Id of the relationship.voidsetModifierId(EnumModifier modifierId)Sets the modifier Id.voidsetModuleId(java.lang.String modId)sets the module Id of the Relationship.voidsetRelationshipGroup(int relationshipGroup)Sets the relationship group.voidsetSourceConcept(Concept sourceConcept)Sets the source Concept Id.voidsetTime(java.util.Date date)sets the effective time.voidsetType(Concept type)Sets the type of theRelationship.
-
-
-
Method Detail
-
getDestinationValueWithPrefix
public java.lang.String getDestinationValueWithPrefix()
-
setDestinationValueWithPrefix
public void setDestinationValueWithPrefix(java.lang.String prefixvalue)
-
getId
public java.lang.String getId()
Description copied from class:ComponentReturns the component identifier.
-
setId
public void setId(java.lang.String id)
sets the Id of the relationship.
-
getActiveStatus
public java.lang.Byte getActiveStatus()
Retrieves the status of the Relationship.- Overrides:
getActiveStatusin classVersionedComponent- Returns:
- activeStatus of a component
-
setActiveStatus
public void setActiveStatus(java.lang.Byte activeStatus)
sets the Relationship status.- Overrides:
setActiveStatusin classVersionedComponent- Parameters:
activeStatus- represents active Status of the component
-
getModuleId
public java.lang.String getModuleId()
returns the module Id of the Relationship.- Overrides:
getModuleIdin classVersionedComponent- Returns:
- module Id of a component
-
setModuleId
public void setModuleId(java.lang.String modId)
sets the module Id of the Relationship.- Overrides:
setModuleIdin classVersionedComponent- Parameters:
modId- represents module Id of a component
-
getTime
public java.util.Date getTime()
returns the effective time of the Relationship.- Overrides:
getTimein classVersionedComponent- Returns:
- effective time of that component
-
setTime
public void setTime(java.util.Date date)
sets the effective time.- Overrides:
setTimein classVersionedComponent- Parameters:
date- - represents effective time
-
getSourceConcept
public Concept getSourceConcept()
Returns the source Concept Id.- Returns:
- the identifier of the source
Conceptof this relationship.
-
setSourceConcept
public void setSourceConcept(Concept sourceConcept)
Sets the source Concept Id.- Parameters:
sourceConcept- Id of the source concept.
-
getDestinationValue
public java.lang.String getDestinationValue()
Returns the destination Concept Id.- Returns:
- the destination concept of this relationship.
-
setDestinationValue
public void setDestinationValue(java.lang.String destinationValue)
Sets the destination Concept Id.- Parameters:
destinationConcept- destination Concept.
-
setType
public void setType(Concept type)
Sets the type of theRelationship.- Parameters:
type- represents the Relationship type.
-
getType
public Concept getType()
- Returns:
EnumRelationshipTypethe type of this relationship.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getRelationshipGroup
public int getRelationshipGroup()
Returns the relationship group.- Returns:
- relationship group to which the particular
Relationshipbelongs.
-
setRelationshipGroup
public void setRelationshipGroup(int relationshipGroup)
Sets the relationship group.- Parameters:
relationshipGroup- integer value that represents a group of relationships logically associated with one another.
-
getCharacteristicTypeId
public java.lang.String getCharacteristicTypeId()
Returns the characteristic type.- Returns:
- characteristic type Id associated with the
Relationship.
-
setCharacteristicTypeId
public void setCharacteristicTypeId(EnumCharacteristicType characteristicTypeId)
Sets the characteristic type.- Parameters:
characteristicTypeId- specifies the characteristic type.
-
getModifierId
public java.lang.String getModifierId()
Returns the modifier Id.- Returns:
- modifier Id.
-
setModifierId
public void setModifierId(EnumModifier modifierId)
Sets the modifier Id.- Parameters:
modifierId- the modifier Id.
-
-