eteg.sinon.core
Class Collector

java.lang.Object
  extended by eteg.sinon.core.Collector

public class Collector
extends java.lang.Object

Class that represents a Sinon collector.

Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $

Constructor Summary
Collector()
          Constructor without parameters.
 
Method Summary
 void addCatalog(Catalog catalog)
          Adds a Catalog to this collector.
 Catalog getCatalog(java.lang.String id)
          Returns the Catalog whose identifier is id.
 Catalog[] getCatalogs()
          Returns the value of the catalogs property.
 java.lang.String getCatalogStateListenerClassName()
          Returns the value of the catalogStateListenerClassName property.
 CollectorConfiguration getConfiguration()
          Returns the value of the configurations property.
 java.lang.String getId()
          Returns the value of the id property.
 void removeCatalog(Catalog catalog)
          Removes a Catalog to this collector.
 void setCatalogStateListenerClassName(java.lang.String catalogStateListenerClassName)
          Sets the value of the catalogStateListenerClassName property.
 void setConfiguration(CollectorConfiguration configuration)
          Sets the value of the configuration property.
 void setId(java.lang.String id)
          Sets the value of the id property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collector

public Collector()
Constructor without parameters.

Method Detail

getId

public java.lang.String getId()
Returns the value of the id property.

Returns:
a String.

setId

public void setId(java.lang.String id)
Sets the value of the id property.

Parameters:
id - the new id value.

getConfiguration

public CollectorConfiguration getConfiguration()
Returns the value of the configurations property.

Returns:
a CollectorConfiguration instance.

setConfiguration

public void setConfiguration(CollectorConfiguration configuration)
Sets the value of the configuration property.

Parameters:
configuration - a CollectorConfiguration instance.

addCatalog

public void addCatalog(Catalog catalog)
Adds a Catalog to this collector.

Parameters:
catalog - a Catalog instance.

removeCatalog

public void removeCatalog(Catalog catalog)
Removes a Catalog to this collector.

Parameters:
catalog - a Catalog instance.

getCatalogs

public Catalog[] getCatalogs()
Returns the value of the catalogs property.

Returns:
a Catalog array.

getCatalog

public Catalog getCatalog(java.lang.String id)
Returns the Catalog whose identifier is id.

Parameters:
id - a String.
Returns:
a Catalog instance or null if there is no Catalog whose identifier is id.
Throws:
java.lang.IllegalArgumentException - if id is null.

getCatalogStateListenerClassName

public java.lang.String getCatalogStateListenerClassName()
Returns the value of the catalogStateListenerClassName property.

Returns:
a String.

setCatalogStateListenerClassName

public void setCatalogStateListenerClassName(java.lang.String catalogStateListenerClassName)
Sets the value of the catalogStateListenerClassName property.

Parameters:
catalogStateListenerClassName - the new catalogStateListenerClassName value.


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.