Source Code Cross Referenced for SerializerMessages.java in  » XML » xalan » org » apache » xml » serializer » utils » 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 » xalan » org.apache.xml.serializer.utils 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2004 The Apache Software Foundation.
003:         *
004:         * Licensed under the Apache License, Version 2.0 (the "License");
005:         * you may not use this file except in compliance with the License.
006:         * You may obtain a copy of the License at
007:         *
008:         *     http://www.apache.org/licenses/LICENSE-2.0
009:         *
010:         * Unless required by applicable law or agreed to in writing, software
011:         * distributed under the License is distributed on an "AS IS" BASIS,
012:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013:         * See the License for the specific language governing permissions and
014:         * limitations under the License.
015:         */
016:        /*
017:         * $Id: SerializerMessages.java,v 1.9 2005/08/04 23:59:14 minchau Exp $
018:         */
019:        package org.apache.xml.serializer.utils;
020:
021:        import java.util.ListResourceBundle;
022:        import java.util.Locale;
023:        import java.util.MissingResourceException;
024:        import java.util.ResourceBundle;
025:
026:        /**
027:         * An instance of this class is a ListResourceBundle that
028:         * has the required getContents() method that returns
029:         * an array of message-key/message associations.
030:         * <p>
031:         * The message keys are defined in {@link MsgKey}. The
032:         * messages that those keys map to are defined here.
033:         * <p>
034:         * The messages in the English version are intended to be
035:         * translated. 
036:         * 
037:         * This class is not a public API, it is only public because it is 
038:         * used in org.apache.xml.serializer.
039:         * 
040:         * @xsl.usage internal
041:         */
042:        public class SerializerMessages extends ListResourceBundle {
043:
044:            /*
045:             * This file contains error and warning messages related to
046:             * Serializer Error Handling.
047:             *
048:             *  General notes to translators:
049:            
050:             *  1) A stylesheet is a description of how to transform an input XML document
051:             *     into a resultant XML document (or HTML document or text).  The
052:             *     stylesheet itself is described in the form of an XML document.
053:            
054:             *
055:             *  2) An element is a mark-up tag in an XML document; an attribute is a
056:             *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
057:             *     "elem" is an element name, "attr" and "attr2" are attribute names with
058:             *     the values "val" and "val2", respectively.
059:             *
060:             *  3) A namespace declaration is a special attribute that is used to associate
061:             *     a prefix with a URI (the namespace).  The meanings of element names and
062:             *     attribute names that use that prefix are defined with respect to that
063:             *     namespace.
064:             *
065:             *
066:             */
067:
068:            /** The lookup table for error messages.   */
069:            public Object[][] getContents() {
070:                Object[][] contents = new Object[][] {
071:                        { MsgKey.BAD_MSGKEY,
072:                                "The message key ''{0}'' is not in the message class ''{1}''" },
073:
074:                        { MsgKey.BAD_MSGFORMAT,
075:                                "The format of message ''{0}'' in message class ''{1}'' failed." },
076:
077:                        { MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER,
078:                                "The serializer class ''{0}'' does not implement org.xml.sax.ContentHandler." },
079:
080:                        { MsgKey.ER_RESOURCE_COULD_NOT_FIND,
081:                                "The resource [ {0} ] could not be found.\n {1}" },
082:
083:                        { MsgKey.ER_RESOURCE_COULD_NOT_LOAD,
084:                                "The resource [ {0} ] could not load: {1} \n {2} \t {3}" },
085:
086:                        { MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO,
087:                                "Buffer size <=0" },
088:
089:                        { MsgKey.ER_INVALID_UTF16_SURROGATE,
090:                                "Invalid UTF-16 surrogate detected: {0} ?" },
091:
092:                        { MsgKey.ER_OIERROR, "IO error" },
093:
094:                        {
095:                                MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION,
096:                                "Cannot add attribute {0} after child nodes or before an element is produced.  Attribute will be ignored." },
097:
098:                        /*
099:                         * Note to translators:  The stylesheet contained a reference to a
100:                         * namespace prefix that was undefined.  The value of the substitution
101:                         * text is the name of the prefix.
102:                         */
103:                        { MsgKey.ER_NAMESPACE_PREFIX,
104:                                "Namespace for prefix ''{0}'' has not been declared." },
105:
106:                        /*
107:                         * Note to translators:  This message is reported if the stylesheet
108:                         * being processed attempted to construct an XML document with an
109:                         * attribute in a place other than on an element.  The substitution text
110:                         * specifies the name of the attribute.
111:                         */
112:                        { MsgKey.ER_STRAY_ATTRIBUTE,
113:                                "Attribute ''{0}'' outside of element." },
114:
115:                        /*
116:                         * Note to translators:  As with the preceding message, a namespace
117:                         * declaration has the form of an attribute and is only permitted to
118:                         * appear on an element.  The substitution text {0} is the namespace
119:                         * prefix and {1} is the URI that was being used in the erroneous
120:                         * namespace declaration.
121:                         */
122:                        { MsgKey.ER_STRAY_NAMESPACE,
123:                                "Namespace declaration ''{0}''=''{1}'' outside of element." },
124:
125:                        { MsgKey.ER_COULD_NOT_LOAD_RESOURCE,
126:                                "Could not load ''{0}'' (check CLASSPATH), now using just the defaults" },
127:
128:                        {
129:                                MsgKey.ER_ILLEGAL_CHARACTER,
130:                                "Attempt to output character of integral value {0} that is not represented in specified output encoding of {1}." },
131:
132:                        {
133:                                MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY,
134:                                "Could not load the propery file ''{0}'' for output method ''{1}'' (check CLASSPATH)" },
135:
136:                        { MsgKey.ER_INVALID_PORT, "Invalid port number" },
137:
138:                        { MsgKey.ER_PORT_WHEN_HOST_NULL,
139:                                "Port cannot be set when host is null" },
140:
141:                        { MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED,
142:                                "Host is not a well formed address" },
143:
144:                        { MsgKey.ER_SCHEME_NOT_CONFORMANT,
145:                                "The scheme is not conformant." },
146:
147:                        { MsgKey.ER_SCHEME_FROM_NULL_STRING,
148:                                "Cannot set scheme from null string" },
149:
150:                        { MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
151:                                "Path contains invalid escape sequence" },
152:
153:                        { MsgKey.ER_PATH_INVALID_CHAR,
154:                                "Path contains invalid character: {0}" },
155:
156:                        { MsgKey.ER_FRAG_INVALID_CHAR,
157:                                "Fragment contains invalid character" },
158:
159:                        { MsgKey.ER_FRAG_WHEN_PATH_NULL,
160:                                "Fragment cannot be set when path is null" },
161:
162:                        { MsgKey.ER_FRAG_FOR_GENERIC_URI,
163:                                "Fragment can only be set for a generic URI" },
164:
165:                        { MsgKey.ER_NO_SCHEME_IN_URI, "No scheme found in URI" },
166:
167:                        { MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS,
168:                                "Cannot initialize URI with empty parameters" },
169:
170:                        { MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH,
171:                                "Fragment cannot be specified in both the path and fragment" },
172:
173:                        { MsgKey.ER_NO_QUERY_STRING_IN_PATH,
174:                                "Query string cannot be specified in path and query string" },
175:
176:                        { MsgKey.ER_NO_PORT_IF_NO_HOST,
177:                                "Port may not be specified if host is not specified" },
178:
179:                        { MsgKey.ER_NO_USERINFO_IF_NO_HOST,
180:                                "Userinfo may not be specified if host is not specified" },
181:
182:                        {
183:                                MsgKey.ER_XML_VERSION_NOT_SUPPORTED,
184:                                "Warning:  The version of the output document is requested to be ''{0}''.  This version of XML is not supported.  The version of the output document will be ''1.0''." },
185:
186:                        { MsgKey.ER_SCHEME_REQUIRED, "Scheme is required!" },
187:
188:                        /*
189:                         * Note to translators:  The words 'Properties' and
190:                         * 'SerializerFactory' in this message are Java class names
191:                         * and should not be translated.
192:                         */
193:                        {
194:                                MsgKey.ER_FACTORY_PROPERTY_MISSING,
195:                                "The Properties object passed to the SerializerFactory does not have a ''{0}'' property." },
196:
197:                        { MsgKey.ER_ENCODING_NOT_SUPPORTED,
198:                                "Warning:  The encoding ''{0}'' is not supported by the Java runtime." },
199:
200:                };
201:
202:                return contents;
203:            }
204:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.