eu.monnetproject.lemon.model
Interface Node

All Superinterfaces:
LemonElement, LemonElementOrPredicate
All Known Implementing Classes:
NodeImpl

public interface Node
extends LemonElement

A node in a phrase structure tree

Author:
John McCrae

Method Summary
 boolean addEdge(Edge edge, Node edgeVal)
          Add an edge to the tree
 Constituent getConstituent()
          Get the constituent of the node, that is the phrase trype
 Collection<Node> getEdge(Edge edge)
          Get the edges to other nodes of a given arc type
 Map<Edge,Collection<Node>> getEdges()
          Get the edges to other nodes
 PhraseTerminal getLeaf()
          Get the leaf of the node.
 Text getSeparator()
          Get the separator value between the subnodes.
 boolean removeEdge(Edge edge, Node edgeVal)
          Remove an edge from the tree
 void setConstituent(Constituent constituent)
          Set the constituent of the node
 void setLeaf(PhraseTerminal product)
          Set the leaf of the node
 void setSeparator(Text separator)
          Set the separator value between the subnodes
 
Methods inherited from interface eu.monnetproject.lemon.model.LemonElement
addAnnotation, addProperty, addType, getAnnotations, getAnnotations, getID, getProperty, getPropertys, getTypes, removeAnnotation, removeProperty, removeType
 
Methods inherited from interface eu.monnetproject.lemon.model.LemonElementOrPredicate
getURI
 

Method Detail

getConstituent

Constituent getConstituent()
Get the constituent of the node, that is the phrase trype


setConstituent

void setConstituent(Constituent constituent)
Set the constituent of the node


getEdges

Map<Edge,Collection<Node>> getEdges()
Get the edges to other nodes


getEdge

Collection<Node> getEdge(Edge edge)
Get the edges to other nodes of a given arc type


addEdge

boolean addEdge(Edge edge,
                Node edgeVal)
Add an edge to the tree


removeEdge

boolean removeEdge(Edge edge,
                   Node edgeVal)
Remove an edge from the tree


getLeaf

PhraseTerminal getLeaf()
Get the leaf of the node. A node must have either a leaf xor zero or more edges


setLeaf

void setLeaf(PhraseTerminal product)
Set the leaf of the node


getSeparator

Text getSeparator()
Get the separator value between the subnodes. This will most likely be a single space


setSeparator

void setSeparator(Text separator)
Set the separator value between the subnodes



Copyright © 2012. All Rights Reserved.