|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--com.simonstl.fragment.ComponentList
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 .
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 |
protected boolean repeats
Constructor Detail |
public ComponentList()
Method Detail |
public boolean matchRules(DocComponent testComponent, int matchType)
public DocComponent getComponent(int which)
public void setRepeats(boolean _repeats)
public boolean getRepeats()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |