Java Doc for EventMatcher.java in  » XML » stax-utils » javanet » staxutils » helpers » 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 » stax utils » javanet.staxutils.helpers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javanet.staxutils.helpers.EventMatcher

EventMatcher
final public class EventMatcher (Code)
Provides utility methods useful for comparing two XMLEvent instances. These methods compare only location/type-independent information, and thus don't perform strict equality testing, which would include the event's location, schema-type and dtd-type.
author:
   Christian Niles
version:
   $Revision: 1.2 $




Method Summary
public static  booleaneventsMatch(XMLEvent a, XMLEvent b)
     Compares two XMLEvent instances.
public static  booleaneventsMatch(Attribute a, Attribute b)
     Compares two Attribute s, returning true if their names and values are the same.
Parameters:
  a - The first event.
Parameters:
  b - The second event.
public static  booleaneventsMatch(Characters a, Characters b)
     Compares two Characters s.
public static  booleaneventsMatch(Comment a, Comment b)
     Compares two Comment s.
public static  booleaneventsMatch(DTD a, DTD b)
     Compares two DTD s.
public static  booleaneventsMatch(EndDocument a, EndDocument b)
     Compares two EndDocument s.
public static  booleaneventsMatch(EndElement a, EndElement b)
     Compares two EndElement s.
public static  booleaneventsMatch(EntityDeclaration a, EntityDeclaration b)
     Compares two EntityDeclaration s.
public static  booleaneventsMatch(EntityReference a, EntityReference b)
     Compares two EntityReference s.
public static  booleaneventsMatch(Namespace a, Namespace b)
     Compares two Namespace s.
public static  booleaneventsMatch(NotationDeclaration a, NotationDeclaration b)
     Compares two NotationDeclaration s.
public static  booleaneventsMatch(ProcessingInstruction a, ProcessingInstruction b)
     Compares two ProcessingInstruction s.
public static  booleaneventsMatch(StartDocument a, StartDocument b)
     Compares two StartDocument s.
public static  booleaneventsMatch(StartElement a, StartElement b)
     Compares two StartElement s.
public static  booleanmatchAttributes(Iterator a, Iterator b)
     Iterates over two sets of Attribute s and determines if both contain matching attributes.
Parameters:
  a - The first set of Attributes.
Parameters:
  b - The second set of Attributes.
public static  booleanmatchNamespaces(Iterator a, Iterator b)
     Iterates over two sets of Namespace s and determines if both contain matching namespaces.
Parameters:
  a - The first set of Namespaces.
Parameters:
  b - The second set of Namespaces.



Method Detail
eventsMatch
public static boolean eventsMatch(XMLEvent a, XMLEvent b)(Code)
Compares two XMLEvent instances. This method delegates actual matching to the appropriate overloaded method.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(Attribute a, Attribute b)(Code)
Compares two Attribute s, returning true if their names and values are the same.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(Characters a, Characters b)(Code)
Compares two Characters s. This method will return true only if they have the same event type ( XMLEvent.CHARACTERS , XMLEvent.CDATA , or XMLEvent.SPACE ), and their text content matches.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(Comment a, Comment b)(Code)
Compares two Comment s. This method will return true only if their text content matches.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(DTD a, DTD b)(Code)
Compares two DTD s. This method will return true only if their declarations are identical.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(EndDocument a, EndDocument b)(Code)
Compares two EndDocument s. Because EndDocument events have no real state, two instances always match.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(EndElement a, EndElement b)(Code)
Compares two EndElement s. This method will return true only if their names match.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(EntityDeclaration a, EntityDeclaration b)(Code)
Compares two EntityDeclaration s. This method will return true only if the two events' names, replacement text, public IDs, system IDs, and notations are the same.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(EntityReference a, EntityReference b)(Code)
Compares two EntityReference s. This method will return true only if the two references have the same name, and their declarations also match.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(Namespace a, Namespace b)(Code)
Compares two Namespace s. This method will return true only if the two namespaces have identical prefixes and namespace URIs.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(NotationDeclaration a, NotationDeclaration b)(Code)
Compares two NotationDeclaration s. This method will return true only if the two namespaces have identical names, public IDs, and system IDs.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(ProcessingInstruction a, ProcessingInstruction b)(Code)
Compares two ProcessingInstruction s. This method will return true only if the two events have identical targets and data.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(StartDocument a, StartDocument b)(Code)
Compares two StartDocument s. This method will return true only if the two events have identical encodings, versions, and have the same standalone setting.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



eventsMatch
public static boolean eventsMatch(StartElement a, StartElement b)(Code)
Compares two StartElement s. This method will return true only if the two events have identical names, attributes, and namespaces.
Parameters:
  a - The first event.
Parameters:
  b - The second event. true if the events match, false otherwise.



matchAttributes
public static boolean matchAttributes(Iterator a, Iterator b)(Code)
Iterates over two sets of Attribute s and determines if both contain matching attributes.
Parameters:
  a - The first set of Attributes.
Parameters:
  b - The second set of Attributes. true if the two iterators iterate over matchingattributes, false otherwise.



matchNamespaces
public static boolean matchNamespaces(Iterator a, Iterator b)(Code)
Iterates over two sets of Namespace s and determines if both contain matching namespaces.
Parameters:
  a - The first set of Namespaces.
Parameters:
  b - The second set of Namespaces. true if the two iterators iterate over matchingnamespaces, false otherwise.



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.