ch.uzh.ifi.attempto.chartparser
Class Annotation

java.lang.Object
  extended by ch.uzh.ifi.attempto.chartparser.Annotation

public class Annotation
extends java.lang.Object

This class represents a grammar annotation object.

Author:
Tobias Kuhn

Constructor Summary
Annotation()
          Creates a new annotation object.
 
Method Summary
 Annotation deepCopy()
          Creates a deep copy of this annotation object.
 java.lang.Object getItem(java.lang.String name)
          Returns the value of an annotation item.
 void setItem(java.lang.String name, java.lang.Object value)
          Sets an annotation item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation()
Creates a new annotation object.

Method Detail

setItem

public void setItem(java.lang.String name,
                    java.lang.Object value)
Sets an annotation item.

Parameters:
name - The name of the annotation item.
value - The value of the annotation item.

getItem

public java.lang.Object getItem(java.lang.String name)
Returns the value of an annotation item.

Parameters:
name - The name of the annotation item.
Returns:
The value.

deepCopy

public Annotation deepCopy()
Creates a deep copy of this annotation object.

Returns:
A deep copy.


Copyright 2008-2012, AceWiki developers