com.simonstl.moe
Interface ComponentCollectionI

All Superinterfaces:
java.util.Collection
All Known Subinterfaces:
ComponentListI, ComponentSetI

public interface ComponentCollectionI
extends java.util.Collection

The ComponentCollection interface defines the bare minimum of functionality needed for the ordered and unordered content contained in MOE objects.

version 0.01 is the initial release.

Version:
0.01 21 August 2001
Author:
Simon St.Laurent

Method Summary
 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 interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

toString

public 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.

toString

public java.lang.String toString()
toString() should report as attributes for unordered content, elements for ordered.
Overrides:
toString in class java.lang.Object

toAttributes

public 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.

toAttributes

public 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.

toElements

public 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.

toElements

public 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.

setParent

public void setParent(CoreComponentI _parent)
Sets the parent objects on all the items contained in the Collection.