proper.imp
Class List

java.lang.Object
  extended by proper.imp.Data
      extended by proper.imp.List
All Implemented Interfaces:
java.lang.Cloneable

public class List
extends Data

This class is used to store a list of objects. Used for storing a Prolog list.

Version:
$Revision: 1.2 $
Author:
FracPete

Constructor Summary
List(int id)
          initalizes the object
 
Method Summary
 java.lang.String getName()
          returns the name of the container
static void main(java.lang.String[] args)
          for testing only
 java.lang.String toString()
          returns the list in a String representation
 
Methods inherited from class proper.imp.Data
add, add, clone, get, getData, getID, getIndex, getParent, getParentIndex, hasParent, isNull, isNull, remove, setID, setParent, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

List

public List(int id)
initalizes the object

Method Detail

getName

public java.lang.String getName()
returns the name of the container

Specified by:
getName in class Data

toString

public java.lang.String toString()
returns the list in a String representation

Specified by:
toString in class Data

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
for testing only

Throws:
java.lang.Exception