Package com.deltaxml.core
Class DXPParameterDefinition<T extends Comparable<?>>
java.lang.Object
com.deltaxml.core.DXPParameterDefinition<T>
- Type Parameters:
T- The type of parameter (e.g. String or Boolean).
- All Implemented Interfaces:
Comparable<DXPParameterDefinition<?>>
public class DXPParameterDefinition<T extends Comparable<?>>
extends Object
implements Comparable<DXPParameterDefinition<?>>
A comparison parameter definition.
- Author:
- anthonys
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA utility class for identifying the space required to display a list of parameter definitions. -
Constructor Summary
ConstructorsConstructorDescriptionDXPParameterDefinition(String name, T defaultValue, String description) Create a parameter with a given name, default value and description. -
Method Summary
Modifier and TypeMethodDescriptionintTotal order of two parameter objects, where objects primary order is by name.booleanOverrides the defaultequalsmethod.Get the parameter's default value.Get the parameter's description.getName()Get the parameter's name.inthashCode()Overrides the defaulthashCodemethod.voidsetDescription(String description) Set the parameters description.toString()Overrides the defaulttoStringmethod.
-
Constructor Details
-
DXPParameterDefinition
Create a parameter with a given name, default value and description.- Parameters:
name- The parameter's name.defaultValue- The parameter's default value.description- A short description of what the parameter does.
-
-
Method Details
-
getName
Get the parameter's name.- Returns:
- The parameter's name.
-
getDefaultValue
Get the parameter's default value.- Returns:
- The parameter's default value.
-
getDescription
Get the parameter's description.- Returns:
- The parameter's description.
-
setDescription
Set the parameters description.- Parameters:
description- The parameter's description.
-
compareTo
Total order of two parameter objects, where objects primary order is by name.- Specified by:
compareToin interfaceComparable<T extends Comparable<?>>- Parameters:
p-- Returns:
-
equals
Overrides the defaultequalsmethod. -
hashCode
public int hashCode()Overrides the defaulthashCodemethod. -
toString
Overrides the defaulttoStringmethod.
-