All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface aioli.vtp.AnnotatedTree

public interface AnnotatedTree
extends Serializable
An interface for the notion of annotated tree.


Method Index

 o adopt(Tree, Move)
Adds a tree in a list tree.
 o adopt(Tree, String)
Adds a tree in a list tree.
 o annotations()
Returns an Enumeration containing all the annotations.
 o annotp(String)
Returns true if the tree has an annotation of name, else otherwise.
 o changeSon(Tree, Move)
Changes the value of a son.
 o changeSon(Tree, String)
Changes the value of a son.
 o createAnnot(String)
Creates an annotation if it doesn'it exist.
 o createAnnotValue(String, Object)
Creates an annotation if it doesn'it exist and sets the value.
 o disown(Move)
Deletes the son of a tree.
 o disown(String)
Deletes the son of a tree.
 o down(Move)
Moves down in the tree.
 o down(String)
Moves down in the tree.
 o getAnnotation(String)
Returns the annotation, or null if no such an annotation exists.
 o getAnnotValue(String)
Returns the value of the annotation, or null if no such an annotation exists or if the annotation has no value.
 o removeAnnot(String)
Removes the annotation.
 o setAnnotValue(String, Object)
Sets the value of the annotation.

Methods

 o annotations
 public abstract Enumeration annotations()
Returns an Enumeration containing all the annotations.

 o createAnnot
 public abstract Annotation createAnnot(String name)
Creates an annotation if it doesn'it exist.

Parameters:
name - The name of the annotation.
Returns:
The annotation.
 o createAnnotValue
 public abstract Annotation createAnnotValue(String name,
                                             Object val)
Creates an annotation if it doesn'it exist and sets the value.

Parameters:
name - The name of the annotation.
val - The value of the annotation.
Returns:
The annotation.
 o getAnnotation
 public abstract Annotation getAnnotation(String name)
Returns the annotation, or null if no such an annotation exists.

Parameters:
name - The name of the annotation.
 o getAnnotValue
 public abstract Object getAnnotValue(String name)
Returns the value of the annotation, or null if no such an annotation exists or if the annotation has no value.

Parameters:
name - The name of the annotation.
 o setAnnotValue
 public abstract Object setAnnotValue(String name,
                                      Object val)
Sets the value of the annotation.

Parameters:
name - The name of the annotation.
val - The new value.
Returns:
The previous value of the annotation, or null if it did not have one.
 o removeAnnot
 public abstract Object removeAnnot(String name)
Removes the annotation.

Parameters:
name - The name of the annotation.
Returns:
The value if it was present, or null if there's no value or if the annotation is not present.
 o annotp
 public abstract boolean annotp(String name)
Returns true if the tree has an annotation of name, else otherwise.

Parameters:
name - The name of the annotation
 o down
 public abstract Tree down(String a)
Moves down in the tree.

Parameters:
a - The annotation name to go down.
Returns:
The Tree that is selected by the move.
 o down
 public abstract Tree down(Move m)
Moves down in the tree.

Parameters:
m - The move to go down.
Returns:
The Tree that is selected by the move.
 o adopt
 public abstract void adopt(Tree newtree,
                            String n)
Adds a tree in a list tree.

Parameters:
newtree - is the tree to be added.
n - is the annotation name
 o adopt
 public abstract void adopt(Tree newtree,
                            Move m)
Adds a tree in a list tree.

Parameters:
newtree - is the tree to be added.
m - is the move
 o changeSon
 public abstract void changeSon(Tree newtree,
                                String a)
Changes the value of a son.

Parameters:
newtree - the new tree.
a - the annotation name
 o changeSon
 public abstract void changeSon(Tree newtree,
                                Move m)
Changes the value of a son.

Parameters:
newtree - the new tree.
m - the move to the tree to be changed.
 o disown
 public abstract void disown(String a)
Deletes the son of a tree.

Parameters:
a - is the annotation name we need in order to get the son to be removed.
 o disown
 public abstract void disown(Move m)
Deletes the son of a tree.

Parameters:
m - is the move we need in order to get the son to be removed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index