com.simonstl.fragment
Class ComponentList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--com.simonstl.fragment.ComponentList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class ComponentList
extends java.util.ArrayList

The ComponentList class extends ArrayList with functions for matching objects

Version 0.02 adds an empty matchRules() method and a repeats boolean.

Version 0.01 was a placeholder built solely on ArrayList .

Version:
0.02 13 July 2001
Author:
Simon St.Laurent
See Also:
Serialized Form

Field Summary
protected  boolean repeats
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ComponentList()
           
 
Method Summary
 DocComponent getComponent(int which)
          The getComponent() method returns a DocComponent and supports the repeats functionality.
 boolean getRepeats()
           
 boolean matchRules(DocComponent testComponent, int matchType)
          The matchRules() method accepts a component - Element or Attribute - and asks its contents to indicate if they match that component.
 void setRepeats(boolean _repeats)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, 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, remove, 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, remove, removeAll, retainAll, subList
 

Field Detail

repeats

protected boolean repeats
Constructor Detail

ComponentList

public ComponentList()
Method Detail

matchRules

public boolean matchRules(DocComponent testComponent,
                          int matchType)
The matchRules() method accepts a component - Element or Attribute - and asks its contents to indicate if they match that component. If they do, this method will return true.

getComponent

public DocComponent getComponent(int which)
The getComponent() method returns a DocComponent and supports the repeats functionality.

setRepeats

public void setRepeats(boolean _repeats)

getRepeats

public boolean getRepeats()