Java Doc for ResourceBundleELResolver.java in  » Scripting » JUEL » javax » el » 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 » Scripting » JUEL » javax.el 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.el.ELResolver
      javax.el.ResourceBundleELResolver

ResourceBundleELResolver
public class ResourceBundleELResolver extends ELResolver (Code)
Defines property resolution behavior on instances of java.util.ResourceBundle .

This resolver handles base objects of type java.util.ResourceBundle. It accepts any object as a property and coerces it to a java.lang.String for invoking java.util.ResourceBundle.getObject(java.lang.String) .

This resolver is read only and will throw a PropertyNotWritableException if setValue is called.

ELResolvers are combined together using CompositeELResolver s, to define rich semantics for evaluating an expression. See the javadocs for ELResolver for details.


See Also:   CompositeELResolver
See Also:   ELResolver
See Also:   java.util.ResourceBundle
since:
   JSP 2.1




Method Summary
public  ClassgetCommonPropertyType(ELContext context, Object base)
     If the base object is a ResourceBundle, returns the most general type that this resolver accepts for the property argument. Otherwise, returns null.

Assuming the base is a ResourceBundle, this method will always return String.class.
Parameters:
  context - The context of this evaluation.
Parameters:
  base - The bundle to analyze.

public  IteratorgetFeatureDescriptors(ELContext context, Object base)
     If the base object is a ResourceBundle, returns an Iterator containing the set of keys available in the ResourceBundle. Otherwise, returns null.

The Iterator returned must contain zero or more instances of java.beans.FeatureDescriptor .

public  ClassgetType(ELContext context, Object base, Object property)
     If the base object is an instance of ResourceBundle, return null, since the resolver is read only.

If the base is ResourceBundle, the propertyResolved property of the ELContext object must be set to true by this resolver, before returning.

public  ObjectgetValue(ELContext context, Object base, Object property)
     If the base object is an instance of ResourceBundle, the provided property will first be coerced to a String. The Object returned by getObject on the base ResourceBundle will be returned.

If the base is ResourceBundle, the propertyResolved property of the ELContext object must be set to true by this resolver, before returning.
public  booleanisReadOnly(ELContext context, Object base, Object property)
     If the base object is not null and an instanceof ResourceBundle , return true.
Parameters:
  context - The context of this evaluation.
Parameters:
  base - The ResourceBundle to be modified.
public  voidsetValue(ELContext context, Object base, Object property, Object value)
     If the base object is a ResourceBundle, throw a PropertyNotWritableException .
Parameters:
  context - The context of this evaluation.
Parameters:
  base - The ResourceBundle to be modified.



Method Detail
getCommonPropertyType
public Class getCommonPropertyType(ELContext context, Object base)(Code)
If the base object is a ResourceBundle, returns the most general type that this resolver accepts for the property argument. Otherwise, returns null.

Assuming the base is a ResourceBundle, this method will always return String.class.
Parameters:
  context - The context of this evaluation.
Parameters:
  base - The bundle to analyze. Only bases of typeResourceBundle are handled by this resolver. null if base is not a ResourceBundle;otherwise String.class.




getFeatureDescriptors
public Iterator getFeatureDescriptors(ELContext context, Object base)(Code)
If the base object is a ResourceBundle, returns an Iterator containing the set of keys available in the ResourceBundle. Otherwise, returns null.

The Iterator returned must contain zero or more instances of java.beans.FeatureDescriptor . Each info object contains information about a key in the ResourceBundle, and is initialized as follows:

  • displayName - The String key
  • name - Same as displayName property.
  • shortDescription - Empty string
  • expert - false
  • hidden - false
  • preferred - true
  • In addition, the following named attributes must be set in the returned FeatureDescriptors:
  • ELResolver.TYPE - String.class
  • ELResolver.RESOLVABLE_AT_DESIGN_TIME - true

  • Parameters:
      context - The context of this evaluation.
    Parameters:
      base - The bundle whose keys are to be iterated over. Only bases oftype ResourceBundle are handled by thisresolver. An Iterator containing zero or more (possiblyinfinitely more) FeatureDescriptor objects, eachrepresenting a key in this bundle, or null if thebase object is not a ResourceBundle.



    getType
    public Class getType(ELContext context, Object base, Object property)(Code)
    If the base object is an instance of ResourceBundle, return null, since the resolver is read only.

    If the base is ResourceBundle, the propertyResolved property of the ELContext object must be set to true by this resolver, before returning. If this property is not true after this method is called, the caller should ignore the return value.


    Parameters:
      context - The context of this evaluation.
    Parameters:
      base - The ResourceBundle to analyze.
    Parameters:
      property - The name of the property to analyze. If the propertyResolved property ofELContext was set to true, thennull; otherwise undefined.
    throws:
      NullPointerException - if context is null



    getValue
    public Object getValue(ELContext context, Object base, Object property)(Code)
    If the base object is an instance of ResourceBundle, the provided property will first be coerced to a String. The Object returned by getObject on the base ResourceBundle will be returned.

    If the base is ResourceBundle, the propertyResolved property of the ELContext object must be set to true by this resolver, before returning. If this property is not true after this method is called, the caller should ignore the return value.


    Parameters:
      context - The context of this evaluation.
    Parameters:
      base - The ResourceBundle to analyze.
    Parameters:
      property - The name of the property to analyze. Will be coerced to aString. If the propertyResolved property ofELContext was set to true, thennull if property is null;otherwise the Object for the given key(property coerced to String) from theResourceBundle.If no object for the given key can be found, then the String "???" + key + "???".
    throws:
      NullPointerException - if context is null
    throws:
      ELException - if an exception was thrown while performing the property orvariable resolution. The thrown exception must be included asthe cause property of this exception, if available.



    isReadOnly
    public boolean isReadOnly(ELContext context, Object base, Object property)(Code)
    If the base object is not null and an instanceof ResourceBundle , return true.
    Parameters:
      context - The context of this evaluation.
    Parameters:
      base - The ResourceBundle to be modified. Only bases that are of typeResourceBundle are handled.
    Parameters:
      property - The String property to use. If the propertyResolved property ofELContext was set to true, thentrue; otherwise undefined.
    throws:
      NullPointerException - if context is null



    setValue
    public void setValue(ELContext context, Object base, Object property, Object value)(Code)
    If the base object is a ResourceBundle, throw a PropertyNotWritableException .
    Parameters:
      context - The context of this evaluation.
    Parameters:
      base - The ResourceBundle to be modified. Only bases that are of typeResourceBundle are handled.
    Parameters:
      property - The String property to use.
    Parameters:
      value - The value to be set.
    throws:
      NullPointerException - if context is null.
    throws:
      PropertyNotWritableException - Always thrown if base is an instance of ReasourceBundle.



    Fields inherited from javax.el.ELResolver
    final public static String RESOLVABLE_AT_DESIGN_TIME(Code)(Java Doc)
    final public static String TYPE(Code)(Java Doc)

    Methods inherited from javax.el.ELResolver
    abstract public Class getCommonPropertyType(ELContext context, Object base)(Code)(Java Doc)
    abstract public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)(Code)(Java Doc)
    abstract public Class getType(ELContext context, Object base, Object property)(Code)(Java Doc)
    abstract public Object getValue(ELContext context, Object base, Object property)(Code)(Java Doc)
    abstract public boolean isReadOnly(ELContext context, Object base, Object property)(Code)(Java Doc)
    abstract public void setValue(ELContext context, Object base, Object property, Object value)(Code)(Java Doc)

    Methods inherited from java.lang.Object
    native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
    public boolean equals(Object obj)(Code)(Java Doc)
    protected void finalize() throws Throwable(Code)(Java Doc)
    final native public Class getClass()(Code)(Java Doc)
    native public int hashCode()(Code)(Java Doc)
    final native public void notify()(Code)(Java Doc)
    final native public void notifyAll()(Code)(Java Doc)
    public String toString()(Code)(Java Doc)
    final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
    final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
    final public void wait() throws InterruptedException(Code)(Java Doc)

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