net.didion.jwnl.data.list
Class PointerTargetNodeList

java.lang.Object
  extended bynet.didion.jwnl.util.TypeCheckingList
      extended bynet.didion.jwnl.data.list.PointerTargetNodeList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, DeepCloneable, java.util.List
Direct Known Subclasses:
PointerTargetTreeNodeList

public class PointerTargetNodeList
extends TypeCheckingList

A PointerTargetNodeList holds the results of a relationship method. Each node contains a PointerTarget (a synset or word) and the type of relationship that the node has to the other elements in the list and/or to the source word.


Nested Class Summary
 
Nested classes inherited from class net.didion.jwnl.util.TypeCheckingList
TypeCheckingList.TypeCheckingListIterator
 
Constructor Summary
  PointerTargetNodeList()
           
  PointerTargetNodeList(java.util.LinkedList list)
           
protected PointerTargetNodeList(java.util.LinkedList list, java.lang.Class type)
           
  PointerTargetNodeList(PointerTarget[] targets)
           
 
Method Summary
 void add(PointerTarget target)
           
 void add(PointerTarget target, PointerType type)
           
 java.lang.Object clone()
          Create a shallow clone of the object
 java.lang.Object deepClone()
          Create a deep clone of the object
protected  NodePrinter getNodePrinter()
           
 void print()
           
 void print(int indent)
           
 void print(java.io.PrintStream stream)
           
 void print(java.io.PrintStream stream, int indent)
           
protected  void print(java.io.PrintStream stream, int indent, int indentIncrement)
           
 PointerTargetNodeList reverse()
          Reverse the contents of this list.
 PointerTargetTreeNodeList toTreeList()
          Convert this list to a PointerTargetTreeNodeList.
 
Methods inherited from class net.didion.jwnl.util.TypeCheckingList
add, add, addAll, addAll, clear, contains, containsAll, copyBackingList, equals, get, getType, getTypeCheckingListIterator, getTypeCheckingListIterator, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
hashCode
 

Constructor Detail

PointerTargetNodeList

public PointerTargetNodeList()

PointerTargetNodeList

public PointerTargetNodeList(java.util.LinkedList list)

PointerTargetNodeList

public PointerTargetNodeList(PointerTarget[] targets)

PointerTargetNodeList

protected PointerTargetNodeList(java.util.LinkedList list,
                                java.lang.Class type)
Method Detail

add

public void add(PointerTarget target)

add

public void add(PointerTarget target,
                PointerType type)

getNodePrinter

protected NodePrinter getNodePrinter()

print

public void print()

print

public void print(int indent)

print

public void print(java.io.PrintStream stream)

print

public void print(java.io.PrintStream stream,
                  int indent)

print

protected void print(java.io.PrintStream stream,
                     int indent,
                     int indentIncrement)

toTreeList

public PointerTargetTreeNodeList toTreeList()
Convert this list to a PointerTargetTreeNodeList.


reverse

public PointerTargetNodeList reverse()
Reverse the contents of this list. This function creates a copy of this list and reverses it, so there are no changes made to this list itself.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: DeepCloneable
Create a shallow clone of the object

Specified by:
clone in interface DeepCloneable
Overrides:
clone in class TypeCheckingList
Throws:
java.lang.CloneNotSupportedException

deepClone

public java.lang.Object deepClone()
                           throws java.lang.UnsupportedOperationException
Description copied from interface: DeepCloneable
Create a deep clone of the object

Specified by:
deepClone in interface DeepCloneable
Overrides:
deepClone in class TypeCheckingList
Throws:
java.lang.UnsupportedOperationException



JWNL homepage.