uk.ac.ebi.microarray.zooma.lang
Class TextValue

java.lang.Object
  extended by uk.ac.ebi.microarray.zooma.lang.TextValue
All Implemented Interfaces:
Value

public class TextValue
extends java.lang.Object
implements Value

A very basic Value implementation that simply wraps a plain text string. This text value also wraps a tracker, for recording hypotheses that can map the text value.

Author:
Tony Burdett

Constructor Summary
TextValue(java.lang.String text)
          Generates a new TextValue with, by default, a new instance of HypothesisRankingTracker as it's tracker.
TextValue(java.lang.String text, HypothesisTracker tracker)
          Generates a new text value, using the supplied hypothesis tracker to track hypotheses about how this text value maps to ontology terms.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 HypothesisTracker getHypothesisTracker()
          Returns a HypothesisTracker that can be utilised to track any generated hypotheses describing mappings about this value
 java.lang.String getText()
          The actual string assigned to this description.
 int hashCode()
           
 void setHypothesisTracker(HypothesisTracker tracker)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextValue

public TextValue(java.lang.String text)
Generates a new TextValue with, by default, a new instance of HypothesisRankingTracker as it's tracker.

Parameters:
text - the text value to map

TextValue

public TextValue(java.lang.String text,
                 HypothesisTracker tracker)
Generates a new text value, using the supplied hypothesis tracker to track hypotheses about how this text value maps to ontology terms.

Parameters:
text - the value to map
tracker - the tracker to use to track mapping hypotheses
Method Detail

getText

public java.lang.String getText()
Description copied from interface: Value
The actual string assigned to this description.

Specified by:
getText in interface Value
Returns:
the text value of this description

getHypothesisTracker

public HypothesisTracker getHypothesisTracker()
Description copied from interface: Value
Returns a HypothesisTracker that can be utilised to track any generated hypotheses describing mappings about this value

Specified by:
getHypothesisTracker in interface Value
Returns:
a hypothesis tracker for all hypotheses about this value

setHypothesisTracker

public void setHypothesisTracker(HypothesisTracker tracker)

equals

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

hashCode

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


Copyright © 2010. All Rights Reserved.