Java Doc for AbstractXPathTest.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » tree » xpath » 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 configuration 1.4 src » org.apache.commons.configuration.tree.xpath 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.tree.xpath.AbstractXPathTest

All known Subclasses:   org.apache.commons.configuration.tree.xpath.TestConfigurationNodePointerFactory,  org.apache.commons.configuration.tree.xpath.TestConfigurationNodeIteratorChildren,  org.apache.commons.configuration.tree.xpath.TestConfigurationNodePointer,  org.apache.commons.configuration.tree.xpath.TestConfigurationIteratorAttributes,
AbstractXPathTest
abstract public class AbstractXPathTest extends TestCase (Code)
A base class for testing classes of the XPath package. This base class creates a hierarchy of nodes in its setUp() method that can be used for test cases.
author:
   Oliver Heger
version:
   $Id: AbstractXPathTest.java 505938 2007-02-11 12:41:13Z brett $


Field Summary
final protected static  StringATTR_NAME
     Constant for the name of the counter attribute.
final protected static  intCHILD_COUNT
     Constant for the number of sub nodes.
final protected static  StringCHILD_NAME1
     Constant for the name of the first child.
final protected static  StringCHILD_NAME2
     Constant for the name of the second child.
final protected static  intLEVEL_COUNT
     Constant for the number of levels in the hierarchy.
protected  ConfigurationNoderoot
     Stores the root node of the hierarchy.


Method Summary
protected  ConfigurationNodeconstructHierarchy(int levels)
     Builds up a hierarchy of nodes.
protected  ListiterationElements(NodeIterator iterator)
     Returns a list with all configuration nodes contained in the specified iteration.
protected  intiteratorSize(NodeIterator iterator)
     Determines the number of elements contained in the given iterator.
protected  voidsetUp()
    
protected  voidtearDown()
     Clears the test environment.

Field Detail
ATTR_NAME
final protected static String ATTR_NAME(Code)
Constant for the name of the counter attribute.



CHILD_COUNT
final protected static int CHILD_COUNT(Code)
Constant for the number of sub nodes.



CHILD_NAME1
final protected static String CHILD_NAME1(Code)
Constant for the name of the first child.



CHILD_NAME2
final protected static String CHILD_NAME2(Code)
Constant for the name of the second child.



LEVEL_COUNT
final protected static int LEVEL_COUNT(Code)
Constant for the number of levels in the hierarchy.



root
protected ConfigurationNode root(Code)
Stores the root node of the hierarchy.





Method Detail
constructHierarchy
protected ConfigurationNode constructHierarchy(int levels)(Code)
Builds up a hierarchy of nodes. Each node has CHILD_COUNT child nodes having the names CHILD_NAME1 or CHILD_NAME2. Their values are named like their parent node with an additional index. Each node has an attribute with a counter value.
Parameters:
  levels - the number of levels in the hierarchy the root node of the hierarchy



iterationElements
protected List iterationElements(NodeIterator iterator)(Code)
Returns a list with all configuration nodes contained in the specified iteration. It is assumed that the iteration contains only elements of this type.
Parameters:
  iterator - the iterator a list with configuration nodes obtained from the iterator



iteratorSize
protected int iteratorSize(NodeIterator iterator)(Code)
Determines the number of elements contained in the given iterator.
Parameters:
  iterator - the iterator the number of elements in this iteration



setUp
protected void setUp() throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)
Clears the test environment.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.