Interface cryptiX.utils.Composite
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface cryptiX.utils.Composite

public interface Composite
extends Object
This interface defines the common operations for all objects following the Composite pattern [Gamma, p. 164].

Method Index

 o addComponent(Composite)
Add a new component to the container object.
 o addComponent(Composite, int)
Add a new component to the container object at a given location.
 o countComponents()
Returns the number of component objects.
 o getComponent(int)
Returns the component at the given location within a sequence.
 o getComponents()
Returns an Enumeration that iterates over the component objects.
 o removeComponent(Composite)
Removes a component from the container.
 o removeComponent(int)
Removes a component at the given location within the container.
 o setComponent(int, Composite)
Sets the component at the given location within a sequence.

Methods

 o addComponent
  public abstract void addComponent(Composite component)
Add a new component to the container object. If the object accessed is not a container object, throws NonCompositeException.
 o addComponent
  public abstract void addComponent(Composite component,
                                    int index)
Add a new component to the container object at a given location. If the object accessed is not a container object, throws NonCompositeException.
 o removeComponent
  public abstract void removeComponent(Composite component)
Removes a component from the container. If the object accessed is not a container, throws NonCompositeException. If the component is not in the container, does nothing.
 o removeComponent
  public abstract void removeComponent(int index)
Removes a component at the given location within the container. If the object accessed is not a container, throws NonCompositeException. If the index refers outside bounds, IndexOutOfBounds is thrown.
 o getComponent
  public abstract Composite getComponent(int index)
Returns the component at the given location within a sequence. If the object accessed is not a container, throws NonCompositeException. If the index refers outside bounds, IndexOutOfBounds is thrown.
 o setComponent
  public abstract void setComponent(int index,
                                    Composite value)
Sets the component at the given location within a sequence. If the object accessed is not a container, throws NonCompositeException. If the index refers outside bounds, IndexOutOfBounds is thrown.
 o countComponents
  public abstract int countComponents()
Returns the number of component objects. Zero if none.
 o getComponents
  public abstract Enumeration getComponents()
Returns an Enumeration that iterates over the component objects. Returns a NullEnumeration if this not a container.

All Packages  Class Hierarchy  This Package  Previous  Next  Index