Class TemplateForm

  • All Implemented Interfaces:
    java.io.Serializable

    public class TemplateForm
    extends org.apache.struts.action.ActionForm
    Form to handle input from the template page
    Author:
    Mark Woodbridge
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.struts.action.ActionForm

        multipartRequestHandler, servlet
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateForm()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getAttributeOps()
      Get the attribute ops
      java.lang.Object getAttributeOps​(java.lang.String key)
      Get an attribute op
      java.util.Map<java.lang.String,​java.lang.Object> getAttributeValues()
      Get the attribute values
      java.lang.Object getAttributeValues​(java.lang.String key)
      Get an attribute value
      java.lang.Object getBag​(java.lang.String key)
      Get the bag name selected.
      java.lang.String getBagOp​(java.lang.String key)
      Get the bag operation selected.
      java.util.Map<java.lang.String,​java.lang.Object> getExtraValues()
      Get the extra values
      java.lang.Object getExtraValues​(java.lang.String key)
      Get an extra value
      java.lang.String getMultiValueAttribute​(java.lang.String key)
      Returns the multivalueattribute given a key
      java.util.Map<java.lang.String,​java.lang.String[]> getMultiValues()
      Returns the multiValues
      java.lang.String[] getMultiValues​(java.lang.String key)
      Get a multi value
      java.lang.String getName()
      Get the template name.
      java.util.Map<java.lang.String,​java.lang.Object> getNullConstraint()
      Get the nullConstraint
      java.lang.Object getNullConstraint​(java.lang.String key)
      Get a nullConstraint
      java.lang.String getScope()
      Get the template scope.
      java.lang.String getSwitchOff​(java.lang.String key)
      Get the SwitchOff ability.
      boolean getUseBagConstraint​(java.lang.String key)
      Get the value of useBagConstraint for given constraint key.
      java.lang.String getView()
      Get the selected alternative view name.
      protected void reset()
      Reset the form
      void reset​(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      void setAttributeOps​(java.lang.String key, java.lang.String value)
      Set an attribute op
      void setAttributeOps​(java.util.Map<java.lang.String,​java.lang.Object> attributeOps)
      Set the attribute ops
      void setAttributeValues​(java.lang.String key, java.lang.Object value)
      Set an attribute value
      void setAttributeValues​(java.util.Map<java.lang.String,​java.lang.Object> attributeValues)
      Set the attribute values
      void setBag​(java.lang.String key, java.lang.Object bag)
      Set the bag name.
      void setBagOp​(java.lang.String key, java.lang.String bagOp)
      Set bag operation.
      void setExtraValues​(java.lang.String key, java.lang.Object value)
      Set an extra value
      void setExtraValues​(java.util.Map<java.lang.String,​java.lang.Object> extraValues)
      Sets the extra values
      void setMultiValueAttribute​(java.lang.String key, java.lang.String value)
      Set the multivalueattribute
      void setMultiValues​(java.lang.String key, java.lang.String[] values)
      Set a multiselect attribute value
      void setMultiValues​(java.util.Map<java.lang.String,​java.lang.String[]> multiValues)
      Set the multiValues
      void setName​(java.lang.String templateName)
      Set the template name.
      void setNullConstraint​(java.lang.String key, java.lang.String value)
      Set a nullConstraint
      void setNullConstraint​(java.util.Map<java.lang.String,​java.lang.Object> nullConstraint)
      Set the nullConstraint
      void setScope​(java.lang.String scope)
      Set the template scope.
      void setSwitchOff​(java.lang.String key, java.lang.String switchOffAbility)
      Set the SwitchOff ability.
      void setUseBagConstraint​(java.lang.String key, boolean value)
      Set value of useBagConstraint for given constraint key.
      void setView​(java.lang.String view)
      Set the selected alternative view name.
      • Methods inherited from class org.apache.struts.action.ActionForm

        getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemplateForm

        public TemplateForm()
        Constructor
    • Method Detail

      • setAttributeOps

        public void setAttributeOps​(java.util.Map<java.lang.String,​java.lang.Object> attributeOps)
        Set the attribute ops
        Parameters:
        attributeOps - the attribute ops
      • getAttributeOps

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributeOps()
        Get the attribute ops
        Returns:
        the attribute ops
      • setAttributeOps

        public void setAttributeOps​(java.lang.String key,
                                    java.lang.String value)
        Set an attribute op
        Parameters:
        key - the key
        value - the value
      • getAttributeOps

        public java.lang.Object getAttributeOps​(java.lang.String key)
        Get an attribute op
        Parameters:
        key - the key
        Returns:
        the value
      • setNullConstraint

        public void setNullConstraint​(java.util.Map<java.lang.String,​java.lang.Object> nullConstraint)
        Set the nullConstraint
        Parameters:
        nullConstraint - the nullConstraint
      • getNullConstraint

        public java.util.Map<java.lang.String,​java.lang.Object> getNullConstraint()
        Get the nullConstraint
        Returns:
        the nullConstraint
      • setNullConstraint

        public void setNullConstraint​(java.lang.String key,
                                      java.lang.String value)
        Set a nullConstraint
        Parameters:
        key - the key
        value - the value
      • getNullConstraint

        public java.lang.Object getNullConstraint​(java.lang.String key)
        Get a nullConstraint
        Parameters:
        key - the key
        Returns:
        the value
      • setAttributeValues

        public void setAttributeValues​(java.util.Map<java.lang.String,​java.lang.Object> attributeValues)
        Set the attribute values
        Parameters:
        attributeValues - the attribute values
      • getAttributeValues

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributeValues()
        Get the attribute values
        Returns:
        the attribute values
      • setAttributeValues

        public void setAttributeValues​(java.lang.String key,
                                       java.lang.Object value)
        Set an attribute value
        Parameters:
        key - the key
        value - the value
      • getAttributeValues

        public java.lang.Object getAttributeValues​(java.lang.String key)
        Get an attribute value
        Parameters:
        key - the key
        Returns:
        the value
      • setMultiValues

        public void setMultiValues​(java.util.Map<java.lang.String,​java.lang.String[]> multiValues)
        Set the multiValues
        Parameters:
        multiValues - the multi values
      • getMultiValues

        public java.util.Map<java.lang.String,​java.lang.String[]> getMultiValues()
        Returns the multiValues
        Returns:
        the map containing the multi values
      • getMultiValues

        public java.lang.String[] getMultiValues​(java.lang.String key)
        Get a multi value
        Parameters:
        key - the key
        Returns:
        the value
      • setMultiValues

        public void setMultiValues​(java.lang.String key,
                                   java.lang.String[] values)
        Set a multiselect attribute value
        Parameters:
        key - the key
        values - the value
      • getMultiValueAttribute

        public java.lang.String getMultiValueAttribute​(java.lang.String key)
        Returns the multivalueattribute given a key
        Parameters:
        key - the key
        Returns:
        multiVAlueAttribute
      • setMultiValueAttribute

        public void setMultiValueAttribute​(java.lang.String key,
                                           java.lang.String value)
        Set the multivalueattribute
        Parameters:
        key - the key
        value - the value
      • setExtraValues

        public void setExtraValues​(java.util.Map<java.lang.String,​java.lang.Object> extraValues)
        Sets the extra values
        Parameters:
        extraValues - the extra values
      • getExtraValues

        public java.util.Map<java.lang.String,​java.lang.Object> getExtraValues()
        Get the extra values
        Returns:
        the extra values
      • setExtraValues

        public void setExtraValues​(java.lang.String key,
                                   java.lang.Object value)
        Set an extra value
        Parameters:
        key - the key
        value - the value
      • getExtraValues

        public java.lang.Object getExtraValues​(java.lang.String key)
        Get an extra value
        Parameters:
        key - the key
        Returns:
        the value
      • setUseBagConstraint

        public void setUseBagConstraint​(java.lang.String key,
                                        boolean value)
        Set value of useBagConstraint for given constraint key.
        Parameters:
        key - the key
        value - the value
      • getUseBagConstraint

        public boolean getUseBagConstraint​(java.lang.String key)
        Get the value of useBagConstraint for given constraint key.
        Parameters:
        key - the key
        Returns:
        the value
      • setBag

        public void setBag​(java.lang.String key,
                           java.lang.Object bag)
        Set the bag name.
        Parameters:
        key - the key
        bag - bag name
      • getBag

        public java.lang.Object getBag​(java.lang.String key)
        Get the bag name selected.
        Parameters:
        key - the key
        Returns:
        the bag selected
      • getBagOp

        public java.lang.String getBagOp​(java.lang.String key)
        Get the bag operation selected.
        Parameters:
        key - the key
        Returns:
        the bag operation selected
      • setBagOp

        public void setBagOp​(java.lang.String key,
                             java.lang.String bagOp)
        Set bag operation.
        Parameters:
        bagOp - the bag operation selected
        key - the key
      • getName

        public java.lang.String getName()
        Get the template name.
        Returns:
        the template name
      • setName

        public void setName​(java.lang.String templateName)
        Set the template name.
        Parameters:
        templateName - the template name
      • getView

        public java.lang.String getView()
        Get the selected alternative view name.
        Returns:
        selected alternative view name
      • setView

        public void setView​(java.lang.String view)
        Set the selected alternative view name.
        Parameters:
        view - selected alternative view name
      • getScope

        public java.lang.String getScope()
        Get the template scope.
        Returns:
        the template scope
      • setScope

        public void setScope​(java.lang.String scope)
        Set the template scope.
        Parameters:
        scope - the template scope
      • getSwitchOff

        public java.lang.String getSwitchOff​(java.lang.String key)
        Get the SwitchOff ability.
        Parameters:
        key - the key
        Returns:
        the SwitchOff
      • setSwitchOff

        public void setSwitchOff​(java.lang.String key,
                                 java.lang.String switchOffAbility)
        Set the SwitchOff ability.
        Parameters:
        key - the key
        switchOffAbility - the switchOffAbility
      • reset

        public void reset​(org.apache.struts.action.ActionMapping mapping,
                          javax.servlet.http.HttpServletRequest request)
        Overrides:
        reset in class org.apache.struts.action.ActionForm
      • reset

        protected void reset()
        Reset the form