gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class RepositoryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.sandia.ccaffeine.dc.user_iface.MVC.event.RepositoryEvent
All Implemented Interfaces:
java.io.Serializable

public class RepositoryEvent
extends java.util.EventObject

An entity can use this event to request a list of all components that are in the repository or to request one specific component.

See Also:
Serialized Form

Field Summary
protected  java.lang.String className
           
protected  java.lang.String command
           
static java.lang.String GET
          A command value
static java.lang.String GET_GLOBAL
          A command value
static java.lang.String GET_LAZY
          A command value
static java.lang.String GET_LAZY_GLOBAL
          A command value
static java.lang.String LIST
          A command value
protected  int numberOfArguments
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RepositoryEvent(java.lang.Object source)
          Construct a RepositoryEvent.
RepositoryEvent(java.lang.Object source, int numberOfArguments, java.lang.String command)
          Construct a RepositoryEvent.
RepositoryEvent(java.lang.Object source, int numberOfArguments, java.lang.String command, java.lang.String className)
          Construct a RepositoryEvent.
RepositoryEvent(java.lang.Object source, java.lang.String command)
          Construct a RepositoryEvent.
RepositoryEvent(java.lang.Object source, java.lang.String command, java.lang.String className)
          Construct a RepositoryEvent.
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getCommand()
          Retrieve the command.
 int getNumberOfArguments()
          Request the number of arguments in the "repository" command.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numberOfArguments

protected int numberOfArguments

LIST

public static final java.lang.String LIST
A command value

See Also:
Constant Field Values

GET

public static final java.lang.String GET
A command value

See Also:
Constant Field Values

GET_GLOBAL

public static final java.lang.String GET_GLOBAL
A command value

See Also:
Constant Field Values

GET_LAZY

public static final java.lang.String GET_LAZY
A command value

See Also:
Constant Field Values

GET_LAZY_GLOBAL

public static final java.lang.String GET_LAZY_GLOBAL
A command value

See Also:
Constant Field Values

command

protected java.lang.String command

className

protected java.lang.String className
Constructor Detail

RepositoryEvent

public RepositoryEvent(java.lang.Object source)
Construct a RepositoryEvent. An entity can use this event to request a list of all components that are in the repository.

Parameters:
source - The entity that created this event.

RepositoryEvent

public RepositoryEvent(java.lang.Object source,
                       java.lang.String command)
Construct a RepositoryEvent. An entity can use this event to request a list of all components that are in the repository.

Parameters:
source - The entity that created this event.
command - the command. The command must be LIST.

RepositoryEvent

public RepositoryEvent(java.lang.Object source,
                       int numberOfArguments,
                       java.lang.String command)
Construct a RepositoryEvent. An entity can use this event to request a list of all components that are in the repository.

Parameters:
source - The entity that created this event.
numberOfArguments - The number of arguments in the command line.
command - the command. The command must be LIST.

RepositoryEvent

public RepositoryEvent(java.lang.Object source,
                       java.lang.String command,
                       java.lang.String className)
Construct a RepositoryEvent. An entity can use this event to request a list of all components that are in the repository or to request one specific component.

Parameters:
source - The entity that created this event.
command - the command. The command can be one of the following values: LIST, GET, GET_GLOBAL, GET_LAZY, GET_LAZY_GLOBAL
className - If we are retrieving the value of one class, then we need the name of the class.

RepositoryEvent

public RepositoryEvent(java.lang.Object source,
                       int numberOfArguments,
                       java.lang.String command,
                       java.lang.String className)
Construct a RepositoryEvent. An entity can use this event to request a list of all components that are in the repository or to request one specific component.

Parameters:
source - The entity that created this event.
numberOfArguments - The number of arguments in the command line.
command - the command. The command can be one of the following values: LIST, GET, GET_GLOBAL, GET_LAZY, GET_LAZY_GLOBAL
className - If we are retrieving the value of one class, then we need the name of the class.
Method Detail

getNumberOfArguments

public int getNumberOfArguments()
Request the number of arguments in the "repository" command.

Returns:
The number of arguments in the "repository" command.

getCommand

public java.lang.String getCommand()
Retrieve the command. The command can be one of the following values: LIST, GET, GET_GLOBAL, GET_LAZY, GET_LAZY_GLOBAL

Returns:
The command. The command can be one of the following values: LIST, GET, GET_GLOBAL, GET_LAZY, GET_LAZY_GLOBAL

getClassName

public java.lang.String getClassName()