Java Doc for PropertyResolverImpl.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » faces » application » 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 » Web Framework » struts 1.3.8 » org.apache.struts.faces.application 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.struts.faces.application.PropertyResolverImpl

PropertyResolverImpl
public class PropertyResolverImpl extends PropertyResolver (Code)

Custom PropertyResolver implementation that adds support for DynaBean property access to the facilities of the default PropertyResolver provided by JavaServer Faces.

This class implements the following specific rules:

  • Indexed variants of each call are directly passed through to the PropertyResolver instance that we are wrapping.
  • If the specified base object is an instance of DynaActionForm, and the requested property name is map, maintain compatibility with the way that JSP and JSTL expressions can access this property:
    • getValue() will return the result of calling getMap() on the base object.
    • setValue() will throw an exception, because the map of property values is a read-only property of the DynaActionForm class.
    • isReadOnly() returns true.
    • getType() returns the Class object for java.util.Map.
  • If the specified base object is an instance of DynaBean, provide access to its named properties as follows:
    • getValue() will return the result of calling get() on the base object.
    • setValue() will call set() on the base object.
    • isReadOnly() returns false (because the DynaBean APIs provide no mechanism to make this determination, but most implementations will provide mutable properties).
    • getType() returns the Class object for the underlying dynamic property.
  • Named variant calls with any other type of base object are passed through to the PropertyResolver that we are wrapping.

version:
   $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $



Constructor Summary
public  PropertyResolverImpl(PropertyResolver resolver)
    

Construct a new PropertyResolver instance, wrapping the specified instance using the Decorator pattern such that this class need implement only the new functionality it supports, and not need to re-implement the basic facilities.


Method Summary
public  ClassgetType(Object base, Object name)
    
public  ClassgetType(Object base, int index)
    
public  ObjectgetValue(Object base, Object name)
    
public  ObjectgetValue(Object base, int index)
    
public  booleanisReadOnly(Object base, Object name)
    
public  booleanisReadOnly(Object base, int index)
    
public  voidsetValue(Object base, Object name, Object value)
    
public  voidsetValue(Object base, int index, Object value)
    


Constructor Detail
PropertyResolverImpl
public PropertyResolverImpl(PropertyResolver resolver)(Code)

Construct a new PropertyResolver instance, wrapping the specified instance using the Decorator pattern such that this class need implement only the new functionality it supports, and not need to re-implement the basic facilities.
Parameters:
  resolver - The original resolver to be wrapped
exception:
  NullPointerException - if resolveris null





Method Detail
getType
public Class getType(Object base, Object name) throws PropertyNotFoundException(Code)

Return the java.lang.Class representing the type of the specified property of the specified base object, if it can be determined; otherwise return null.


Parameters:
  base - The base object whose property is to analyzed
Parameters:
  name - Name of the property to be analyzed
exception:
  NullPointerException - if base orname is null
exception:
  PropertyNotFoundException - if the specified property namedoes not exist



getType
public Class getType(Object base, int index) throws PropertyNotFoundException(Code)

Return the java.lang.Class representing the type of value at the specified index of the specified base object, or null if this value is null.


Parameters:
  base - The base object whose property is to analyzed
Parameters:
  index - Index of the value whose type is to be returned
exception:
  IndexOutOfBoundsException - if thrown by the underlyingaccessed to the indexed property
exception:
  NullPointerException - if baseis null
exception:
  PropertyNotFoundException - if some other exception occurs



getValue
public Object getValue(Object base, Object name) throws PropertyNotFoundException(Code)

Return the value of the property with the specified name from the specified base object.


Parameters:
  base - The base object whose property value is to be returned
Parameters:
  name - Name of the property to be returned
exception:
  NullPointerException - if base orname is null
exception:
  PropertyNotFoundException - if the specified property namedoes not exist, or is not readable



getValue
public Object getValue(Object base, int index) throws PropertyNotFoundException(Code)

Return the value at the specified index of the specified base object.


Parameters:
  base - The base object whose property value is to be returned
Parameters:
  index - Index of the value to return
exception:
  IndexOutOfBoundsException - if thrown by the underlyingaccess to the base object
exception:
  NullPointerException - if baseis null
exception:
  PropertyNotFoundException - if some other exception occurs



isReadOnly
public boolean isReadOnly(Object base, Object name) throws PropertyNotFoundException(Code)

Return true if the specified property of the specified base object is known to be immutable; otherwise, return false.


Parameters:
  base - The base object whose property is to analyzed
Parameters:
  name - Name of the property to be analyzed
exception:
  NullPointerException - if base orname is null
exception:
  PropertyNotFoundException - if the specified property namedoes not exist



isReadOnly
public boolean isReadOnly(Object base, int index) throws PropertyNotFoundException(Code)

Return true if the value at the specified index of the specified base object is known to be immutable; otherwise, return false.


Parameters:
  base - The base object whose property is to analyzed
Parameters:
  index - Index of the value whose type is to be returned
exception:
  IndexOutOfBoundsException - if thrown by the underlyingaccessed to the indexed property
exception:
  NullPointerException - if baseis null
exception:
  PropertyNotFoundException - if some other exception occurs



setValue
public void setValue(Object base, Object name, Object value) throws PropertyNotFoundException(Code)

Set the specified value of the property with the specified name on the specified base object.


Parameters:
  base - The base object whose property value is to be set
Parameters:
  name - Name of the property to be set
Parameters:
  value - Value of the property to be set
exception:
  NullPointerException - if base orname is null
exception:
  PropertyNotFoundException - if the specified property namedoes not exist, or is not writeable



setValue
public void setValue(Object base, int index, Object value) throws PropertyNotFoundException(Code)

Set the value at the specified index of the specified base object.


Parameters:
  base - The base object whose property value is to be set
Parameters:
  index - Index of the value to set
Parameters:
  value - Value to be set
exception:
  IndexOutOfBoundsException - if thrown by the underlyingaccess to the base object
exception:
  NullPointerException - if baseis null
exception:
  PropertyNotFoundException - if some other exception occurs



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