Class GomGenericParam
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomGenericParam
- All Implemented Interfaces:
GomCheckable,GomElement,Serializable
Old style parameter definition for link configurations.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringDesignate the param to act as default@NotNull StringNull-safe accessor forgetDefault()protected StringReturn the default tag for a gom element.@Nullable StringDesignate the param to be hidden@NotNull StringNull-safe accessor forgetHidden()()}getLabel()The label to be usedgetName()Name of the parametergetValue()The value bound to the paraminthashCode()voidsetDefault(String dflt) Designate the param to act as defaultvoidDesignate the param to be hiddenvoidSets the label to be usedvoidSets the name of the parametervoidSets the value bound to the paramvoidvalidate(GomCheckable.Context context) Validate the element against the given context.voidverify()Verify the element to be fulfill its syntactic constraints.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Constructor Details
-
GomGenericParam
public GomGenericParam()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomElementReturn the default tag for a gom element.- Specified by:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
-
getName
Name of the parameter- Since:
- 2.0
-
setName
Sets the name of the parameter- Since:
- 2.0
-
getDefaultNotNull
Null-safe accessor forgetDefault()- Returns:
- the value of
getDefault()or "0" if it isnull - Since:
- 4.0
-
getDefault
Designate the param to act as default- Since:
- 2.0
-
setDefault
Designate the param to act as default- Since:
- 2.0
-
getHiddenNotNull
Null-safe accessor forgetHidden()()}- Returns:
- the value of
getHidden()or "0" if it isnull - Since:
- 4.0
-
getHidden
Designate the param to be hidden- Since:
- 2.0
-
setHidden
Designate the param to be hidden- Since:
- 2.0
-
getValue
The value bound to the param- Since:
- 2.0
-
setValue
Sets the value bound to the param- Since:
- 2.0
-
getLabel
The label to be used- Since:
- 2.0
-
setLabel
Sets the label to be used- Since:
- 2.0
-
equals
-
hashCode
public int hashCode() -
verify
Description copied from interface:GomCheckableVerify the element to be fulfill its syntactic constraints.- Specified by:
verifyin interfaceGomCheckable- Throws:
IllegalStateException- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckableValidate the element against the given context.- Specified by:
validatein interfaceGomCheckable- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- If the element is not plausible wrt. its context.
-