org.mmbase.storage.util
Class Index

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Field>
              extended by org.mmbase.storage.util.Index
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Field>, Collection<Field>, List<Field>, RandomAccess

public class Index
extends ArrayList<Field>

Since:
MMBase-1.8
Version:
$Id: Index.java 35523 2009-05-29 13:39:38Z michiel $
Author:
Pierre van Rooden
See Also:
Serialized Form
Javadoc:

Field Summary
static String MAIN
          Name of the 'main' index of a builder (the 'nameless' index of all fields whose 'key' attribute is true)
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Index(MMObjectBuilder builder, String name)
           
 
Method Summary
 boolean add(Field field)
           
 String getName()
           
 MMObjectBuilder getParent()
           
 boolean isUnique()
           
 boolean remove(Field field)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

MAIN

public static final String MAIN
Name of the 'main' index of a builder (the 'nameless' index of all fields whose 'key' attribute is true)

See Also:
Constant Field Values
Constructor Detail

Index

public Index(MMObjectBuilder builder,
             String name)
Method Detail

getName

public String getName()

getParent

public MMObjectBuilder getParent()

isUnique

public boolean isUnique()

setUnique

public void setUnique(boolean unique)

add

public boolean add(Field field)
Specified by:
add in interface Collection<Field>
Specified by:
add in interface List<Field>
Overrides:
add in class ArrayList<Field>

remove

public boolean remove(Field field)


MMBase 2.0-SNAPSHOT - null