public class DocumentParameter extends Object implements Serializable, Cloneable
Parameters specified in the SSM document that execute on the server when the command is run.
Constructor and Description |
---|
DocumentParameter() |
Modifier and Type | Method and Description |
---|---|
DocumentParameter |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultValue()
If specified, the default values for the parameters.
|
String |
getDescription()
A description of what the parameter does, how to use it, the default
value, and whether or not the parameter is optional.
|
String |
getName()
The name of the parameter.
|
String |
getType()
The type of parameter.
|
int |
hashCode() |
void |
setDefaultValue(String defaultValue)
If specified, the default values for the parameters.
|
void |
setDescription(String description)
A description of what the parameter does, how to use it, the default
value, and whether or not the parameter is optional.
|
void |
setName(String name)
The name of the parameter.
|
void |
setType(DocumentParameterType type)
The type of parameter.
|
void |
setType(String type)
The type of parameter.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DocumentParameter |
withDefaultValue(String defaultValue)
If specified, the default values for the parameters.
|
DocumentParameter |
withDescription(String description)
A description of what the parameter does, how to use it, the default
value, and whether or not the parameter is optional.
|
DocumentParameter |
withName(String name)
The name of the parameter.
|
DocumentParameter |
withType(DocumentParameterType type)
The type of parameter.
|
DocumentParameter |
withType(String type)
The type of parameter.
|
public void setName(String name)
The name of the parameter.
name
- The name of the parameter.public String getName()
The name of the parameter.
public DocumentParameter withName(String name)
The name of the parameter.
name
- The name of the parameter.public void setType(String type)
The type of parameter. The type can be either “String” or “StringList”.
type
- The type of parameter. The type can be either “String” or
“StringList”.DocumentParameterType
public String getType()
The type of parameter. The type can be either “String” or “StringList”.
DocumentParameterType
public DocumentParameter withType(String type)
The type of parameter. The type can be either “String” or “StringList”.
type
- The type of parameter. The type can be either “String” or
“StringList”.DocumentParameterType
public void setType(DocumentParameterType type)
The type of parameter. The type can be either “String” or “StringList”.
type
- The type of parameter. The type can be either “String” or
“StringList”.DocumentParameterType
public DocumentParameter withType(DocumentParameterType type)
The type of parameter. The type can be either “String” or “StringList”.
type
- The type of parameter. The type can be either “String” or
“StringList”.DocumentParameterType
public void setDescription(String description)
A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
description
- A description of what the parameter does, how to use it, the
default value, and whether or not the parameter is optional.public String getDescription()
A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
public DocumentParameter withDescription(String description)
A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
description
- A description of what the parameter does, how to use it, the
default value, and whether or not the parameter is optional.public void setDefaultValue(String defaultValue)
If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
defaultValue
- If specified, the default values for the parameters. Parameters
without a default value are required. Parameters with a default
value are optional.public String getDefaultValue()
If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
public DocumentParameter withDefaultValue(String defaultValue)
If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
defaultValue
- If specified, the default values for the parameters. Parameters
without a default value are required. Parameters with a default
value are optional.public String toString()
toString
in class Object
Object.toString()
public DocumentParameter clone()
Copyright © 2016. All rights reserved.