Top Description Fields Constructors Methods
com.sun.management.internal

pack-priv Class DiagnosticCommandArgumentInfo

extends Object
Class Inheritance

Diagnostic Command Argument information. It contains the description of one parameter of the diagnostic command. A parameter can either be an option or an argument. Options are identified by the option name while arguments are identified by their position in the command line. The generic syntax of a diagnostic command is:
<command name> [<option>=<value>] [<argument_value>]
Example:
command_name option1=value1 option2=value argumentA argumentB argumentC
In this command line, the diagnostic command receives five parameters, two options named option1 and option2, and three arguments. argumentA's position is 0, argumentB's position is 1 and argumentC's position is 2.
Since
1.8

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final boolean
private final boolean
private final String
private final boolean
private final int
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
DiagnosticCommandArgumentInfo(String name, String description, String type, String defaultValue, boolean mandatory, boolean option, boolean multiple, int position)

Method Summary

Modifier and TypeMethod and Description
pack-priv String

Returns:

the default value as a String if a default value is defined, null otherwise.
getDefault
()

Returns the default value as a String if a default value is defined, null otherwise.

pack-priv String

Returns:

the argument description
getDescription
()

Returns the argument description.

pack-priv String

Returns:

the argument name
getName
()

Returns the argument name.

pack-priv int

Returns:

the expected position of this argument if it is not an option, -1 otherwise.
getPosition
()

Returns the expected position of this argument if it is not an option, -1 otherwise.

pack-priv String

Returns:

the argument type
getType
()

Returns the argument type.

pack-priv boolean

Returns:

true if the argument is mandatory, false otherwise
isMandatory
()

Returns true if the argument is mandatory, false otherwise.

pack-priv boolean

Returns:

true if the argument can be specified multiple times, false otherwise
isMultiple
()

Returns true if the argument can be specified multiple times, false otherwise.

pack-priv boolean

Returns:

true if the argument is an option, false otherwise
isOption
()

Returns true if the argument is an option, false otherwise.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultValueback to summary
private final String defaultValue
descriptionback to summary
private final String description
mandatoryback to summary
private final boolean mandatory
multipleback to summary
private final boolean multiple
nameback to summary
private final String name
optionback to summary
private final boolean option
positionback to summary
private final int position
typeback to summary
private final String type

Constructor Detail

DiagnosticCommandArgumentInfoback to summary
pack-priv DiagnosticCommandArgumentInfo(String name, String description, String type, String defaultValue, boolean mandatory, boolean option, boolean multiple, int position)

Method Detail

getDefaultback to summary
pack-priv String getDefault()

Returns the default value as a String if a default value is defined, null otherwise.

Returns:String

the default value as a String if a default value is defined, null otherwise.

getDescriptionback to summary
pack-priv String getDescription()

Returns the argument description.

Returns:String

the argument description

getNameback to summary
pack-priv String getName()

Returns the argument name.

Returns:String

the argument name

getPositionback to summary
pack-priv int getPosition()

Returns the expected position of this argument if it is not an option, -1 otherwise. Argument position if defined from left to right, starting at zero and ignoring the diagnostic command name and options.

Returns:int

the expected position of this argument if it is not an option, -1 otherwise.

getTypeback to summary
pack-priv String getType()

Returns the argument type.

Returns:String

the argument type

isMandatoryback to summary
pack-priv boolean isMandatory()

Returns true if the argument is mandatory, false otherwise.

Returns:boolean

true if the argument is mandatory, false otherwise

isMultipleback to summary
pack-priv boolean isMultiple()

Returns true if the argument can be specified multiple times, false otherwise.

Returns:boolean

true if the argument can be specified multiple times, false otherwise

isOptionback to summary
pack-priv boolean isOption()

Returns true if the argument is an option, false otherwise. Options have to be specified using the <key>=<value> syntax on the command line, while other arguments are specified with a single <value> field and are identified by their position on command line.

Returns:boolean

true if the argument is an option, false otherwise