Java Doc for ParameterMap.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » core » collection » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » spring webflow 1.0.4 » org.springframework.webflow.core.collection 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.webflow.core.collection.ParameterMap

All known Subclasses:   org.springframework.webflow.core.collection.LocalParameterMap,
ParameterMap
public interface ParameterMap extends MapAdaptable(Code)
An interface for accessing parameters in a backing map. Parameters are immutable and have string keys and string values.

The accessor methods offered by this class taking a target type argument only need to support conversions to well know types like String, Number subclasses, Boolean and so on.
author:
   Keith Donald





Method Summary
public  AttributeMapasAttributeMap()
     Adapts this parameter map to an AttributeMap .
public  booleancontains(String parameterName)
    
public  Stringget(String parameterName)
     Get a parameter value, returning null if no value is found.
public  Stringget(String parameterName, String defaultValue)
     Get a parameter value, returning the defaultValue if no value is found.
public  Objectget(String parameterName, Class targetType)
     Get a parameter value, converting it from String to the target type.
public  Objectget(String parameterName, Class targetType, Object defaultValue)
     Get a parameter value, converting it from String to the target type or returning the defaultValue if not found.
public  String[]getArray(String parameterName)
     Get a multi-valued parameter value, returning null if no value is found.
public  Object[]getArray(String parameterName, Class targetElementType)
     Get a multi-valued parameter value, converting each value to the target type or returning null if no value is found.
public  BooleangetBoolean(String parameterName)
     Returns a boolean parameter value in the map, returning null if no value was found.
public  BooleangetBoolean(String parameterName, Boolean defaultValue)
     Returns a boolean parameter value in the map, returning the defaultValue if no value was found.
public  IntegergetInteger(String parameterName)
     Returns an integer parameter value in the map, returning null if no value was found.
public  IntegergetInteger(String parameterName, Integer defaultValue)
     Returns an integer parameter value in the map, returning the defaultValue if no value was found.
public  LonggetLong(String parameterName)
     Returns a long parameter value in the map, returning null if no value was found.
public  LonggetLong(String parameterName, Long defaultValue)
     Returns a long parameter value in the map, returning the defaultValue if no value was found.
public  MultipartFilegetMultipartFile(String parameterName)
     Get a multi-part file parameter value, returning null if no value is found.
public  NumbergetNumber(String parameterName, Class targetType)
     Returns a number parameter value in the map that is of the specified type, returning null if no value was found.
public  NumbergetNumber(String parameterName, Class targetType, Number defaultValue)
     Returns a number parameter value in the map of the specified type, returning the defaultValue if no value was found.
public  StringgetRequired(String parameterName)
     Get the value of a required parameter.
public  ObjectgetRequired(String parameterName, Class targetType)
     Get the value of a required parameter and convert it to the target type.
public  String[]getRequiredArray(String parameterName)
     Get a required multi-valued parameter value.
public  Object[]getRequiredArray(String parameterName, Class targetElementType)
     Get a required multi-valued parameter value, converting each value to the target type.
public  BooleangetRequiredBoolean(String parameterName)
     Returns a boolean parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
public  IntegergetRequiredInteger(String parameterName)
     Returns an integer parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
public  LonggetRequiredLong(String parameterName)
     Returns a long parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
public  MultipartFilegetRequiredMultipartFile(String parameterName)
     Get the value of a required multipart file parameter.
public  NumbergetRequiredNumber(String parameterName, Class targetType)
     Returns a number parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
public  booleanisEmpty()
    
public  intsize()
     Returns the number of parameters in this map.



Method Detail
asAttributeMap
public AttributeMap asAttributeMap()(Code)
Adapts this parameter map to an AttributeMap . the underlying map as a unmodifiable attribute map



contains
public boolean contains(String parameterName)(Code)
Does the parameter with the provided name exist in this map?
Parameters:
  parameterName - the parameter name true if so, false otherwise



get
public String get(String parameterName)(Code)
Get a parameter value, returning null if no value is found.
Parameters:
  parameterName - the parameter name the parameter value



get
public String get(String parameterName, String defaultValue)(Code)
Get a parameter value, returning the defaultValue if no value is found.
Parameters:
  parameterName - the parameter name
Parameters:
  defaultValue - the default the parameter value



get
public Object get(String parameterName, Class targetType) throws ConversionException(Code)
Get a parameter value, converting it from String to the target type.
Parameters:
  parameterName - the name of the parameter
Parameters:
  targetType - the target type of the parameter value the converted parameter value, or null if not found
throws:
  ConversionException - when the value could not be converted



get
public Object get(String parameterName, Class targetType, Object defaultValue) throws ConversionException(Code)
Get a parameter value, converting it from String to the target type or returning the defaultValue if not found.
Parameters:
  parameterName - name of the parameter to get
Parameters:
  targetType - the target type of the parameter value
Parameters:
  defaultValue - the default value the converted parameter value, or the default if not found
throws:
  ConversionException - when a value could not be converted



getArray
public String[] getArray(String parameterName)(Code)
Get a multi-valued parameter value, returning null if no value is found. If the parameter is single valued an array with a single element is returned.
Parameters:
  parameterName - the parameter name the parameter value array



getArray
public Object[] getArray(String parameterName, Class targetElementType) throws ConversionException(Code)
Get a multi-valued parameter value, converting each value to the target type or returning null if no value is found.
Parameters:
  parameterName - the parameter name
Parameters:
  targetElementType - the target type of the array's elements the converterd parameter value array
throws:
  ConversionException - when the value could not be converted



getBoolean
public Boolean getBoolean(String parameterName) throws ConversionException(Code)
Returns a boolean parameter value in the map, returning null if no value was found.
Parameters:
  parameterName - the parameter name the long parameter value
throws:
  ConversionException - when the value could not be converted



getBoolean
public Boolean getBoolean(String parameterName, Boolean defaultValue) throws ConversionException(Code)
Returns a boolean parameter value in the map, returning the defaultValue if no value was found.
Parameters:
  parameterName - the parameter name
Parameters:
  defaultValue - the default the boolean parameter value
throws:
  ConversionException - when the value could not be converted



getInteger
public Integer getInteger(String parameterName) throws ConversionException(Code)
Returns an integer parameter value in the map, returning null if no value was found.
Parameters:
  parameterName - the parameter name the integer parameter value
throws:
  ConversionException - when the value could not be converted



getInteger
public Integer getInteger(String parameterName, Integer defaultValue) throws ConversionException(Code)
Returns an integer parameter value in the map, returning the defaultValue if no value was found.
Parameters:
  parameterName - the parameter name
Parameters:
  defaultValue - the default the integer parameter value
throws:
  ConversionException - when the value could not be converted



getLong
public Long getLong(String parameterName) throws ConversionException(Code)
Returns a long parameter value in the map, returning null if no value was found.
Parameters:
  parameterName - the parameter name the long parameter value
throws:
  ConversionException - when the value could not be converted



getLong
public Long getLong(String parameterName, Long defaultValue) throws ConversionException(Code)
Returns a long parameter value in the map, returning the defaultValue if no value was found.
Parameters:
  parameterName - the parameter name
Parameters:
  defaultValue - the default the long parameter value
throws:
  ConversionException - when the value could not be converted



getMultipartFile
public MultipartFile getMultipartFile(String parameterName)(Code)
Get a multi-part file parameter value, returning null if no value is found.
Parameters:
  parameterName - the parameter name the multipart file



getNumber
public Number getNumber(String parameterName, Class targetType) throws ConversionException(Code)
Returns a number parameter value in the map that is of the specified type, returning null if no value was found.
Parameters:
  parameterName - the parameter name
Parameters:
  targetType - the target number type the number parameter value
throws:
  ConversionException - when the value could not be converted



getNumber
public Number getNumber(String parameterName, Class targetType, Number defaultValue) throws ConversionException(Code)
Returns a number parameter value in the map of the specified type, returning the defaultValue if no value was found.
Parameters:
  parameterName - the parameter name
Parameters:
  defaultValue - the default the number parameter value
throws:
  ConversionException - when the value could not be converted



getRequired
public String getRequired(String parameterName) throws IllegalArgumentException(Code)
Get the value of a required parameter.
Parameters:
  parameterName - the name of the parameter the parameter value
throws:
  IllegalArgumentException - when the parameter is not found



getRequired
public Object getRequired(String parameterName, Class targetType) throws IllegalArgumentException, ConversionException(Code)
Get the value of a required parameter and convert it to the target type.
Parameters:
  parameterName - the name of the parameter
Parameters:
  targetType - the target type of the parameter value the converted parameter value
throws:
  IllegalArgumentException - when the parameter is not found
throws:
  ConversionException - when the value could not be converted



getRequiredArray
public String[] getRequiredArray(String parameterName) throws IllegalArgumentException(Code)
Get a required multi-valued parameter value.
Parameters:
  parameterName - the name of the parameter the parameter value
throws:
  IllegalArgumentException - when the parameter is not found



getRequiredArray
public Object[] getRequiredArray(String parameterName, Class targetElementType) throws IllegalArgumentException, ConversionException(Code)
Get a required multi-valued parameter value, converting each value to the target type.
Parameters:
  parameterName - the name of the parameter the parameter value
throws:
  IllegalArgumentException - when the parameter is not found
throws:
  ConversionException - when a value could not be converted



getRequiredBoolean
public Boolean getRequiredBoolean(String parameterName) throws IllegalArgumentException, ConversionException(Code)
Returns a boolean parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
Parameters:
  parameterName - the parameter name the boolean parameter value
throws:
  IllegalArgumentException - if the parameter is not present
throws:
  ConversionException - when the value could not be converted



getRequiredInteger
public Integer getRequiredInteger(String parameterName) throws IllegalArgumentException, ConversionException(Code)
Returns an integer parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
Parameters:
  parameterName - the parameter name the integer parameter value
throws:
  IllegalArgumentException - if the parameter is not present
throws:
  ConversionException - when the value could not be converted



getRequiredLong
public Long getRequiredLong(String parameterName) throws IllegalArgumentException, ConversionException(Code)
Returns a long parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
Parameters:
  parameterName - the parameter name the long parameter value
throws:
  IllegalArgumentException - if the parameter is not present
throws:
  ConversionException - when the value could not be converted



getRequiredMultipartFile
public MultipartFile getRequiredMultipartFile(String parameterName)(Code)
Get the value of a required multipart file parameter.
Parameters:
  parameterName - the name of the parameter the parameter value
throws:
  IllegalArgumentException - when the parameter is not found



getRequiredNumber
public Number getRequiredNumber(String parameterName, Class targetType) throws IllegalArgumentException, ConversionException(Code)
Returns a number parameter value in the map, throwing an exception if the parameter is not present or could not be converted.
Parameters:
  parameterName - the parameter name the number parameter value
throws:
  IllegalArgumentException - if the parameter is not present
throws:
  ConversionException - when the value could not be converted



isEmpty
public boolean isEmpty()(Code)
Is this parameter map empty, with a size of 0? true if empty, false if not



size
public int size()(Code)
Returns the number of parameters in this map. the parameter count



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.