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

@NonExtendable public class GomGenericParam extends AbstractGomElement implements GomCheckable
Old style parameter definition for link configurations.
Since:
2.0
See Also:
  • Constructor Details

    • GomGenericParam

      public GomGenericParam()
  • Method Details

    • getDefaultTag

      protected String getDefaultTag()
      Description copied from class: AbstractGomElement
      Return the default tag for a gom element.
      Specified by:
      getDefaultTag in class AbstractGomElement
      Returns:
      The elements default tag.
    • getName

      public String getName()
      Name of the parameter
      Since:
      2.0
    • setName

      public void setName(String name)
      Sets the name of the parameter
      Since:
      2.0
    • getDefaultNotNull

      @NotNull public @NotNull String getDefaultNotNull()
      Null-safe accessor for getDefault()
      Returns:
      the value of getDefault() or "0" if it is null
      Since:
      4.0
    • getDefault

      @Nullable public @Nullable String getDefault()
      Designate the param to act as default
      Since:
      2.0
    • setDefault

      public void setDefault(String dflt)
      Designate the param to act as default
      Since:
      2.0
    • getHiddenNotNull

      @NotNull public @NotNull String getHiddenNotNull()
      Null-safe accessor for getHidden() ()}
      Returns:
      the value of getHidden() or "0" if it is null
      Since:
      4.0
    • getHidden

      @Nullable public @Nullable String getHidden()
      Designate the param to be hidden
      Since:
      2.0
    • setHidden

      public void setHidden(String hidden)
      Designate the param to be hidden
      Since:
      2.0
    • getValue

      public String getValue()
      The value bound to the param
      Since:
      2.0
    • setValue

      public void setValue(String value)
      Sets the value bound to the param
      Since:
      2.0
    • getLabel

      public String getLabel()
      The label to be used
      Since:
      2.0
    • setLabel

      public void setLabel(String label)
      Sets the label to be used
      Since:
      2.0
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • verify

      public void verify() throws IllegalStateException
      Description copied from interface: GomCheckable
      Verify the element to be fulfill its syntactic constraints.
      Specified by:
      verify in interface GomCheckable
      Throws:
      IllegalStateException - If the element is not correctly set up.
    • validate

      public void validate(GomCheckable.Context context) throws GomValidationError
      Description copied from interface: GomCheckable
      Validate the element against the given context.
      Specified by:
      validate in interface GomCheckable
      Parameters:
      context - The context to validate for, must not be null.
      Throws:
      GomValidationError - If the element is not plausible wrt. its context.