proper.imp
Class Data

java.lang.Object
  extended by proper.imp.Data
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
List, Predicate

public abstract class Data
extends java.lang.Object
implements java.lang.Cloneable

Data is the common ancestor for Predicate and List.

Version:
$Revision: 1.2 $
Author:
FracPete

Constructor Summary
Data(int id)
          initializes the List
 
Method Summary
 void add(int index, java.lang.Object o)
          adds the given object to the list at the specified index
 void add(java.lang.Object o)
          adds the given object to the list
 java.lang.Object clone()
          returns a copy of this object
 java.lang.Object get(int index)
          returns the specified object
 java.util.Vector getData()
          returns the data stored in a Vector
 int getID()
          returns the ID of this predicate
 int getIndex(Data d)
          returns the index of the given data in its own children
abstract  java.lang.String getName()
          returns the name of the container
 Data getParent()
          returns the parent of this object
 int getParentIndex()
          returns the index of itself in the parents children
 boolean hasParent()
          returns whether this data has a parent or not
 boolean isNull(int index)
          checks whether the given element is NULL
static boolean isNull(java.lang.String str)
          checks whether the string is a NULL value
 java.lang.Object remove(int index)
          removes the specified object
 void setID(int id)
          sets the ID if this predicate - ATTENTION: can damage the uniqueness!
 void setParent(Data parent)
          sets the parent of this object
 int size()
          returns the size of the stored data
abstract  java.lang.String toString()
          returns the object in a String representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Data

public Data(int id)
initializes the List

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
returns a copy of this object

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getName

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


getID

public int getID()
returns the ID of this predicate


setID

public void setID(int id)
sets the ID if this predicate - ATTENTION: can damage the uniqueness!


setParent

public void setParent(Data parent)
sets the parent of this object


getParent

public Data getParent()
returns the parent of this object


hasParent

public boolean hasParent()
returns whether this data has a parent or not


add

public void add(java.lang.Object o)
adds the given object to the list


add

public void add(int index,
                java.lang.Object o)
adds the given object to the list at the specified index


get

public java.lang.Object get(int index)
returns the specified object


remove

public java.lang.Object remove(int index)
removes the specified object


getData

public java.util.Vector getData()
returns the data stored in a Vector


size

public int size()
returns the size of the stored data


getIndex

public int getIndex(Data d)
returns the index of the given data in its own children


getParentIndex

public int getParentIndex()
returns the index of itself in the parents children


isNull

public boolean isNull(int index)
checks whether the given element is NULL

Parameters:
index - the index of the element to check
Returns:
whether the element is NULL

isNull

public static boolean isNull(java.lang.String str)
checks whether the string is a NULL value


toString

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

Overrides:
toString in class java.lang.Object