com.bea.jvm
Class DiagnosticCommand.Parameter

java.lang.Object
  extended by com.bea.jvm.DiagnosticCommand.Parameter
All Implemented Interfaces:
Describable
Enclosing class:
DiagnosticCommand

public static class DiagnosticCommand.Parameter
extends java.lang.Object
implements Describable

Describes a parameter to a Diagnostic Command

Author:
calle
See Also:
DiagnosticCommand.Command, DiagnosticCommand.Command.getParameters()

Constructor Summary
DiagnosticCommand.Parameter(java.lang.String name, boolean value)
          Create a parameter for use in execution of a DiagnosticCommand.Command
DiagnosticCommand.Parameter(java.lang.String name, double value)
          Create a parameter for use in execution of a DiagnosticCommand.Command
DiagnosticCommand.Parameter(java.lang.String name, int value)
          Create a parameter for use in execution of a DiagnosticCommand.Command
DiagnosticCommand.Parameter(java.lang.String name, long value)
          Create a parameter for use in execution of a DiagnosticCommand.Command
DiagnosticCommand.Parameter(java.lang.String name, java.lang.Object value)
          Create a parameter for use in execution of a DiagnosticCommand.Command
DiagnosticCommand.Parameter(java.lang.String name, java.lang.String value)
          Create a parameter for use in execution of a DiagnosticCommand.Command
 
Method Summary
 java.lang.Object getDefaultValue()
           
 java.lang.String getDescription()
          Describes a Parameter.
 java.lang.String getName()
           
 int getType()
           
 java.lang.Class getTypeClass()
           
 java.lang.Object getValue()
           
 boolean isRequired()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiagnosticCommand.Parameter

public DiagnosticCommand.Parameter(java.lang.String name,
                                   int value)
Create a parameter for use in execution of a DiagnosticCommand.Command

Parameters:
name -
value -
See Also:
DiagnosticCommand.Command.execute(Collection), DiagnosticCommand.Command.execute(Collection, OutputStream), DiagnosticCommand.Command.executeDefault(Collection)

DiagnosticCommand.Parameter

public DiagnosticCommand.Parameter(java.lang.String name,
                                   long value)
Create a parameter for use in execution of a DiagnosticCommand.Command

Parameters:
name -
value -
See Also:
DiagnosticCommand.Command.execute(Collection), DiagnosticCommand.Command.execute(Collection, OutputStream), DiagnosticCommand.Command.executeDefault(Collection)

DiagnosticCommand.Parameter

public DiagnosticCommand.Parameter(java.lang.String name,
                                   double value)
Create a parameter for use in execution of a DiagnosticCommand.Command

Parameters:
name -
value -
See Also:
DiagnosticCommand.Command.execute(Collection), DiagnosticCommand.Command.execute(Collection, OutputStream), DiagnosticCommand.Command.executeDefault(Collection)

DiagnosticCommand.Parameter

public DiagnosticCommand.Parameter(java.lang.String name,
                                   boolean value)
Create a parameter for use in execution of a DiagnosticCommand.Command

Parameters:
name -
value -
See Also:
DiagnosticCommand.Command.execute(Collection), DiagnosticCommand.Command.execute(Collection, OutputStream), DiagnosticCommand.Command.executeDefault(Collection)

DiagnosticCommand.Parameter

public DiagnosticCommand.Parameter(java.lang.String name,
                                   java.lang.Object value)
Create a parameter for use in execution of a DiagnosticCommand.Command

Parameters:
name -
value -
See Also:
DiagnosticCommand.Command.execute(Collection), DiagnosticCommand.Command.execute(Collection, OutputStream), DiagnosticCommand.Command.executeDefault(Collection)

DiagnosticCommand.Parameter

public DiagnosticCommand.Parameter(java.lang.String name,
                                   java.lang.String value)
Create a parameter for use in execution of a DiagnosticCommand.Command

Parameters:
name -
value -
See Also:
DiagnosticCommand.Command.execute(Collection), DiagnosticCommand.Command.execute(Collection, OutputStream), DiagnosticCommand.Command.executeDefault(Collection)
Method Detail

getDescription

public java.lang.String getDescription()
Describes a Parameter.

Specified by:
getDescription in interface Describable
Returns:
the description as a String.
See Also:
DiagnosticCommand.Command.getParameters()

getName

public java.lang.String getName()

getType

public int getType()
Returns:
A descriptor char for the java type mapping

getDefaultValue

public java.lang.Object getDefaultValue()
Returns:
The default value for this parameter, if acquired by DiagnosticCommand.Command.getParameters(). Otherwise the current value.

getValue

public java.lang.Object getValue()
Returns:
The value of this Parameter if created by user, otherwise the default value.

isRequired

public boolean isRequired()

getTypeClass

public java.lang.Class getTypeClass()
Returns:
The java type for this parameter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999, 2008, Oracle and/or its affiliates. All rights reserved.