Java Doc for OgnlValueStack.java in  » J2EE » webwork-2.2.6 » com » opensymphony » xwork » util » 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 » J2EE » webwork 2.2.6 » com.opensymphony.xwork.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.opensymphony.xwork.util.OgnlValueStack

OgnlValueStack
public class OgnlValueStack implements Serializable(Code)
OgnlValueStack allows multiple beans to be pushed in and dynamic Ognl expressions to be evaluated against it. When evaluating an expression, the stack will be searched down the stack, from the latest objects pushed in to the earliest, looking for a bean with a getter or setter for the given property or a method of the given name (depending on the expression being evaluated).
author:
   Patrick Lightbody

Inner Class :public static class ObjectAccessor extends ObjectPropertyAccessor

Field Summary
final public static  StringREPORT_ERRORS_ON_NO_PROP
    
final public static  StringVALUE_STACK
    
transient  Mapcontext
    
 ClassdefaultType
    
 Mapoverrides
    
 CompoundRootroot
    

Constructor Summary
public  OgnlValueStack()
    
public  OgnlValueStack(OgnlValueStack vs)
    

Method Summary
public  StringfindString(String expr)
    
public  ObjectfindValue(String expr)
     Find a value by evaluating the given expression against the stack in the default search order.
public  ObjectfindValue(String expr, Class asType)
     Find a value by evaluating the given expression against the stack in the default search order.
public static  CompoundRootAccessorgetAccessor()
    
public  MapgetContext()
    
public  CompoundRootgetRoot()
    
public  booleanisDevModeEnabled()
     Determine whether devMode is enabled.
public static  voidlink(Map context, Class clazz, String name)
    
public  Objectpeek()
     Get the object on the top of the stack without changing the stack.
public  Objectpop()
     Get the object on the top of the stack and remove it from the stack.
public  voidpush(Object o)
    
public static  voidreset()
    
public  voidsetDefaultType(Class defaultType)
     Sets the default type to convert to if no type is provided when getting a value.
public  voidsetExprOverrides(Map overrides)
    
public  voidsetValue(String expr, Object value)
     Attempts to set a property on a bean in the stack with the given expression using the default search order.
public  voidsetValue(String expr, Object value, boolean throwExceptionOnFailure)
     Attempts to set a property on a bean in the stack with the given expression using the default search order.
public  intsize()
    

Field Detail
REPORT_ERRORS_ON_NO_PROP
final public static String REPORT_ERRORS_ON_NO_PROP(Code)



VALUE_STACK
final public static String VALUE_STACK(Code)



context
transient Map context(Code)



defaultType
Class defaultType(Code)



overrides
Map overrides(Code)



root
CompoundRoot root(Code)




Constructor Detail
OgnlValueStack
public OgnlValueStack()(Code)



OgnlValueStack
public OgnlValueStack(OgnlValueStack vs)(Code)




Method Detail
findString
public String findString(String expr)(Code)



findValue
public Object findValue(String expr)(Code)
Find a value by evaluating the given expression against the stack in the default search order.
Parameters:
  expr - the expression giving the path of properties to navigate to find the property value to return the result of evaluating the expression



findValue
public Object findValue(String expr, Class asType)(Code)
Find a value by evaluating the given expression against the stack in the default search order.
Parameters:
  expr - the expression giving the path of properties to navigate to find the property value to return
Parameters:
  asType - the type to convert the return value to the result of evaluating the expression



getAccessor
public static CompoundRootAccessor getAccessor()(Code)



getContext
public Map getContext()(Code)



getRoot
public CompoundRoot getRoot()(Code)
Get the CompoundRoot which holds the objects pushed onto the stack



isDevModeEnabled
public boolean isDevModeEnabled()(Code)
Determine whether devMode is enabled. true if devMode was enabled, false otherwise.



link
public static void link(Map context, Class clazz, String name)(Code)



peek
public Object peek()(Code)
Get the object on the top of the stack without changing the stack.
See Also:   CompoundRoot.peek



pop
public Object pop()(Code)
Get the object on the top of the stack and remove it from the stack. the object on the top of the stack
See Also:   CompoundRoot.pop



push
public void push(Object o)(Code)
Put this object onto the top of the stack
Parameters:
  o - the object to be pushed onto the stack
See Also:   CompoundRoot.push(Object)



reset
public static void reset()(Code)



setDefaultType
public void setDefaultType(Class defaultType)(Code)
Sets the default type to convert to if no type is provided when getting a value.
Parameters:
  defaultType -



setExprOverrides
public void setExprOverrides(Map overrides)(Code)



setValue
public void setValue(String expr, Object value)(Code)
Attempts to set a property on a bean in the stack with the given expression using the default search order.
Parameters:
  expr - the expression defining the path to the property to be set.
Parameters:
  value - the value to be set into the neamed property



setValue
public void setValue(String expr, Object value, boolean throwExceptionOnFailure)(Code)
Attempts to set a property on a bean in the stack with the given expression using the default search order.
Parameters:
  expr - the expression defining the path to the property to be set.
Parameters:
  value - the value to be set into the neamed property
Parameters:
  throwExceptionOnFailure - a flag to tell whether an exception should be thrown if there is no property withthe given name.



size
public int size()(Code)
Get the number of objects in the stack s the number of objects in the stack



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.