Package org.intermine.web.struts
Class TemplateForm
- java.lang.Object
-
- org.apache.struts.action.ActionForm
-
- org.intermine.web.struts.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
-
-
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 opsjava.lang.Object
getAttributeOps(java.lang.String key)
Get an attribute opjava.util.Map<java.lang.String,java.lang.Object>
getAttributeValues()
Get the attribute valuesjava.lang.Object
getAttributeValues(java.lang.String key)
Get an attribute valuejava.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 valuesjava.lang.Object
getExtraValues(java.lang.String key)
Get an extra valuejava.lang.String
getMultiValueAttribute(java.lang.String key)
Returns the multivalueattribute given a keyjava.util.Map<java.lang.String,java.lang.String[]>
getMultiValues()
Returns the multiValuesjava.lang.String[]
getMultiValues(java.lang.String key)
Get a multi valuejava.lang.String
getName()
Get the template name.java.util.Map<java.lang.String,java.lang.Object>
getNullConstraint()
Get the nullConstraintjava.lang.Object
getNullConstraint(java.lang.String key)
Get a nullConstraintjava.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 formvoid
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 opvoid
setAttributeOps(java.util.Map<java.lang.String,java.lang.Object> attributeOps)
Set the attribute opsvoid
setAttributeValues(java.lang.String key, java.lang.Object value)
Set an attribute valuevoid
setAttributeValues(java.util.Map<java.lang.String,java.lang.Object> attributeValues)
Set the attribute valuesvoid
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 valuevoid
setExtraValues(java.util.Map<java.lang.String,java.lang.Object> extraValues)
Sets the extra valuesvoid
setMultiValueAttribute(java.lang.String key, java.lang.String value)
Set the multivalueattributevoid
setMultiValues(java.lang.String key, java.lang.String[] values)
Set a multiselect attribute valuevoid
setMultiValues(java.util.Map<java.lang.String,java.lang.String[]> multiValues)
Set the multiValuesvoid
setName(java.lang.String templateName)
Set the template name.void
setNullConstraint(java.lang.String key, java.lang.String value)
Set a nullConstraintvoid
setNullConstraint(java.util.Map<java.lang.String,java.lang.Object> nullConstraint)
Set the nullConstraintvoid
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.
-
-
-
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 keyvalue
- 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 keyvalue
- 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 keyvalue
- 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 keyvalues
- 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 keyvalue
- 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 keyvalue
- 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 keyvalue
- 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 keybag
- 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 selectedkey
- 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 keyswitchOffAbility
- the switchOffAbility
-
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Overrides:
reset
in classorg.apache.struts.action.ActionForm
-
reset
protected void reset()
Reset the form
-
-