KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > google > gwt > dev > util > xml > Messages


1 /*
2  * Copyright 2006 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations under
14  * the License.
15  */

16 package com.google.gwt.dev.util.xml;
17
18 import com.google.gwt.core.ext.TreeLogger;
19 import com.google.gwt.dev.util.msg.Message0;
20 import com.google.gwt.dev.util.msg.Message2IntString;
21 import com.google.gwt.dev.util.msg.Message2StringInt;
22 import com.google.gwt.dev.util.msg.Message3IntStringClass;
23 import com.google.gwt.dev.util.msg.Message3StringIntString;
24
25 /**
26  * Static XML messages.
27  */

28 class Messages {
29   public static final Message3IntStringClass XML_ATTRIBUTE_CONVERSION_ERROR = new Message3IntStringClass(
30       TreeLogger.ERROR,
31       "Line $0: Unable to convert attribute '$1' to type '$2'");
32
33   public static final Message3StringIntString XML_ATTRIBUTE_UNEXPECTED = new Message3StringIntString(
34       TreeLogger.ERROR,
35       "Element '$0' beginning on line $1 contains unexpected attribute '$2'");
36
37   public static final Message2StringInt XML_CHILDREN_NOT_ALLOWED = new Message2StringInt(
38       TreeLogger.ERROR, "Child element $0 on line $1 is not allowed");
39
40   public static final Message2IntString XML_ELEMENT_HANDLER_EXCEPTION = new Message2IntString(
41       TreeLogger.ERROR,
42       "Line $0: Unexpected exception while processing element '$1'");
43
44   public static final Message2IntString XML_ELEMENT_UNEXPECTED = new Message2IntString(
45       TreeLogger.ERROR, "Line $0: Unexpected element '$1'");
46
47   public static final Message0 XML_PARSE_FAILED = new Message0(
48       TreeLogger.ERROR, "Failure while parsing XML");
49
50   public static final Message3StringIntString XML_REQUIRED_ATTRIBUTE_MISSING = new Message3StringIntString(
51       TreeLogger.ERROR,
52       "Element '$0' beginning on line $1 is missing required attribute '$2'");
53
54   private Messages() {
55   }
56
57 }
58
Popular Tags