01: /*
02: * Copyright 2006 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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,
39: "Child element $0 on line $1 is not allowed");
40:
41: public static final Message2IntString XML_ELEMENT_HANDLER_EXCEPTION = new Message2IntString(
42: TreeLogger.ERROR,
43: "Line $0: Unexpected exception while processing element '$1'");
44:
45: public static final Message2IntString XML_ELEMENT_UNEXPECTED = new Message2IntString(
46: TreeLogger.ERROR, "Line $0: Unexpected element '$1'");
47:
48: public static final Message0 XML_PARSE_FAILED = new Message0(
49: TreeLogger.ERROR, "Failure while parsing XML");
50:
51: public static final Message3StringIntString XML_REQUIRED_ATTRIBUTE_MISSING = new Message3StringIntString(
52: TreeLogger.ERROR,
53: "Element '$0' beginning on line $1 is missing required attribute '$2'");
54:
55: private Messages() {
56: }
57:
58: }
|