Java Doc for DynamicQueryContext.java in  » XML » XPath-Saxon » net » sf » saxon » query » 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 » XML » XPath Saxon » net.sf.saxon.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.saxon.query.DynamicQueryContext

DynamicQueryContext
public class DynamicQueryContext (Code)
This object represents a dynamic context for query execution. This class is used by the application writer to set up aspects of the dynamic context; it is not used operationally (or modified) by the XQuery processor itself, which copies all required information into its own internal representation.



Constructor Summary
public  DynamicQueryContext(Configuration config)
    

Method Summary
public  voidclearParameters()
     Reset the parameters to an empty list.
public  ItemgetContextItem()
     Get the context item for the query, as set using setContextItem() or setContextNode().
public  NodeInfogetContextNode()
     Get the context node for the query, as set using setContextNode() or getContextItem() (provided the item is a node).
public  DateTimeValuegetCurrentDateTime()
     Get the date and time set previously using DynamicQueryContext.setCurrentDateTime(net.sf.saxon.value.DateTimeValue) or null if none has been set.
public  ErrorListenergetErrorListener()
     Get the error listener.
public  ObjectgetParameter(String expandedName)
     Get the actual value of a parameter to the query.
protected  HashMapgetParameters()
    
public  URIResolvergetURIResolver()
     Get the URI resolver.
public  voidsetContextItem(Item item)
     Set the context item for evaluating the expression.
public  voidsetContextNode(NodeInfo node)
     Set the context item for evaluating the expression to be a node.
public  voidsetCurrentDateTime(DateTimeValue dateTime)
     Set a value to be used as the current date and time for the query.
public  voidsetErrorListener(ErrorListener listener)
     Set the error listener.
public  voidsetParameter(String expandedName, Object value)
     Set a parameter for the query.
Parameters:
  expandedName - The name of the parameter in "{uri}local-name" format.It is not an error to supply a value for a parameter that has not beendeclared, the parameter will simply be ignored.
public  voidsetURIResolver(URIResolver resolver)
     Set an object that will be used to resolve URIs used in fn:document() and related functions.


Constructor Detail
DynamicQueryContext
public DynamicQueryContext(Configuration config)(Code)




Method Detail
clearParameters
public void clearParameters()(Code)
Reset the parameters to an empty list.



getContextItem
public Item getContextItem()(Code)
Get the context item for the query, as set using setContextItem() or setContextNode(). the context item if set, or null otherwise.
since:
   8.4



getContextNode
public NodeInfo getContextNode()(Code)
Get the context node for the query, as set using setContextNode() or getContextItem() (provided the item is a node). the context node if set, or null otherwise.



getCurrentDateTime
public DateTimeValue getCurrentDateTime()(Code)
Get the date and time set previously using DynamicQueryContext.setCurrentDateTime(net.sf.saxon.value.DateTimeValue) or null if none has been set. the current date and time, if it has been set.
since:
   8.5



getErrorListener
public ErrorListener getErrorListener()(Code)
Get the error listener. the ErrorListener in use
since:
   8.4



getParameter
public Object getParameter(String expandedName)(Code)
Get the actual value of a parameter to the query.
Parameters:
  expandedName - the name of the required parameter, in"{uri}local-name" format the value of the parameter, if it exists, or null otherwise



getParameters
protected HashMap getParameters()(Code)
Get the supplied parameters as a HashMap



getURIResolver
public URIResolver getURIResolver()(Code)
Get the URI resolver. the user-supplied URI resolver if there is one, or thesystem-defined one otherwise
since:
   8.4



setContextItem
public void setContextItem(Item item)(Code)
Set the context item for evaluating the expression. If this method is not called, the context node will be undefined. The context item is available as the value of the expression ".",. To obtain a node by parsing a source document, see the method net.sf.saxon.query.StaticQueryContext.buildDocument buildDocument in class QueryProcessor.
Parameters:
  item - The item that is to be the context item for the query
since:
   8.4



setContextNode
public void setContextNode(NodeInfo node)(Code)
Set the context item for evaluating the expression to be a node. If this method is not called, the context node will be undefined. The context node is available as the value of the expression ".". To obtain a NodeInfo by parsing a source document, see the method net.sf.saxon.query.StaticQueryContext.buildDocument buildDocument in class QueryProcessor.
Parameters:
  node - The node that is to be the context node for the query
since:
   8.4



setCurrentDateTime
public void setCurrentDateTime(DateTimeValue dateTime) throws XPathException(Code)
Set a value to be used as the current date and time for the query. By default, the "real" current date and time are used. The main purpose of this method is that it allows repeatable results to be achieved when testing queries
Parameters:
  dateTime - The value to be used as the current date and time. This must include a timezone.
since:
   8.5



setErrorListener
public void setErrorListener(ErrorListener listener)(Code)
Set the error listener. The error listener receives reports of all run-time errors and can decide how to report them.
Parameters:
  listener - the ErrorListener to be used
since:
   8.4



setParameter
public void setParameter(String expandedName, Object value)(Code)
Set a parameter for the query.
Parameters:
  expandedName - The name of the parameter in "{uri}local-name" format.It is not an error to supply a value for a parameter that has not beendeclared, the parameter will simply be ignored. If the parameter hasbeen declared in the query (as an external global variable) then itwill be initialized with the value supplied.
Parameters:
  value - The value of the parameter. This can be any valid Javaobject. It follows the same conversion rules as a value returnedfrom a Saxon extension function. An error will occur at queryexecution time if the supplied value cannot be converted to the requiredtype as declared in the query. For precise control of the type of thevalue, instantiate one of the classes in the net.sf.saxon.value package,for example net.sf.saxon.value.DayTimeDuration.
since:
   8.4



setURIResolver
public void setURIResolver(URIResolver resolver)(Code)
Set an object that will be used to resolve URIs used in fn:document() and related functions.
Parameters:
  resolver - An object that implements the URIResolver interface, ornull.
since:
   8.4



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.