org.openmrs
Class ConceptSet

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.ConceptSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConceptSet>, Auditable, OpenmrsObject

public class ConceptSet
extends BaseOpenmrsObject
implements Auditable, java.io.Serializable, java.lang.Comparable<ConceptSet>

This represents a single concept within a concept set.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ConceptSet()
          default constructor
ConceptSet(Concept concept, java.lang.Double weight)
           
 
Method Summary
 int compareTo(ConceptSet cs)
           
 boolean equals(java.lang.Object obj)
           
 User getChangedBy()
          Not currently used.
 Concept getConcept()
           
 Concept getConceptSet()
           
 java.lang.Integer getConceptSetId()
          Gets the concept set identifier.
 User getCreator()
           
 java.util.Date getDateChanged()
          Not currently used.
 java.util.Date getDateCreated()
           
 java.lang.Integer getId()
           
 java.lang.Double getSortWeight()
           
 int hashCode()
           
 void setChangedBy(User changedBy)
          Not currently used.
 void setConcept(Concept concept)
           
 void setConceptSet(Concept set)
           
 void setConceptSetId(java.lang.Integer conceptSetId)
          Sets the concept set identifier.
 void setCreator(User creator)
           
 void setDateChanged(java.util.Date dateChanged)
          Not currently used.
 void setDateCreated(java.util.Date dateCreated)
           
 void setId(java.lang.Integer id)
           
 void setSortWeight(java.lang.Double sortWeight)
           
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ConceptSet

public ConceptSet()
default constructor


ConceptSet

public ConceptSet(Concept concept,
                  java.lang.Double weight)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getConceptSetId

public java.lang.Integer getConceptSetId()
Gets the concept set identifier.

Returns:
the concept set identifier

setConceptSetId

public void setConceptSetId(java.lang.Integer conceptSetId)
Sets the concept set identifier.

Parameters:
conceptSetId - The concept set identifier.

getConcept

public Concept getConcept()

setConcept

public void setConcept(Concept concept)

getConceptSet

public Concept getConceptSet()

setConceptSet

public void setConceptSet(Concept set)

getSortWeight

public java.lang.Double getSortWeight()
Returns:
Returns the sortWeight.

setSortWeight

public void setSortWeight(java.lang.Double sortWeight)
Parameters:
sortWeight - The sortWeight to set.

getCreator

public User getCreator()
Specified by:
getCreator in interface Auditable
Returns:
Returns the creator.

setCreator

public void setCreator(User creator)
Specified by:
setCreator in interface Auditable
Parameters:
creator - The creator to set.

getDateCreated

public java.util.Date getDateCreated()
Specified by:
getDateCreated in interface Auditable
Returns:
Returns the dateCreated.

setDateCreated

public void setDateCreated(java.util.Date dateCreated)
Specified by:
setDateCreated in interface Auditable
Parameters:
dateCreated - The dateCreated to set.

getId

public java.lang.Integer getId()
Specified by:
getId in interface OpenmrsObject
Returns:
id - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.getId()

setId

public void setId(java.lang.Integer id)
Specified by:
setId in interface OpenmrsObject
Parameters:
id - - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.setId(java.lang.Integer)

getChangedBy

public User getChangedBy()
Not currently used. Always returns null.

Specified by:
getChangedBy in interface Auditable
Returns:
User - the user who last changed the object
See Also:
Auditable.getChangedBy()

getDateChanged

public java.util.Date getDateChanged()
Not currently used. Always returns null.

Specified by:
getDateChanged in interface Auditable
Returns:
Date - the date the object was last changed
See Also:
Auditable.getDateChanged()

setChangedBy

public void setChangedBy(User changedBy)
Not currently used.

Specified by:
setChangedBy in interface Auditable
Parameters:
changedBy - - the user who last changed the object
See Also:
Auditable.setChangedBy(org.openmrs.User)

setDateChanged

public void setDateChanged(java.util.Date dateChanged)
Not currently used.

Specified by:
setDateChanged in interface Auditable
Parameters:
dateChanged - - the date the object was last changed
See Also:
Auditable.setDateChanged(java.util.Date)

compareTo

public int compareTo(ConceptSet cs)
Specified by:
compareTo in interface java.lang.Comparable<ConceptSet>
See Also:
Comparable.compareTo(java.lang.Object)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change