Java Doc for AttributeMap.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.AttributeMap

AttributeMap
public interface AttributeMap extends MapAdaptable(Code)
An immutable interface for accessing attributes in a backing map with string keys.

Implementations can optionally support AttributeMapBindingListener listeners that will be notified when they're bound in or unbound from the map.
author:
   Keith Donald





Method Summary
public  booleancontains(String attributeName)
    
public  booleancontains(String attributeName, Class requiredType)
    
public  Objectget(String attributeName)
     Get an attribute value out of this map, returning null if not found.
public  Objectget(String attributeName, Object defaultValue)
     Get an attribute value, returning the default value if no value is found.
public  Objectget(String attributeName, Class requiredType)
     Get an attribute value, asserting the value is of the required type.
public  Objectget(String attributeName, Class requiredType, Object defaultValue)
     Get an attribute value, asserting the value is of the required type and returning the default value if not found.
public  Object[]getArray(String attributeName, Class requiredType)
     Returns an array attribute value in the map and makes sure it is of the required type.
public  BooleangetBoolean(String attributeName)
     Returns a boolean attribute value in the map, returning null if no value was found.
public  BooleangetBoolean(String attributeName, Boolean defaultValue)
     Returns a boolean attribute value in the map, returning the default value if no value was found.
public  CollectiongetCollection(String attributeName)
     Returns a collection attribute value in the map.
public  CollectiongetCollection(String attributeName, Class requiredType)
     Returns a collection attribute value in the map and make sure it is of the required type.
public  IntegergetInteger(String attributeName)
     Returns an integer attribute value in the map, returning null if no value was found.
public  IntegergetInteger(String attributeName, Integer defaultValue)
     Returns an integer attribute value in the map, returning the default value if no value was found.
public  LonggetLong(String attributeName)
     Returns a long attribute value in the map, returning null if no value was found.
public  LonggetLong(String attributeName, Long defaultValue)
     Returns a long attribute value in the map, returning the default value if no value was found.
public  NumbergetNumber(String attributeName, Class requiredType)
     Returns a number attribute value in the map that is of the specified type, returning null if no value was found.
public  NumbergetNumber(String attributeName, Class requiredType, Number defaultValue)
     Returns a number attribute value in the map of the specified type, returning the default value if no value was found.
public  ObjectgetRequired(String attributeName)
     Get the value of a required attribute, throwing an exception of no attribute is found.
public  ObjectgetRequired(String attributeName, Class requiredType)
     Get the value of a required attribute and make sure it is of the required type.
public  Object[]getRequiredArray(String attributeName, Class requiredType)
     Returns an array attribute value in the map, throwing an exception if the attribute is not present or not an array of the required type.
public  BooleangetRequiredBoolean(String attributeName)
     Returns a boolean attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
public  CollectiongetRequiredCollection(String attributeName)
     Returns a collection attribute value in the map, throwing an exception if the attribute is not present or not a collection.
public  CollectiongetRequiredCollection(String attributeName, Class requiredType)
     Returns a collection attribute value in the map, throwing an exception if the attribute is not present or not a collection of the required type.
public  IntegergetRequiredInteger(String attributeName)
     Returns an integer attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
public  LonggetRequiredLong(String attributeName)
     Returns a long attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
public  NumbergetRequiredNumber(String attributeName, Class requiredType)
     Returns a number attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
public  StringgetRequiredString(String attributeName)
     Returns a string attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
public  StringgetString(String attributeName)
     Returns a string attribute value in the map, returning null if no value was found.
public  StringgetString(String attributeName, String defaultValue)
     Returns a string attribute value in the map, returning the default value if no value was found.
public  booleanisEmpty()
    
public  intsize()
     Returns the size of this map.
public  AttributeMapunion(AttributeMap attributes)
     Returns a new attribute map containing the union of this map with the provided map.



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



contains
public boolean contains(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Does the attribute with the provided name exist in this map and is its value of the specified required type?
Parameters:
  attributeName - the attribute name
Parameters:
  requiredType - the required class of the attribute value true if so, false otherwise
throws:
  IllegalArgumentException - when the value is not of the requiredtype



get
public Object get(String attributeName)(Code)
Get an attribute value out of this map, returning null if not found.
Parameters:
  attributeName - the attribute name the attribute value



get
public Object get(String attributeName, Object defaultValue)(Code)
Get an attribute value, returning the default value if no value is found.
Parameters:
  attributeName - the name of the attribute
Parameters:
  defaultValue - the default value the attribute value, falling back to the default if no suchattribute exists



get
public Object get(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Get an attribute value, asserting the value is of the required type.
Parameters:
  attributeName - the name of the attribute
Parameters:
  requiredType - the required type of the attribute value the attribute value, or null if not found
throws:
  IllegalArgumentException - when the value is not of the requiredtype



get
public Object get(String attributeName, Class requiredType, Object defaultValue) throws IllegalStateException(Code)
Get an attribute value, asserting the value is of the required type and returning the default value if not found.
Parameters:
  attributeName - the name of the attribute
Parameters:
  requiredType - the value required type
Parameters:
  defaultValue - the default value the attribute value, or the default if not found
throws:
  IllegalArgumentException - when the value (if found) is not of therequired type



getArray
public Object[] getArray(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Returns an array attribute value in the map and makes sure it is of the required type.
Parameters:
  attributeName - the attribute name
Parameters:
  requiredType - the required type of the attribute value the array attribute value
throws:
  IllegalArgumentException - if the attribute is present but not anarray of the required type



getBoolean
public Boolean getBoolean(String attributeName) throws IllegalArgumentException(Code)
Returns a boolean attribute value in the map, returning null if no value was found.
Parameters:
  attributeName - the attribute name the long attribute value
throws:
  IllegalArgumentException - if the attribute is present but not aboolean



getBoolean
public Boolean getBoolean(String attributeName, Boolean defaultValue) throws IllegalArgumentException(Code)
Returns a boolean attribute value in the map, returning the default value if no value was found.
Parameters:
  attributeName - the attribute name
Parameters:
  defaultValue - the default the boolean attribute value
throws:
  IllegalArgumentException - if the attribute is present but not aboolean



getCollection
public Collection getCollection(String attributeName) throws IllegalArgumentException(Code)
Returns a collection attribute value in the map.
Parameters:
  attributeName - the attribute name the collection attribute value
throws:
  IllegalArgumentException - if the attribute is present but not acollection



getCollection
public Collection getCollection(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Returns a collection attribute value in the map and make sure it is of the required type.
Parameters:
  attributeName - the attribute name
Parameters:
  requiredType - the required type of the attribute value the collection attribute value
throws:
  IllegalArgumentException - if the attribute is present but not acollection of the required type



getInteger
public Integer getInteger(String attributeName) throws IllegalArgumentException(Code)
Returns an integer attribute value in the map, returning null if no value was found.
Parameters:
  attributeName - the attribute name the integer attribute value
throws:
  IllegalArgumentException - if the attribute is present but not aninteger



getInteger
public Integer getInteger(String attributeName, Integer defaultValue) throws IllegalArgumentException(Code)
Returns an integer attribute value in the map, returning the default value if no value was found.
Parameters:
  attributeName - the attribute name
Parameters:
  defaultValue - the default the integer attribute value
throws:
  IllegalArgumentException - if the attribute is present but not aninteger



getLong
public Long getLong(String attributeName) throws IllegalArgumentException(Code)
Returns a long attribute value in the map, returning null if no value was found.
Parameters:
  attributeName - the attribute name the long attribute value
throws:
  IllegalArgumentException - if the attribute is present but not along



getLong
public Long getLong(String attributeName, Long defaultValue) throws IllegalArgumentException(Code)
Returns a long attribute value in the map, returning the default value if no value was found.
Parameters:
  attributeName - the attribute name
Parameters:
  defaultValue - the default the long attribute value
throws:
  IllegalArgumentException - if the attribute is present but not along



getNumber
public Number getNumber(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Returns a number attribute value in the map that is of the specified type, returning null if no value was found.
Parameters:
  attributeName - the attribute name
Parameters:
  requiredType - the required number type the number attribute value
throws:
  IllegalArgumentException - if the attribute is present but not anumber of the required type



getNumber
public Number getNumber(String attributeName, Class requiredType, Number defaultValue) throws IllegalArgumentException(Code)
Returns a number attribute value in the map of the specified type, returning the default value if no value was found.
Parameters:
  attributeName - the attribute name
Parameters:
  defaultValue - the default the number attribute value
throws:
  IllegalArgumentException - if the attribute is present but not anumber of the required type



getRequired
public Object getRequired(String attributeName) throws IllegalArgumentException(Code)
Get the value of a required attribute, throwing an exception of no attribute is found.
Parameters:
  attributeName - the name of the attribute the attribute value
throws:
  IllegalArgumentException - when the attribute is not found



getRequired
public Object getRequired(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Get the value of a required attribute and make sure it is of the required type.
Parameters:
  attributeName - name of the attribute to get
Parameters:
  requiredType - the required type of the attribute value the attribute value
throws:
  IllegalArgumentException - when the attribute is not found or notof the required type



getRequiredArray
public Object[] getRequiredArray(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Returns an array attribute value in the map, throwing an exception if the attribute is not present or not an array of the required type.
Parameters:
  attributeName - the attribute name
Parameters:
  requiredType - the required array type the collection attribute value
throws:
  IllegalArgumentException - if the attribute is not present or ispresent but not a array of the required type



getRequiredBoolean
public Boolean getRequiredBoolean(String attributeName) throws IllegalArgumentException(Code)
Returns a boolean attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
Parameters:
  attributeName - the attribute name the boolean attribute value
throws:
  IllegalArgumentException - if the attribute is not present orpresent but is not a boolean



getRequiredCollection
public Collection getRequiredCollection(String attributeName) throws IllegalArgumentException(Code)
Returns a collection attribute value in the map, throwing an exception if the attribute is not present or not a collection.
Parameters:
  attributeName - the attribute name the collection attribute value
throws:
  IllegalArgumentException - if the attribute is not present or ispresent but not a collection



getRequiredCollection
public Collection getRequiredCollection(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Returns a collection attribute value in the map, throwing an exception if the attribute is not present or not a collection of the required type.
Parameters:
  attributeName - the attribute name
Parameters:
  requiredType - the required collection type the collection attribute value
throws:
  IllegalArgumentException - if the attribute is not present or ispresent but not a collection of the required type



getRequiredInteger
public Integer getRequiredInteger(String attributeName) throws IllegalArgumentException(Code)
Returns an integer attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
Parameters:
  attributeName - the attribute name the integer attribute value
throws:
  IllegalArgumentException - if the attribute is not present orpresent but not an integer



getRequiredLong
public Long getRequiredLong(String attributeName) throws IllegalArgumentException(Code)
Returns a long attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
Parameters:
  attributeName - the attribute name the long attribute value
throws:
  IllegalArgumentException - if the attribute is not present orpresent but not a long



getRequiredNumber
public Number getRequiredNumber(String attributeName, Class requiredType) throws IllegalArgumentException(Code)
Returns a number attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
Parameters:
  attributeName - the attribute name the number attribute value
throws:
  IllegalArgumentException - if the attribute is not present orpresent but not a number of the required type



getRequiredString
public String getRequiredString(String attributeName) throws IllegalArgumentException(Code)
Returns a string attribute value in the map, throwing an exception if the attribute is not present and of the correct type.
Parameters:
  attributeName - the attribute name the string attribute value
throws:
  IllegalArgumentException - if the attribute is not present orpresent but not a string



getString
public String getString(String attributeName) throws IllegalArgumentException(Code)
Returns a string attribute value in the map, returning null if no value was found.
Parameters:
  attributeName - the attribute name the string attribute value
throws:
  IllegalArgumentException - if the attribute is present but not astring



getString
public String getString(String attributeName, String defaultValue) throws IllegalArgumentException(Code)
Returns a string attribute value in the map, returning the default value if no value was found.
Parameters:
  attributeName - the attribute name
Parameters:
  defaultValue - the default the string attribute value
throws:
  IllegalArgumentException - if the attribute is present but not astring



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



size
public int size()(Code)
Returns the size of this map. the nubmer of entries in the map



union
public AttributeMap union(AttributeMap attributes)(Code)
Returns a new attribute map containing the union of this map with the provided map.
Parameters:
  attributes - the map to combine with this map a new, combined map



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