Package de.gebit.integrity.fixtures
Class ArbitraryParameterEnumerator.ArbitraryParameterDefinition
java.lang.Object
de.gebit.integrity.fixtures.ArbitraryParameterEnumerator.ArbitraryParameterDefinition
- Enclosing interface:
ArbitraryParameterEnumerator
A container for the definition of one arbitrary parameter.
- Author:
- Rene Schneider - initial API and implementation
-
Constructor Summary
ConstructorsConstructorDescriptionArbitraryParameterDefinition(String aName, String aDescription) Creates a new instance.ArbitraryParameterDefinition(String aName, String aDescription, ArbitraryParameterEnumerator.ArbitraryParameterSuffix aSuffix, boolean anIsNestedObjectParamFlag) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a subdefinition.getName()getSubdefinitionByName(String aName) Searches a subdefinition by name.getSubdefinitionByPath(List<String> aPath) Resolves a path of subdefinitions starting with the current definition (which must be the root of the path!).booleanChecks whether this definition has any subdefinitions.booleanvoidsetDescription(String aDescription) voidvoidsetNestedObjectParam(boolean aNestedObjectParam) void
-
Constructor Details
-
ArbitraryParameterDefinition
Creates a new instance.- Parameters:
aName- The parameter nameaDescription- The description for content assist
-
ArbitraryParameterDefinition
public ArbitraryParameterDefinition(String aName, String aDescription, ArbitraryParameterEnumerator.ArbitraryParameterSuffix aSuffix, boolean anIsNestedObjectParamFlag) Creates a new instance.- Parameters:
aName- The parameter nameaDescription- The description for content assistaSuffix- What to add after the parameter.anIsNestedObjectParamFlag- Whether this is a parameter that will contain a nested object.
-
-
Method Details
-
getName
-
getDescription
-
getSuffix
-
isNestedObjectParam
public boolean isNestedObjectParam() -
setName
-
setDescription
-
setSuffix
-
setNestedObjectParam
public void setNestedObjectParam(boolean aNestedObjectParam) -
addSubdefinition
public void addSubdefinition(ArbitraryParameterEnumerator.ArbitraryParameterDefinition aSubdefinition) Adds a subdefinition.- Parameters:
aSubdefinition- the subdefinition to add
-
getSubdefinitions
-
hasSubdefinitions
public boolean hasSubdefinitions()Checks whether this definition has any subdefinitions.- Returns:
- true if subdefinitions are present
-
getSubdefinitionByName
public ArbitraryParameterEnumerator.ArbitraryParameterDefinition getSubdefinitionByName(String aName) Searches a subdefinition by name.- Parameters:
aName- the name to search for- Returns:
- the subdefinition or null if not found
-
getSubdefinitionByPath
public ArbitraryParameterEnumerator.ArbitraryParameterDefinition getSubdefinitionByPath(List<String> aPath) Resolves a path of subdefinitions starting with the current definition (which must be the root of the path!).- Parameters:
aPath- the path to follow- Returns:
- the subdefinition at the end of the path, or null if none was found
-