Java Doc for XPathMatcher.java in  » Web-Server » Rimfaxe-Web-Server » org » apache » xerces » validators » schema » identity » 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 » Web Server » Rimfaxe Web Server » org.apache.xerces.validators.schema.identity 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.validators.schema.identity.XPathMatcher

XPathMatcher
public class XPathMatcher (Code)
XPath matcher.
author:
   Andy Clark, IBM
version:
   $Id: XPathMatcher.java,v 1.14 2001/05/15 22:18:12 neilg Exp $


Field Summary
final protected static  booleanDEBUG_ALL
     Compile to true to debug everything.
final protected static  booleanDEBUG_ANY
     Don't touch this value unless you add more debug constants.
final protected static  booleanDEBUG_MATCH
     Compile to true to debug match.
final protected static  booleanDEBUG_METHODS
     Compile to true to debug method callbacks.
final protected static  booleanDEBUG_METHODS2
     Compile to true to debug important method callbacks.
final protected static  booleanDEBUG_METHODS3
     Compile to true to debug the really important methods.
final protected static  booleanDEBUG_STACK
     Compile to true to debug step index stack.
protected  IdentityConstraintfIDConstraint
    
protected  NamespacesScopefNamespacesScope
     Namespace scope.
protected  StringPoolfStringPool
     String pool.

Constructor Summary
public  XPathMatcher(XPath xpath)
     Constructs an XPath matcher that implements a document fragment handler.
public  XPathMatcher(XPath xpath, boolean shouldBufferContent, IdentityConstraint idConstraint)
     Constructs an XPath matcher that implements a document fragment handler.

Method Summary
public  voidcharacters(char[] ch, int offset, int length)
     Character content.
public  voidendDocumentFragment()
     The end of the document fragment.
public  voidendElement(QName element, int eIndex, SchemaGrammar grammar)
     The end of an element.
Parameters:
  element - The name of the element.
public  IdentityConstraintgetIDConstraint()
    
public  booleangetIsSelector()
    
public  StringgetMatchedString()
     Returns the matched string.
public  booleanisMatched()
     Returns true if XPath has been matched.
protected  voidmatched(String content, DatatypeValidator val, boolean isNil)
     This method is called when the XPath handler matches the XPath expression.
public  voidstartDocumentFragment(StringPool stringPool)
     The start of the document fragment.
Parameters:
  namespaceScope - The namespace scope in effect at thestart of this document fragment.
public  voidstartElement(QName element, XMLAttrList attributes, int handle, int eIndex, SchemaGrammar grammar)
     The start of an element.
public  StringtoString()
     Returns a string representation of this object.

Field Detail
DEBUG_ALL
final protected static boolean DEBUG_ALL(Code)
Compile to true to debug everything.



DEBUG_ANY
final protected static boolean DEBUG_ANY(Code)
Don't touch this value unless you add more debug constants.



DEBUG_MATCH
final protected static boolean DEBUG_MATCH(Code)
Compile to true to debug match.



DEBUG_METHODS
final protected static boolean DEBUG_METHODS(Code)
Compile to true to debug method callbacks.



DEBUG_METHODS2
final protected static boolean DEBUG_METHODS2(Code)
Compile to true to debug important method callbacks.



DEBUG_METHODS3
final protected static boolean DEBUG_METHODS3(Code)
Compile to true to debug the really important methods.



DEBUG_STACK
final protected static boolean DEBUG_STACK(Code)
Compile to true to debug step index stack.



fIDConstraint
protected IdentityConstraint fIDConstraint(Code)



fNamespacesScope
protected NamespacesScope fNamespacesScope(Code)
Namespace scope.



fStringPool
protected StringPool fStringPool(Code)
String pool.




Constructor Detail
XPathMatcher
public XPathMatcher(XPath xpath)(Code)
Constructs an XPath matcher that implements a document fragment handler.
Parameters:
  xpath - The xpath.



XPathMatcher
public XPathMatcher(XPath xpath, boolean shouldBufferContent, IdentityConstraint idConstraint)(Code)
Constructs an XPath matcher that implements a document fragment handler.
Parameters:
  xpath - The xpath.
Parameters:
  shouldBufferContent - True if the matcher should buffer thematched content. idConstraint: the identity constraint we're matching for; null unless it's a Selector.




Method Detail
characters
public void characters(char[] ch, int offset, int length) throws Exception(Code)
Character content.



endDocumentFragment
public void endDocumentFragment() throws Exception(Code)
The end of the document fragment.
throws:
  SAXException - Thrown by handler to signal an error.



endElement
public void endElement(QName element, int eIndex, SchemaGrammar grammar) throws Exception(Code)
The end of an element.
Parameters:
  element - The name of the element. eIndex: the elementDeclIndex of the current element;needed so that we can look up its datatypeValidator.
throws:
  SAXException - Thrown by handler to signal an error.



getIDConstraint
public IdentityConstraint getIDConstraint()(Code)



getIsSelector
public boolean getIsSelector()(Code)



getMatchedString
public String getMatchedString()(Code)
Returns the matched string.



isMatched
public boolean isMatched()(Code)
Returns true if XPath has been matched.



matched
protected void matched(String content, DatatypeValidator val, boolean isNil) throws Exception(Code)
This method is called when the XPath handler matches the XPath expression. Subclasses can override this method to provide default handling upon a match.



startDocumentFragment
public void startDocumentFragment(StringPool stringPool) throws Exception(Code)
The start of the document fragment.
Parameters:
  namespaceScope - The namespace scope in effect at thestart of this document fragment. grammar: the schema grammar we're validating against.
throws:
  SAXException - Thrown by handler to signal an error.



startElement
public void startElement(QName element, XMLAttrList attributes, int handle, int eIndex, SchemaGrammar grammar) throws Exception(Code)
The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods.
Parameters:
  element - The name of the element.
Parameters:
  attributes - The element attributes. eIndex: the element index of the current element grammar: the currently-active Schema Grammar
throws:
  SAXException - Thrown by handler to signal an error.



toString
public String toString()(Code)
Returns a string representation of this object.



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.