com.simonstl.moe
Class ComponentList

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

public class ComponentList
extends java.util.ArrayList
implements ComponentListI

The ComponentList class extends ArrayList with functions for matching objects. ComponentList is a container for MOE objects which were generated outside of a document parsing environment - from a rules file, for instance. Developers who need to put a collection of MOE objects into a cluster with semi-transparent matching capability should use ComponentList.

Version 0.01 is a foundation built on ArrayList .

Version:
0.01 23 August 2001
Author:
Simon St.Laurent
See Also:
Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ComponentList()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getTextContent()
          Returns the textual content of child nodes, minus any markup.
 void setParent(CoreComponentI _parent)
          Sets the parent objects on all the items contained in the Collection.
 java.lang.String toAttributes()
          Without a list of current namespaces, the collection should report itself as XML attributes with declarations for all namespaces used by those attributes.
 java.lang.String toAttributes(ComponentSet namespaceContext)
          Given a list of current namespaces, the collection should report itself as XML attributes without declarations for namespaces presently in use.
 java.lang.String toElements()
          Without a list of current namespaces, the collection should report itself as XML elements with declarations for all namespaces used by those attributes.
 java.lang.String toElements(ComponentSet namespaceContext)
          Given a list of current namespaces, the collection should report itself as XML elements without declarations for namespaces presently in use.
 java.lang.String toString()
          toString() should report as attributes for unordered content, elements for ordered.
 java.lang.String toString(ComponentSet namespaceContext)
          toString(ComponentSet namespaceContext) should report as attributes for unordered content, elements for ordered, with an understanding of the namespaces already declared.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

ComponentList

public ComponentList()
Method Detail

getTextContent

public java.lang.String getTextContent()
Description copied from interface: ComponentListI
Returns the textual content of child nodes, minus any markup.
Specified by:
getTextContent in interface ComponentListI

toString

public java.lang.String toString()
Description copied from interface: ComponentCollectionI
toString() should report as attributes for unordered content, elements for ordered.
Specified by:
toString in interface ComponentCollectionI
Overrides:
toString in class java.util.AbstractCollection

toString

public java.lang.String toString(ComponentSet namespaceContext)
Description copied from interface: ComponentCollectionI
toString(ComponentSet namespaceContext) should report as attributes for unordered content, elements for ordered, with an understanding of the namespaces already declared.
Specified by:
toString in interface ComponentCollectionI

toAttributes

public java.lang.String toAttributes(ComponentSet namespaceContext)
Description copied from interface: ComponentCollectionI
Given a list of current namespaces, the collection should report itself as XML attributes without declarations for namespaces presently in use.
Specified by:
toAttributes in interface ComponentCollectionI

toAttributes

public java.lang.String toAttributes()
Description copied from interface: ComponentCollectionI
Without a list of current namespaces, the collection should report itself as XML attributes with declarations for all namespaces used by those attributes.
Specified by:
toAttributes in interface ComponentCollectionI

toElements

public java.lang.String toElements(ComponentSet namespaceContext)
Description copied from interface: ComponentCollectionI
Given a list of current namespaces, the collection should report itself as XML elements without declarations for namespaces presently in use.
Specified by:
toElements in interface ComponentCollectionI

toElements

public java.lang.String toElements()
Description copied from interface: ComponentCollectionI
Without a list of current namespaces, the collection should report itself as XML elements with declarations for all namespaces used by those attributes.
Specified by:
toElements in interface ComponentCollectionI

setParent

public void setParent(CoreComponentI _parent)
Description copied from interface: ComponentCollectionI
Sets the parent objects on all the items contained in the Collection.
Specified by:
setParent in interface ComponentCollectionI

clone

public java.lang.Object clone()
Specified by:
clone in interface ComponentListI
Overrides:
clone in class java.util.ArrayList