|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.imp.Data
public abstract class Data
Data is the common ancestor for Predicate and List.
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 |
---|
public Data(int id)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public abstract java.lang.String getName()
public int getID()
public void setID(int id)
public void setParent(Data parent)
public Data getParent()
public boolean hasParent()
public void add(java.lang.Object o)
public void add(int index, java.lang.Object o)
public java.lang.Object get(int index)
public java.lang.Object remove(int index)
public java.util.Vector getData()
public int size()
public int getIndex(Data d)
public int getParentIndex()
public boolean isNull(int index)
index
- the index of the element to check
public static boolean isNull(java.lang.String str)
public abstract java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |