Java Doc for JXPathContextReferenceImpl.java in  » Library » Apache-commons-jxpath-1.2-src » org » apache » commons » jxpath » ri » 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 » Library » Apache commons jxpath 1.2 src » org.apache.commons.jxpath.ri 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jxpath.JXPathContext
      org.apache.commons.jxpath.ri.JXPathContextReferenceImpl

JXPathContextReferenceImpl
public class JXPathContextReferenceImpl extends JXPathContext (Code)
The reference implementation of JXPathContext.
author:
   Dmitri Plotnikov
version:
   $Revision: 1.43 $ $Date: 2004/04/04 23:16:23 $


Field Summary
final public static  booleanUSE_SOFT_CACHE
     Change this to false to disable soft caching of CompiledExpressions.
protected  NamespaceResolvernamespaceResolver
    

Constructor Summary
protected  JXPathContextReferenceImpl(JXPathContext parentContext, Object contextBean)
    
public  JXPathContextReferenceImpl(JXPathContext parentContext, Object contextBean, Pointer contextPointer)
    

Method Summary
public static  voidaddNodePointerFactory(NodePointerFactory factory)
     Call this with a custom NodePointerFactory to add support for additional types of objects.
public static  ObjectallocateConditionally(String className, String existenceCheckClassName)
     Checks if existenceCheckClass exists on the class path.
protected  CompiledExpressioncompilePath(String xpath)
    
public  PointercreatePath(String xpath)
    
public  PointercreatePath(String xpath, Expression expr)
    
public  PointercreatePathAndSetValue(String xpath, Object value)
    
public  PointercreatePathAndSetValue(String xpath, Expression expr, Object value)
    
public  EvalContextgetAbsoluteRootContext()
    
protected  CompilergetCompiler()
     Returns a static instance of TreeCompiler.
public  PointergetContextPointer()
    
public  FunctiongetFunction(QName functionName, Object[] parameters)
    
public  PointergetNamespaceContextPointer()
    
public  NamespaceResolvergetNamespaceResolver()
    
public  StringgetNamespaceURI(String prefix)
    
public static  NodePointerFactory[]getNodePointerFactories()
    
public  PointergetPointer(String xpath)
    
public  PointergetPointer(String xpath, Expression expr)
    
public  JXPathContextgetRelativeContext(Pointer pointer)
    
public  ObjectgetValue(String xpath)
     Traverses the xpath and returns the resulting object.
public  ObjectgetValue(String xpath, Expression expr)
    
public  ObjectgetValue(String xpath, Class requiredType)
     Calls getValue(xpath), converts the result to the required type and returns the result of the conversion.
public  ObjectgetValue(String xpath, Expression expr, Class requiredType)
    
public  NodePointergetVariablePointer(QName name)
    
public  Iteratoriterate(String xpath)
     Traverses the xpath and returns a Iterator of all results found for the path.
public  Iteratoriterate(String xpath, Expression expr)
    
public  IteratoriteratePointers(String xpath)
     Traverses the xpath and returns an Iterator of Pointers.
public  IteratoriteratePointers(String xpath, Expression expr)
    
public  voidregisterNamespace(String prefix, String namespaceURI)
    
public  voidremoveAll(String xpath)
    
public  voidremoveAll(String xpath, Expression expr)
    
public  voidremovePath(String xpath)
    
public  voidremovePath(String xpath, Expression expr)
    
public  voidsetNamespaceContextPointer(Pointer pointer)
    
public  voidsetValue(String xpath, Object value)
    
public  voidsetValue(String xpath, Expression expr, Object value)
    

Field Detail
USE_SOFT_CACHE
final public static boolean USE_SOFT_CACHE(Code)
Change this to false to disable soft caching of CompiledExpressions.



namespaceResolver
protected NamespaceResolver namespaceResolver(Code)




Constructor Detail
JXPathContextReferenceImpl
protected JXPathContextReferenceImpl(JXPathContext parentContext, Object contextBean)(Code)



JXPathContextReferenceImpl
public JXPathContextReferenceImpl(JXPathContext parentContext, Object contextBean, Pointer contextPointer)(Code)




Method Detail
addNodePointerFactory
public static void addNodePointerFactory(NodePointerFactory factory)(Code)
Call this with a custom NodePointerFactory to add support for additional types of objects. Make sure the factory returns a name that puts it in the right position on the list of factories.



allocateConditionally
public static Object allocateConditionally(String className, String existenceCheckClassName)(Code)
Checks if existenceCheckClass exists on the class path. If so, allocates an instance of the specified class, otherwise returns null.



compilePath
protected CompiledExpression compilePath(String xpath)(Code)



createPath
public Pointer createPath(String xpath)(Code)



createPath
public Pointer createPath(String xpath, Expression expr)(Code)



createPathAndSetValue
public Pointer createPathAndSetValue(String xpath, Object value)(Code)



createPathAndSetValue
public Pointer createPathAndSetValue(String xpath, Expression expr, Object value)(Code)



getAbsoluteRootContext
public EvalContext getAbsoluteRootContext()(Code)



getCompiler
protected Compiler getCompiler()(Code)
Returns a static instance of TreeCompiler. Override this to return an aternate compiler.



getContextPointer
public Pointer getContextPointer()(Code)



getFunction
public Function getFunction(QName functionName, Object[] parameters)(Code)



getNamespaceContextPointer
public Pointer getNamespaceContextPointer()(Code)



getNamespaceResolver
public NamespaceResolver getNamespaceResolver()(Code)



getNamespaceURI
public String getNamespaceURI(String prefix)(Code)



getNodePointerFactories
public static NodePointerFactory[] getNodePointerFactories()(Code)



getPointer
public Pointer getPointer(String xpath)(Code)



getPointer
public Pointer getPointer(String xpath, Expression expr)(Code)



getRelativeContext
public JXPathContext getRelativeContext(Pointer pointer)(Code)



getValue
public Object getValue(String xpath)(Code)
Traverses the xpath and returns the resulting object. Primitive types are wrapped into objects.



getValue
public Object getValue(String xpath, Expression expr)(Code)



getValue
public Object getValue(String xpath, Class requiredType)(Code)
Calls getValue(xpath), converts the result to the required type and returns the result of the conversion.



getValue
public Object getValue(String xpath, Expression expr, Class requiredType)(Code)



getVariablePointer
public NodePointer getVariablePointer(QName name)(Code)



iterate
public Iterator iterate(String xpath)(Code)
Traverses the xpath and returns a Iterator of all results found for the path. If the xpath matches no properties in the graph, the Iterator will not be null.



iterate
public Iterator iterate(String xpath, Expression expr)(Code)



iteratePointers
public Iterator iteratePointers(String xpath)(Code)
Traverses the xpath and returns an Iterator of Pointers. A Pointer provides easy access to a property. If the xpath matches no properties in the graph, the Iterator be empty, but not null.



iteratePointers
public Iterator iteratePointers(String xpath, Expression expr)(Code)



registerNamespace
public void registerNamespace(String prefix, String namespaceURI)(Code)



removeAll
public void removeAll(String xpath)(Code)



removeAll
public void removeAll(String xpath, Expression expr)(Code)



removePath
public void removePath(String xpath)(Code)



removePath
public void removePath(String xpath, Expression expr)(Code)



setNamespaceContextPointer
public void setNamespaceContextPointer(Pointer pointer)(Code)



setValue
public void setValue(String xpath, Object value)(Code)



setValue
public void setValue(String xpath, Expression expr, Object value)(Code)



Fields inherited from org.apache.commons.jxpath.JXPathContext
protected Object contextBean(Code)(Java Doc)
protected HashMap decimalFormats(Code)(Java Doc)
protected AbstractFactory factory(Code)(Java Doc)
protected Functions functions(Code)(Java Doc)
protected IdentityManager idManager(Code)(Java Doc)
protected KeyManager keyManager(Code)(Java Doc)
protected JXPathContext parentContext(Code)(Java Doc)
protected Variables vars(Code)(Java Doc)

Methods inherited from org.apache.commons.jxpath.JXPathContext
public static CompiledExpression compile(String xpath)(Code)(Java Doc)
abstract protected CompiledExpression compilePath(String xpath)(Code)(Java Doc)
abstract public Pointer createPath(String xpath)(Code)(Java Doc)
abstract public Pointer createPathAndSetValue(String xpath, Object value)(Code)(Java Doc)
public Object getContextBean()(Code)(Java Doc)
abstract public Pointer getContextPointer()(Code)(Java Doc)
public DecimalFormatSymbols getDecimalFormatSymbols(String name)(Code)(Java Doc)
public AbstractFactory getFactory()(Code)(Java Doc)
public Functions getFunctions()(Code)(Java Doc)
public IdentityManager getIdentityManager()(Code)(Java Doc)
public KeyManager getKeyManager()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public Pointer getNamespaceContextPointer()(Code)(Java Doc)
public String getNamespaceURI(String prefix)(Code)(Java Doc)
public JXPathContext getParentContext()(Code)(Java Doc)
abstract public Pointer getPointer(String xpath)(Code)(Java Doc)
public Pointer getPointerByID(String id)(Code)(Java Doc)
public Pointer getPointerByKey(String key, String value)(Code)(Java Doc)
abstract public JXPathContext getRelativeContext(Pointer pointer)(Code)(Java Doc)
abstract public Object getValue(String xpath)(Code)(Java Doc)
abstract public Object getValue(String xpath, Class requiredType)(Code)(Java Doc)
public Variables getVariables()(Code)(Java Doc)
public boolean isLenient()(Code)(Java Doc)
abstract public Iterator iterate(String xpath)(Code)(Java Doc)
abstract public Iterator iteratePointers(String xpath)(Code)(Java Doc)
public static JXPathContext newContext(Object contextBean)(Code)(Java Doc)
public static JXPathContext newContext(JXPathContext parentContext, Object contextBean)(Code)(Java Doc)
public void registerNamespace(String prefix, String namespaceURI)(Code)(Java Doc)
abstract public void removeAll(String xpath)(Code)(Java Doc)
abstract public void removePath(String xpath)(Code)(Java Doc)
public List selectNodes(String xpath)(Code)(Java Doc)
public Object selectSingleNode(String xpath)(Code)(Java Doc)
public void setDecimalFormatSymbols(String name, DecimalFormatSymbols symbols)(Code)(Java Doc)
public void setFactory(AbstractFactory factory)(Code)(Java Doc)
public void setFunctions(Functions functions)(Code)(Java Doc)
public void setIdentityManager(IdentityManager idManager)(Code)(Java Doc)
public void setKeyManager(KeyManager keyManager)(Code)(Java Doc)
public void setLenient(boolean lenient)(Code)(Java Doc)
public void setLocale(Locale locale)(Code)(Java Doc)
public void setNamespaceContextPointer(Pointer namespaceContextPointer)(Code)(Java Doc)
abstract public void setValue(String xpath, Object value)(Code)(Java Doc)
public void setVariables(Variables vars)(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.