T
- The type of parameter (e.g. String or Boolean).public class DXPParameterDefinition<T extends java.lang.Comparable<?>> extends java.lang.Object implements java.lang.Comparable<DXPParameterDefinition<?>>
Modifier and Type | Class and Description |
---|---|
static class |
DXPParameterDefinition.FormatInfo
A utility class for identifying the space required to display a list of parameter definitions.
|
Constructor and Description |
---|
DXPParameterDefinition(java.lang.String name,
T defaultValue,
java.lang.String description)
Create a parameter with a given name, default value and description.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DXPParameterDefinition<?> p)
Total order of two parameter objects, where objects primary order is by name.
|
boolean |
equals(java.lang.Object o)
Overrides the default
equals method. |
T |
getDefaultValue()
Get the parameter's default value.
|
java.lang.String |
getDescription()
Get the parameter's description.
|
java.lang.String |
getName()
Get the parameter's name.
|
int |
hashCode()
Overrides the default
hashCode method. |
void |
setDescription(java.lang.String description)
Set the parameters description.
|
java.lang.String |
toString()
Overrides the default
toString method. |
public DXPParameterDefinition(java.lang.String name, T defaultValue, java.lang.String description)
name
- The parameter's name.defaultValue
- The parameter's default value.description
- A short description of what the parameter does.public java.lang.String getName()
public T getDefaultValue()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The parameter's description.public int compareTo(DXPParameterDefinition<?> p)
compareTo
in interface java.lang.Comparable<DXPParameterDefinition<?>>
p
- public boolean equals(java.lang.Object o)
equals
method.equals
in class java.lang.Object
o
- public int hashCode()
hashCode
method.hashCode
in class java.lang.Object
public java.lang.String toString()
toString
method.toString
in class java.lang.Object