org.mmbase.storage.util
Class Index

Package class diagram package 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 45336 2011-02-21 13:53:21Z 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)
           
 String toString()
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

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)

toString

public String toString()
Overrides:
toString in class AbstractCollection<Field>


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36