Source Code Cross Referenced for SymbolTable.java in  » 6.0-JDK-Modules-sun » text » sun » text » normalizer » 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 » 6.0 JDK Modules sun » text » sun.text.normalizer 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Portions Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
003:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004:         *
005:         * This code is free software; you can redistribute it and/or modify it
006:         * under the terms of the GNU General Public License version 2 only, as
007:         * published by the Free Software Foundation.  Sun designates this
008:         * particular file as subject to the "Classpath" exception as provided
009:         * by Sun in the LICENSE file that accompanied this code.
010:         *
011:         * This code is distributed in the hope that it will be useful, but WITHOUT
012:         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013:         * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
014:         * version 2 for more details (a copy is included in the LICENSE file that
015:         * accompanied this code).
016:         *
017:         * You should have received a copy of the GNU General Public License version
018:         * 2 along with this work; if not, write to the Free Software Foundation,
019:         * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020:         *
021:         * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022:         * CA 95054 USA or visit www.sun.com if you need additional information or
023:         * have any questions.
024:         */
025:
026:        /*
027:         *******************************************************************************
028:         * (C) Copyright IBM Corp. 1996-2005 - All Rights Reserved                     *
029:         *                                                                             *
030:         * The original version of this source code and documentation is copyrighted   *
031:         * and owned by IBM, These materials are provided under terms of a License     *
032:         * Agreement between IBM and Sun. This technology is protected by multiple     *
033:         * US and International patents. This notice and attribution to IBM may not    *
034:         * to removed.                                                                 *
035:         *******************************************************************************
036:         */
037:
038:        package sun.text.normalizer;
039:
040:        import java.text.ParsePosition;
041:
042:        /**
043:         * An interface that defines both lookup protocol and parsing of
044:         * symbolic names.
045:         *
046:         * <p>A symbol table maintains two kinds of mappings.  The first is
047:         * between symbolic names and their values.  For example, if the
048:         * variable with the name "start" is set to the value "alpha"
049:         * (perhaps, though not necessarily, through an expression such as
050:         * "$start=alpha"), then the call lookup("start") will return the
051:         * char[] array ['a', 'l', 'p', 'h', 'a'].
052:         *
053:         * <p>The second kind of mapping is between character values and
054:         * UnicodeMatcher objects.  This is used by RuleBasedTransliterator,
055:         * which uses characters in the private use area to represent objects
056:         * such as UnicodeSets.  If U+E015 is mapped to the UnicodeSet [a-z],
057:         * then lookupMatcher(0xE015) will return the UnicodeSet [a-z].
058:         *
059:         * <p>Finally, a symbol table defines parsing behavior for symbolic
060:         * names.  All symbolic names start with the SYMBOL_REF character.
061:         * When a parser encounters this character, it calls parseReference()
062:         * with the position immediately following the SYMBOL_REF.  The symbol
063:         * table parses the name, if there is one, and returns it.
064:         *
065:         * @draft ICU 2.8
066:         * @deprecated This is a draft API and might change in a future release of ICU.
067:         */
068:        public interface SymbolTable {
069:
070:            /**
071:             * The character preceding a symbol reference name.
072:             * @draft ICU 2.8
073:             * @deprecated This is a draft API and might change in a future release of ICU.
074:             */
075:            static final char SYMBOL_REF = '$';
076:
077:            /**
078:             * Lookup the characters associated with this string and return it.
079:             * Return <tt>null</tt> if no such name exists.  The resultant
080:             * array may have length zero.
081:             * @param s the symbolic name to lookup
082:             * @return a char array containing the name's value, or null if
083:             * there is no mapping for s.
084:             * @draft ICU 2.8
085:             * @deprecated This is a draft API and might change in a future release of ICU.
086:             */
087:            char[] lookup(String s);
088:
089:            /**
090:             * Lookup the UnicodeMatcher associated with the given character, and
091:             * return it.  Return <tt>null</tt> if not found.
092:             * @param ch a 32-bit code point from 0 to 0x10FFFF inclusive.
093:             * @return the UnicodeMatcher object represented by the given
094:             * character, or null if there is no mapping for ch.
095:             * @draft ICU 2.8
096:             * @deprecated This is a draft API and might change in a future release of ICU.
097:             */
098:            UnicodeMatcher lookupMatcher(int ch);
099:
100:            /**
101:             * Parse a symbol reference name from the given string, starting
102:             * at the given position.  If no valid symbol reference name is
103:             * found, return null and leave pos unchanged.  That is, if the
104:             * character at pos cannot start a name, or if pos is at or after
105:             * text.length(), then return null.  This indicates an isolated
106:             * SYMBOL_REF character.
107:             * @param text the text to parse for the name
108:             * @param pos on entry, the index of the first character to parse.
109:             * This is the character following the SYMBOL_REF character.  On
110:             * exit, the index after the last parsed character.  If the parse
111:             * failed, pos is unchanged on exit.
112:             * @param limit the index after the last character to be parsed.
113:             * @return the parsed name, or null if there is no valid symbolic
114:             * name at the given position.
115:             * @draft ICU 2.8
116:             * @deprecated This is a draft API and might change in a future release of ICU.
117:             */
118:            String parseReference(String text, ParsePosition pos, int limit);
119:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.