Java Doc for XPathModelImpl.java in  » IDE-Netbeans » xml » org » netbeans » modules » xml » xpath » impl » 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 » IDE Netbeans » xml » org.netbeans.modules.xml.xpath.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.xml.xpath.impl.XPathModelImpl

XPathModelImpl
public class XPathModelImpl implements XPathModel(Code)
Implementation of the XPathModel interface using Apache's JXPath. JXPath does not validate function arguments, i.e., whether the number of arguments is correct, so we may have to do that validation ourselves or wait for a later version.

We also implement extensions to handle expressions in BPEL4WS.
author:
   Enrico Lelina
version:
  




Constructor Summary
public  XPathModelImpl()
     Instantiates a new object.

Method Summary
 intgetAxis(int code)
     Gets the axis.
 intgetCoreFunctionCode(CoreFunction coreFunction)
    
 intgetCoreOperationCode(CoreOperation coreOperation)
     Gets the core operation code.
 intgetNodeType(int code)
     Gets the node type.
static  booleanisValidFunction(String functionName)
     Determines if a function name is valid.
public  XPathExpressionparseExpression(String expression)
     Parses an XPath expression.
 XPathExpressionprocessConstant(Constant constant)
     Processes a Constant expression.
 XPathExpressionprocessCoreFunction(CoreFunction coreFunction)
     Processes a CoreFunction expression.
 XPathExpressionprocessCoreOperation(CoreOperation coreOperation)
     Processes a CoreOperation expression.
 XPathExpressionprocessExpression(Expression expression)
     Processes the parsed expression to build an XPathExpression.
 XPathExpressionprocessExpressionPath(ExpressionPath expressionPath)
     Processes a ExpressionPath expression.
 XPathExpressionprocessExtensionFunction(ExtensionFunction extensionFunction)
     Processes an ExtensionFunction expression.
 XPathExpressionprocessLocationPath(LocationPath locationPath)
     Processes a LocationPath expression.
 LocationStepprocessStep(Step step)
     Processes a step in a location path.
 XPathExpressionprocessVariableReference(VariableReference varRef)
    


Constructor Detail
XPathModelImpl
public XPathModelImpl()(Code)
Instantiates a new object.




Method Detail
getAxis
int getAxis(int code)(Code)
Gets the axis.
Parameters:
  code - the axis code the axis type or -1 if invalid



getCoreFunctionCode
int getCoreFunctionCode(CoreFunction coreFunction)(Code)
Gets the core function code
Parameters:
  coreFunction - the core function the function code or -1 if invalid
throws:
  XPathException - invalid operation



getCoreOperationCode
int getCoreOperationCode(CoreOperation coreOperation)(Code)
Gets the core operation code.
Parameters:
  coreOperation - the core operation the operation code or -1 if invalid
throws:
  XPathException - invalid operation



getNodeType
int getNodeType(int code)(Code)
Gets the node type.
Parameters:
  code - the node type code the node type or -1 if invalid



isValidFunction
static boolean isValidFunction(String functionName)(Code)
Determines if a function name is valid. Assumes the function name is not one of the core functions.
Parameters:
  functionName - the name of the function true if the function name is valid, false otherwise



parseExpression
public XPathExpression parseExpression(String expression) throws XPathException(Code)
Parses an XPath expression.
Parameters:
  expression - the XPath expression to parse an instance of XPathExpression
throws:
  XPathException - for any parsing errors



processConstant
XPathExpression processConstant(Constant constant) throws XPathException(Code)
Processes a Constant expression.
Parameters:
  constant - the constant the constant expression
throws:
  XPathException - for any errors



processCoreFunction
XPathExpression processCoreFunction(CoreFunction coreFunction) throws XPathException(Code)
Processes a CoreFunction expression. Converts the CoreFunction into an XPathExpression and then adds it into the list of values. Then each argument of the CoreFunction is processed.
Parameters:
  coreFunction - the core function the core function expression
throws:
  XPathException - for any errors



processCoreOperation
XPathExpression processCoreOperation(CoreOperation coreOperation) throws XPathException(Code)
Processes a CoreOperation expression. Converts the CoreOperation into an XPathExpression and then adds it into the list of values. Then each argument of the CoreOperation is processed.
Parameters:
  coreOperation - the core operation the core operation expression
throws:
  XPathException - for any errors



processExpression
XPathExpression processExpression(Expression expression) throws XPathException(Code)
Processes the parsed expression to build an XPathExpression.
Parameters:
  expression - the parsed expression an instance of XPathExpression
throws:
  XPathException - for any errors



processExpressionPath
XPathExpression processExpressionPath(ExpressionPath expressionPath) throws XPathException(Code)
Processes a ExpressionPath expression. Converts the ExpressionPath into a TreePath whose components are nodes in the given schema model. Adds the TreePath into the list of values. Each step in the location path is equivalent to a TreePath component. TO DO: handle predicates! TO DO: special handling for relative paths!
Parameters:
  expressionPath - the location path the expression path expression
throws:
  XPathException - for any errors



processExtensionFunction
XPathExpression processExtensionFunction(ExtensionFunction extensionFunction) throws XPathException(Code)
Processes an ExtensionFunction expression. Converts the ExtensionFunction into an XPathExpression and then adds it into the list of values. Then each argument of the ExtensionFunction is processed.
Parameters:
  extensionFunction - the extension function the extension function expression
throws:
  XPathException - for any errors



processLocationPath
XPathExpression processLocationPath(LocationPath locationPath) throws XPathException(Code)
Processes a LocationPath expression. Converts the LocationPath into a TreePath whose components are nodes in the given schema model. Adds the TreePath into the list of values. Each step in the location path is equivalent to a TreePath component. TO DO: handle predicates! TO DO: special handling for relative paths!
Parameters:
  locationPath - the location path the location path expression
throws:
  XPathException - for any errors



processStep
LocationStep processStep(Step step) throws XPathException(Code)
Processes a step in a location path.
Parameters:
  step - the step in the location path the location step
throws:
  XPathException - for any errors



processVariableReference
XPathExpression processVariableReference(VariableReference varRef) throws XPathException(Code)



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.