org.openmrs
Class ConceptComplex

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.Concept
          extended by org.openmrs.ConceptComplex
All Implemented Interfaces:
java.io.Serializable, Attributable<Concept>, Auditable, OpenmrsObject, Retireable

public class ConceptComplex
extends Concept
implements java.io.Serializable

Child class of Concept that has a ComplexObsHandler associated with the Concept.

Since:
1.5
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ConceptComplex()
          Default Constructor
ConceptComplex(Concept c)
          Constructor from Concept.
ConceptComplex(java.lang.Integer conceptId)
           
ConceptComplex(java.lang.Integer conceptId, java.lang.String handler)
          Constructor with conceptId and ConceptComplexHandler
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getHandler()
           
 int hashCode()
           
 boolean isComplex()
          Overrides parent method and returns true if this Concept.getDatatype() equals "Complex"..
 void setHandler(java.lang.String handler)
          Set the ConceptComplexHandler.
 
Methods inherited from class org.openmrs.Concept
addAnswer, addConceptMapping, addDescription, addName, addSetMember, addSetMember, findNameTaggedWith, findPossibleValues, getAllConceptNameLocales, getAnswers, getAnswers, getBestName, getBestShortName, getChangedBy, getCompatibleNames, getConceptClass, getConceptId, getConceptMappings, getConceptSets, getCreator, getDatatype, getDateChanged, getDateCreated, getDateRetired, getDescription, getDescription, getDescription, getDescriptions, getDisplayString, getFullySpecifiedName, getId, getIndexTerms, getIndexTermsForLocale, getName, getName, getName, getNames, getNames, getNames, getPossibleValues, getPreferredName, getPreferredNameForCountry, getPreferredNameInLanguage, getRetired, getRetiredBy, getRetireReason, getSet, getSetMembers, getShortestName, getShortNameForCountry, getShortNameInLanguage, getShortNameInLocale, getShortNames, getShortNamesForLocale, getSortedAnswers, getSynonyms, getSynonyms, getVersion, hasName, hydrate, isNamed, isNumeric, isRetired, isSet, removeAnswer, removeConceptMapping, removeDescription, removeName, serialize, setAnswers, setChangedBy, setConceptClass, setConceptId, setConceptMappings, setConceptSets, setCreator, setDatatype, setDateChanged, setDateCreated, setDateRetired, setDescriptions, setFullySpecifiedName, setId, setNames, setPreferredName, setPreferredName, setRetired, setRetiredBy, setRetireReason, setSet, setShortName, setShortName, setVersion, toString
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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

ConceptComplex

public ConceptComplex()
Default Constructor


ConceptComplex

public ConceptComplex(java.lang.Integer conceptId)
Parameters:
conceptId -

ConceptComplex

public ConceptComplex(java.lang.Integer conceptId,
                      java.lang.String handler)
Constructor with conceptId and ConceptComplexHandler

Parameters:
conceptId -
handler -

ConceptComplex

public ConceptComplex(Concept c)
Constructor from Concept.

Parameters:
c -
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Concept
See Also:
Concept.hashCode()

isComplex

public boolean isComplex()
Overrides parent method and returns true if this Concept.getDatatype() equals "Complex"..

Overrides:
isComplex in class Concept
Returns:
false
See Also:
Concept.isComplex()

setHandler

public void setHandler(java.lang.String handler)
Set the ConceptComplexHandler. This should be the ComplexObsHandler key

Parameters:
handler -

getHandler

public java.lang.String getHandler()
Returns:
Returns the key to the ComplexObsHandler associated with this ConceptComplex.

OpenMRS-1.7.x

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