author | mkos |
Sun, 30 Dec 2012 00:00:00 +0100 | |
changeset 22678 | ac1ea46be942 |
parent 12009 | 4abb694f273a |
permissions | -rw-r--r-- |
12009 | 1 |
/* |
22678
ac1ea46be942
8029237: Update copyright year to match last edit in jaxws repository for 2012
mkos
parents:
12009
diff
changeset
|
2 |
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
12009 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package com.sun.tools.internal.xjc.reader.xmlschema; |
|
27 |
||
28 |
import java.text.MessageFormat; |
|
29 |
import java.util.ResourceBundle; |
|
30 |
||
31 |
/** |
|
32 |
* Formats error messages. |
|
33 |
*/ |
|
34 |
public class Messages |
|
35 |
{ |
|
36 |
/** Loads a string resource and formats it with specified arguments. */ |
|
37 |
public static String format( String property, Object... args ) { |
|
38 |
String text = ResourceBundle.getBundle(Messages.class.getPackage().getName() +".MessageBundle").getString(property); |
|
39 |
return MessageFormat.format(text,args); |
|
40 |
} |
|
41 |
||
42 |
||
43 |
static final String WARN_NO_GLOBAL_ELEMENT = |
|
44 |
"BGMBuilder.NoGlobalElement"; |
|
45 |
||
46 |
public static final String WARN_UNUSED_EXPECTED_CONTENT_TYPES = |
|
47 |
"UnusedCustomizationChecker.WarnUnusedExpectedContentTypes"; |
|
48 |
||
49 |
static final String ERR_MULTIPLE_SCHEMA_BINDINGS = |
|
50 |
"BGMBuilder.MultipleSchemaBindings"; // arg:1 |
|
51 |
||
52 |
static final String ERR_MULTIPLE_SCHEMA_BINDINGS_LOCATION = |
|
53 |
"BGMBuilder.MultipleSchemaBindings.Location"; // arg:0 |
|
54 |
||
55 |
static final String JAVADOC_HEADING = // 1 arg |
|
56 |
"ClassSelector.JavadocHeading"; |
|
57 |
||
58 |
static final String ERR_RESERVED_CLASS_NAME = // 1 arg |
|
59 |
"ClassSelector.ReservedClassName"; |
|
60 |
||
61 |
static final String ERR_CLASS_NAME_IS_REQUIRED = |
|
62 |
"ClassSelector.ClassNameIsRequired"; // arg:0 |
|
63 |
||
64 |
static final String ERR_INCORRECT_CLASS_NAME = |
|
65 |
"ClassSelector.IncorrectClassName"; // arg:1 |
|
66 |
||
67 |
static final String ERR_INCORRECT_PACKAGE_NAME = |
|
68 |
"ClassSelector.IncorrectPackageName"; // arg:2 |
|
69 |
||
70 |
static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM = |
|
71 |
"ConversionFinder.CannotBeTypeSafeEnum"; // arg:0 |
|
72 |
||
73 |
static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM_LOCATION = |
|
74 |
"ConversionFinder.CannotBeTypeSafeEnum.Location"; // arg:0 |
|
75 |
||
76 |
static final String ERR_NO_ENUM_NAME_AVAILABLE = |
|
77 |
"ConversionFinder.NoEnumNameAvailable"; // arg:0 |
|
78 |
||
79 |
static final String ERR_NO_ENUM_FACET = |
|
80 |
"ConversionFinder.NoEnumFacet"; // arg:0 |
|
81 |
||
82 |
static final String ERR_ILLEGAL_EXPECTED_MIME_TYPE = |
|
83 |
"ERR_ILLEGAL_EXPECTED_MIME_TYPE"; // args:2 |
|
84 |
||
85 |
static final String ERR_DATATYPE_ERROR = |
|
86 |
"DatatypeBuilder.DatatypeError"; // arg:1 |
|
87 |
||
88 |
static final String ERR_UNABLE_TO_GENERATE_NAME_FROM_MODELGROUP = |
|
89 |
"DefaultParticleBinder.UnableToGenerateNameFromModelGroup"; // arg:0 |
|
90 |
||
91 |
static final String ERR_INCORRECT_FIXED_VALUE = |
|
92 |
"FieldBuilder.IncorrectFixedValue"; // arg:1 |
|
93 |
||
94 |
static final String ERR_INCORRECT_DEFAULT_VALUE = |
|
95 |
"FieldBuilder.IncorrectDefaultValue"; // arg:1 |
|
96 |
||
97 |
static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE = |
|
98 |
"FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse"; // arg:2 |
|
99 |
||
100 |
static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE_SOURCE = |
|
101 |
"FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse.Source"; // arg:0 |
|
102 |
||
103 |
static final String ERR_UNNESTED_JAVATYPE_CUSTOMIZATION_ON_SIMPLETYPE = |
|
104 |
"SimpleTypeBuilder.UnnestedJavaTypeCustomization"; // arg:0 |
|
105 |
||
106 |
static final String JAVADOC_NIL_PROPERTY = |
|
107 |
"FieldBuilder.Javadoc.NilProperty"; // arg:1 |
|
108 |
||
109 |
static final String JAVADOC_LINE_UNKNOWN = // 0 args |
|
110 |
"ClassSelector.JavadocLineUnknown"; |
|
111 |
||
112 |
static final String JAVADOC_VALUEOBJECT_PROPERTY = |
|
113 |
"FieldBuilder.Javadoc.ValueObject"; // args:2 |
|
114 |
||
115 |
static final String MSG_COLLISION_INFO = |
|
116 |
"CollisionInfo.CollisionInfo"; // args:3 |
|
117 |
||
118 |
static final String MSG_UNKNOWN_FILE = |
|
119 |
"CollisionInfo.UnknownFile"; // arg:1 |
|
120 |
||
121 |
static final String MSG_LINE_X_OF_Y = |
|
122 |
"CollisionInfo.LineXOfY"; // args:2 |
|
123 |
||
124 |
static final String MSG_FALLBACK_JAVADOC = |
|
125 |
"DefaultParticleBinder.FallbackJavadoc"; // arg:1 |
|
126 |
||
127 |
static final String ERR_ENUM_MEMBER_NAME_COLLISION = |
|
128 |
"ERR_ENUM_MEMBER_NAME_COLLISION"; |
|
129 |
static final String ERR_ENUM_MEMBER_NAME_COLLISION_RELATED = |
|
130 |
"ERR_ENUM_MEMBER_NAME_COLLISION_RELATED"; |
|
131 |
static final String ERR_CANNOT_GENERATE_ENUM_NAME = |
|
132 |
"ERR_CANNOT_GENERATE_ENUM_NAME"; |
|
133 |
static final String WARN_ENUM_MEMBER_SIZE_CAP = |
|
134 |
"WARN_ENUM_MEMBER_SIZE_CAP"; // args: 3 |
|
135 |
||
136 |
||
137 |
// they are shared from the model |
|
138 |
public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION = |
|
139 |
"UnusedCustomizationChecker.UnacknolwedgedCustomization"; // arg:1 |
|
140 |
public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION_LOCATION = |
|
141 |
"UnusedCustomizationChecker.UnacknolwedgedCustomization.Relevant"; // arg:0 |
|
142 |
||
143 |
public static final String ERR_MULTIPLE_GLOBAL_BINDINGS = |
|
144 |
"ERR_MULTIPLE_GLOBAL_BINDINGS"; |
|
145 |
public static final String ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER = |
|
146 |
"ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER"; |
|
147 |
||
148 |
public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS = |
|
149 |
"ERR_REFERENCE_TO_NONEXPORTED_CLASS"; |
|
150 |
public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE = |
|
151 |
"ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE"; |
|
152 |
public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER = |
|
153 |
"ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER"; |
|
154 |
||
155 |
static final String WARN_DEFAULT_VALUE_PRIMITIVE_TYPE = |
|
156 |
"WARN_DEFAULT_VALUE_PRIMITIVE_TYPE"; |
|
157 |
} |