public class OperationLoaderArgument extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BOOLEAN
Indicates the argument type is a boolean
|
static int |
TYPE_FILE
Indicates the argument type is a string denoting a file
|
static int |
TYPE_LONG
Indicates the argument type is a long
|
static int |
TYPE_STRING
Indicates the argument type is a string
|
Constructor and Description |
---|
OperationLoaderArgument(String name)
Creates a new argument
|
OperationLoaderArgument(String name,
int type)
Creates a new argument
|
OperationLoaderArgument(String name,
String description)
Creates a new argument
|
OperationLoaderArgument(String name,
String description,
int type)
Creates a new argument
|
OperationLoaderArgument(String name,
String description,
int type,
boolean optional)
Creates a new argument
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets a description of the purpose of the argument
|
String |
getName()
Gets a short name for the argument
|
int |
getType()
Gets the expected type of the argument
|
boolean |
isOptional()
Gets whether the argument is optional
|
public static final int TYPE_FILE
public static final int TYPE_LONG
public static final int TYPE_STRING
public static final int TYPE_BOOLEAN
public OperationLoaderArgument(String name)
name
- Short name for the argumentpublic OperationLoaderArgument(String name, int type)
name
- Short name for the argumenttype
- Expected argument typepublic OperationLoaderArgument(String name, String description)
name
- Short name for the argumentdescription
- Description of the purpose of the argumentpublic OperationLoaderArgument(String name, String description, int type)
name
- Short name for the argumentdescription
- Description of the purpose of the argumenttype
- Expected argument typepublic OperationLoaderArgument(String name, String description, int type, boolean optional)
name
- Short name for the argumentdescription
- Description of the purpose of the argumenttype
- Expected argument typeoptional
- Whether the argument is optionalpublic String getName()
public String getDescription()
public boolean isOptional()
public int getType()
Copyright © 2015. All rights reserved.