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 String
Designate the param to act as default@NotNull String
Null-safe accessor forgetDefault()
protected String
Return the default tag for a gom element.@Nullable String
Designate the param to be hidden@NotNull String
Null-safe accessor forgetHidden()
()}getLabel()
The label to be usedgetName()
Name of the parametergetValue()
The value bound to the paramint
hashCode()
void
setDefault
(String dflt) Designate the param to act as defaultvoid
Designate the param to be hiddenvoid
Sets the label to be usedvoid
Sets the name of the parametervoid
Sets the value bound to the paramvoid
validate
(GomCheckable.Context context) Validate the element against the given context.void
verify()
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:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in 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:GomCheckable
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- Throws:
IllegalStateException
- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckable
Validate the element against the given context.- Specified by:
validate
in interfaceGomCheckable
- Parameters:
context
- The context to validate for, must not benull
.- Throws:
GomValidationError
- If the element is not plausible wrt. its context.
-