|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbif.datatester.ParameterMetadata
public class ParameterMetadata
Class to store metadata about test parameters.
| Constructor Summary | |
|---|---|
ParameterMetadata(DataTest dataTest,
java.lang.String name)
Constructs a ParameterMetadata implicitly assuming that the parameter is mandatory. |
|
ParameterMetadata(DataTest dataTest,
java.lang.String name,
java.lang.String defaultValue)
Constructs a ParameterMetadata implicitly assuming that the parameter is optional by specifying a default value. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDefaultValue()
Returns the default value for the parameter (null if it's a mandatory parameter). |
java.lang.String |
getDescription()
Returns the parameter description or an empty string if the corresponding key was not found in the resource bundle. |
java.lang.String |
getName()
Returns the parameter name. |
boolean |
isMandatory()
Tells if the parameter is mandatory or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterMetadata(DataTest dataTest,
java.lang.String name)
Constructs a ParameterMetadata implicitly assuming that the parameter is mandatory.
dataTest - Reference to the related data test.name - Parameter name (id).
public ParameterMetadata(DataTest dataTest,
java.lang.String name,
java.lang.String defaultValue)
Constructs a ParameterMetadata implicitly assuming that the parameter is optional by specifying a default value.
dataTest - Reference to the related data test.name - Parameter name (id).defaultValue - Default value.| Method Detail |
|---|
public java.lang.String getName()
Returns the parameter name.
Note that name here works as an identifier, so it is considered to be independent from language.
public java.lang.String getDescription()
Returns the parameter description or an empty string if the corresponding key was not found in the resource bundle.
public boolean isMandatory()
Tells if the parameter is mandatory or not.
public java.lang.String getDefaultValue()
Returns the default value for the parameter (null if it's a mandatory parameter).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||