edu.stanford.nlp.trees.international.negra
Class NegraLabel

java.lang.Object
  extended byedu.stanford.nlp.trees.AbstractLabel
      extended byedu.stanford.nlp.trees.StringLabel
          extended byedu.stanford.nlp.trees.Category
              extended byedu.stanford.nlp.trees.international.negra.NegraLabel
All Implemented Interfaces:
Comparable, HasCategory, Label, Serializable

public class NegraLabel
extends Category
implements Label, HasCategory

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.trees.Category
EMPTYSTRING
 
Constructor Summary
NegraLabel()
           
NegraLabel(String str)
           
 
Method Summary
 String featureValue(String feature)
           
 String getEdge()
           
 void setEdge(String edge)
           
 void setFeatureValue(String feature, String value)
           
 String toString()
          Return a String representation of the label.
 
Methods inherited from class edu.stanford.nlp.trees.Category
category, factory, labelFactory, setCategory
 
Methods inherited from class edu.stanford.nlp.trees.StringLabel
setFromString, setValue, value
 
Methods inherited from class edu.stanford.nlp.trees.AbstractLabel
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.nlp.trees.Label
compareTo, labelFactory, setFromString, setValue, value
 
Methods inherited from interface edu.stanford.nlp.trees.HasCategory
category, setCategory
 

Constructor Detail

NegraLabel

public NegraLabel()

NegraLabel

public NegraLabel(String str)
Method Detail

setEdge

public void setEdge(String edge)

getEdge

public String getEdge()

setFeatureValue

public void setFeatureValue(String feature,
                            String value)

featureValue

public String featureValue(String feature)

toString

public String toString()
Description copied from interface: Label
Return a String representation of the label. For a multipart label, this will return all parts. The toString() method causes a label to spill its guts. It should always return an empty string rather than null if there is no value.

Specified by:
toString in interface Label
Overrides:
toString in class AbstractLabel
Returns:
the string representation


Stanford NLP Group