|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ebi.microarray.zooma.eval.OntologyMappingOutcomeDecorator uk.ac.ebi.microarray.zooma.eval.JSONProducerDecorator
public class JSONProducerDecorator
A decorator that has the ability to generate a JSON object from an outcome
once applied. Having been applied, clients can extract the JSON
representation of the outcome by calling getJSONObject()
.
Constructor Summary | |
---|---|
protected |
JSONProducerDecorator(OntologyMappingOutcome outcome)
|
Method Summary | |
---|---|
void |
apply()
Applies the current outcome. |
static OntologyMappingOutcome |
generateJSONProducingOutcome(OntologyMappingOutcome outcome)
|
net.sf.json.JSONObject |
getJSONObject()
|
Methods inherited from class uk.ac.ebi.microarray.zooma.eval.OntologyMappingOutcomeDecorator |
---|
getBestHypotheses, getOutcome, getUnmappedValue, isAutomaticallyAcceptable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JSONProducerDecorator(OntologyMappingOutcome outcome)
Method Detail |
---|
public static OntologyMappingOutcome generateJSONProducingOutcome(OntologyMappingOutcome outcome)
public void apply() throws BadOutcomeException
OntologyMappingOutcome
apply
in interface OntologyMappingOutcome
apply
in class OntologyMappingOutcomeDecorator
BadOutcomeException
public net.sf.json.JSONObject getJSONObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |