public class ConceptSearchResult
extends java.lang.Object
implements java.io.Serializable
Modifier | Constructor and Description |
---|---|
|
ConceptSearchResult()
default constructor
|
protected |
ConceptSearchResult(ConceptWord conceptWord)
Optional constructor for turning a conceptWord into a conceptSearchResult, the constructor is
hidden from API users so as to hide the idea of conceptWord, it is meant to be used
underneath the API for convenience purposes.
|
|
ConceptSearchResult(java.lang.String word,
Concept concept,
ConceptName conceptName)
Convenience constructor
|
|
ConceptSearchResult(java.lang.String word,
Concept concept,
ConceptName conceptName,
java.lang.Double transientWeight)
Convenience constructor that takes in a weight too
|
Modifier and Type | Method and Description |
---|---|
Concept |
getConcept() |
ConceptName |
getConceptName() |
java.lang.Double |
getTransientWeight()
Getter for transientWeight
|
java.lang.String |
getWord() |
void |
setConcept(Concept concept) |
void |
setConceptName(ConceptName conceptName) |
void |
setTransientWeight(java.lang.Double transientWeight)
Setter transientWeight
|
void |
setWord(java.lang.String word) |
public ConceptSearchResult()
protected ConceptSearchResult(ConceptWord conceptWord)
conceptWord
- the conceptWord from which to construct a search resultpublic ConceptSearchResult(java.lang.String word, Concept concept, ConceptName conceptName)
word
- the single word that will be matched to search termsconcept
- the concept that is being matched toconceptName
- the specific name that will be matchedpublic ConceptSearchResult(java.lang.String word, Concept concept, ConceptName conceptName, java.lang.Double transientWeight)
word
- the single word that will be matched to search termsconcept
- the concept that is being matched toconceptName
- the specific name that will be matchedtransientWeight
- the weight for this conceptSearchResultpublic Concept getConcept()
public void setConcept(Concept concept)
concept
- the concept to setpublic ConceptName getConceptName()
public void setConceptName(ConceptName conceptName)
conceptName
- the conceptName to setpublic java.lang.String getWord()
public void setWord(java.lang.String word)
word
- the word to setpublic java.lang.Double getTransientWeight()
public void setTransientWeight(java.lang.Double transientWeight)
transientWeight
- Copyright © 2018 OpenMRS Inc.. All Rights Reserved.