public class ActionParameters extends Object implements ActionParametersIF
| Constructor and Description |
|---|
ActionParameters(String fieldname,
String[] fieldvalues,
FileValueIF filevalue,
List params,
TopicMapIF topicmap,
WebEdRequestIF request) |
| Modifier and Type | Method and Description |
|---|---|
ActionParametersIF |
cloneAndOverride(List newparams)
EXPERIMENTAL: Creates clones the ActionParametersIF object,
overriding the parameter list to the given list.
|
Object |
get(int ix)
PUBLIC: Returns the value of the numbered parameter as a single
object.
|
boolean |
getBooleanValue()
PUBLIC: Returns true if the parameter value was 'on'; used with
checkboxes to tell if the box was checked or not.
|
Collection |
getCollection(int ix)
PUBLIC: Returns the value of the numbered parameter as a
collection containing all the parameter values.
|
FileValueIF |
getFileValue()
PUBLIC: Returns the parameter value as a file, if it was given as
a file.
|
int |
getParameterCount()
PUBLIC: Returns the number of parameters.
|
WebEdRequestIF |
getRequest()
PUBLIC: Returns the web editor request that triggered this action.
|
String |
getStringValue()
PUBLIC: Returns the string value of the request parameter that
matched this action.
|
String[] |
getStringValues()
PUBLIC: Returns the string values of the request parameter that
matched this action.
|
TMObjectIF |
getTMObjectValue()
PUBLIC: Interprets the string value as a topic map object ID and
returns that topic map object.
|
Collection |
getTMObjectValues()
PUBLIC: Interprets the string value as a set of topic map object
IDs and returns a collection of topic map objects.
|
public ActionParameters(String fieldname, String[] fieldvalues, FileValueIF filevalue, List params, TopicMapIF topicmap, WebEdRequestIF request)
public Object get(int ix)
ActionParametersIFget in interface ActionParametersIFix - The index of the parameter, counting from 0.public Collection getCollection(int ix)
ActionParametersIFgetCollection in interface ActionParametersIFix - The index of the parameter, counting from 0.public int getParameterCount()
ActionParametersIFgetParameterCount in interface ActionParametersIFpublic String getStringValue()
ActionParametersIFgetStringValue in interface ActionParametersIFpublic String[] getStringValues()
ActionParametersIFgetStringValues in interface ActionParametersIFpublic boolean getBooleanValue()
ActionParametersIFgetBooleanValue in interface ActionParametersIFpublic TMObjectIF getTMObjectValue()
ActionParametersIFgetTMObjectValue in interface ActionParametersIFpublic Collection getTMObjectValues()
ActionParametersIFgetTMObjectValues in interface ActionParametersIFpublic FileValueIF getFileValue()
ActionParametersIFgetFileValue in interface ActionParametersIFpublic WebEdRequestIF getRequest()
ActionParametersIFgetRequest in interface ActionParametersIFpublic ActionParametersIF cloneAndOverride(List newparams)
ActionParametersIFcloneAndOverride in interface ActionParametersIFnewparams - The new parameter list. Each element in the list
must be a java.util.Collection containing the value(s) for the
parameter at that position.