Source Code Cross Referenced for TestDataModule.java in  » Internationalization-Localization » icu4j » com » ibm » icu » dev » test » 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 » Internationalization Localization » icu4j » com.ibm.icu.dev.test 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        //##header
002:        /**
003:         *******************************************************************************
004:         * Copyright (C) 2001-2006, International Business Machines Corporation and    *
005:         * others. All Rights Reserved.                                                *
006:         *******************************************************************************
007:         */package com.ibm.icu.dev.test;
008:
009:        import java.util.Iterator;
010:
011:        /**
012:         * Represents a collection of test data described in a file.
013:         * 
014:         */
015:        public interface TestDataModule {
016:            /**
017:             * Return the name of this test data module.
018:             */
019:            public String getName();
020:
021:            /**
022:             * Get additional data related to the module, e.g. DESCRIPTION,
023:             * global settings.  Might be null.
024:             */
025:            public DataMap getInfo();
026:
027:            /**
028:             * Returns the TestData corresponding to name, or null if name not
029:             * found in this module.  Throw error if name is not found.  
030:             * @throws DataModuleFormatError
031:             */
032:            public TestData getTestData(String name)
033:                    throws DataModuleFormatError;
034:
035:            /**
036:             * @return Iterator<TestData>
037:             */
038:            public Iterator getTestDataIterator();
039:
040:            public static class Factory {
041:
042:                static final TestDataModule get(String baseName,
043:                        String localeName) throws DataModuleFormatError {
044:                    return new ResourceModule(baseName, localeName);
045:                }
046:            }
047:
048:            public static class DataModuleFormatError extends Exception {
049:                public DataModuleFormatError(String msg) {
050:                    super (msg);
051:                }
052:
053:                //#ifndef FOUNDATION
054:                public DataModuleFormatError(String msg, Throwable cause) {
055:                    super (msg, cause);
056:                }
057:
058:                public DataModuleFormatError(Throwable cause) {
059:                    super (cause);
060:                }
061:                //#endif
062:            }
063:
064:            /**
065:             * Represents a single test in the module.
066:             */
067:            public static interface TestData {
068:                public String getName();
069:
070:                /**
071:                 * Get additional data related to the test data, e.g. DESCRIPTION,
072:                 * global settings.  Might be null.
073:                 */
074:                public DataMap getInfo();
075:
076:                /**
077:                 * @return Iterator<DataMap>
078:                 */
079:                public Iterator getSettingsIterator();
080:
081:                /**
082:                 * @return Iterator<DataMap>
083:                 */
084:                public Iterator getDataIterator();
085:            }
086:
087:            /**
088:             * Map-like interface for accessing key-value pairs by key.
089:             * If the vaule is not found by given key, return null. 
090:             * The behavior is analogous the get() method of the Map interface.
091:             * 
092:             * @author Raymond Yang
093:             */
094:            public interface DataMap {
095:                //    public abstract boolean    isDefined(String key);
096:                //
097:                public abstract Object getObject(String key);
098:
099:                public abstract String getString(String key);
100:                //    public abstract char       getChar(String key);
101:                //    public abstract int        getInt(String key);
102:                //    public abstract byte       getByte(String key);
103:                //    public abstract boolean    getBoolean(String key);
104:                //
105:                //    public abstract Object[]   getObjectArray(String key);
106:                //    public abstract String[]   getStringArray(String key);
107:                //    public abstract char[]     getCharArray(String key);
108:                //    public abstract int[]      getIntArray(String key);
109:                //    public abstract byte[]     getByteArray(String key);
110:                //    public abstract boolean[]  getBooleanArray(String key);
111:            }
112:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.