org.openmdx.base.application.control
Class CmdLineEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openmdx.base.application.control.CmdLineEvent
All Implemented Interfaces:
Serializable

public class CmdLineEvent
extends EventObject

Implements a command line event that application may handle

See Also:
Serialized Form

Field Summary
static int CMDLINE_BAD_ARGS
          Event type: CMDLINE_BAD_ARGS
static int CMDLINE_HELP_REQUEST
          Event type: CMDLINE_HELP_REQUEST
static int CMDLINE_TRACE
          Event type: CMDLINE_TRACE
static int CMDLINE_VERSION_REQUEST
          Event type: CMDLINE_VERSION_REQUEST
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CmdLineEvent(Object source, int type, String info)
          Creates a new command line event
 
Method Summary
 String toString()
          Returns a String representation of this CmdLineEvent
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CMDLINE_BAD_ARGS

public static final int CMDLINE_BAD_ARGS
Event type: CMDLINE_BAD_ARGS

The command line parsing failed to due wrong/missing command line parameters. The event info holds a formatted usage text.

See Also:
Constant Field Values

CMDLINE_HELP_REQUEST

public static final int CMDLINE_HELP_REQUEST
Event type: CMDLINE_HELP_REQUEST

The caller requested a help text. The event info holds a formatted help text.

See Also:
Constant Field Values

CMDLINE_VERSION_REQUEST

public static final int CMDLINE_VERSION_REQUEST
Event type: CMDLINE_VERSION_REQUEST

The caller requested the application's version. The event info holds the version info.

See Also:
Constant Field Values

CMDLINE_TRACE

public static final int CMDLINE_TRACE
Event type: CMDLINE_TRACE

A command line parser trace message if the command line parser trace is activated. The event info holds a trace message.

See Also:
Constant Field Values
Constructor Detail

CmdLineEvent

public CmdLineEvent(Object source,
                    int type,
                    String info)
Creates a new command line event

Parameters:
source -
type -
text -
Method Detail

toString

public String toString()
Returns a String representation of this CmdLineEvent

Overrides:
toString in class EventObject
See Also:
Object.toString()


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.