KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > bridge > ErrorConstants


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

18 package org.apache.batik.bridge;
19
20 /**
21  * The error code.
22  *
23  * @author <a HREF="mailto:tkormann@apache.org">Thierry Kormann</a>
24  * @version $Id: ErrorConstants.java,v 1.8 2005/03/27 08:58:30 cam Exp $
25  */

26 public interface ErrorConstants {
27
28     /**
29      * The error code when a required attribute is missing.
30      * <pre>
31      * {0} = the name of the attribute
32      * </pre>
33      */

34     public static final String JavaDoc ERR_ATTRIBUTE_MISSING
35         = "attribute.missing";
36
37     /**
38      * The error code when an attribute has a syntax error.
39      * <pre>
40      * {0} = the name of the attribute
41      * {1} = the wrong value
42      * </pre>
43      */

44     public static final String JavaDoc ERR_ATTRIBUTE_VALUE_MALFORMED
45         = "attribute.malformed";
46
47     /**
48      * The error code when a length, which must be positive, is negative.
49      * <pre>
50      * {0} = the name of the attribute
51      * </pre>
52      */

53     public static final String JavaDoc ERR_LENGTH_NEGATIVE
54         = "length.negative";
55
56     /**
57      * The error code when a CSS length is negative.
58      * <pre>
59      * {0} = property
60      * </pre>
61      */

62     public static final String JavaDoc ERR_CSS_LENGTH_NEGATIVE
63         = "css.length.negative";
64
65     /**
66      * The error code when a URI specified in a CSS property
67      * referenced a bad element.
68      * <pre>
69      * {0} = the uri
70      * </pre>
71      */

72     public static final String JavaDoc ERR_CSS_URI_BAD_TARGET
73         = "css.uri.badTarget";
74
75     /**
76      * The error code when a specified URI references a bad element.
77      * <pre>
78      * {0} = the uri
79      * </pre>
80      */

81     public static final String JavaDoc ERR_URI_BAD_TARGET
82         = "uri.badTarget";
83
84     /**
85      * The error code when the bridge detected circular dependencies
86      * while resolving a list of URI.
87      * <pre>
88      * {0} = the uri
89      * </pre>
90      */

91     public static final String JavaDoc ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES
92         = "xlink.href.circularDependencies";
93
94     /**
95      * The error code when the bridge try to load a URI
96      * {0} = the uri
97      */

98     public static final String JavaDoc ERR_URI_MALFORMED
99         = "uri.malformed";
100
101     /**
102      * The error code when the bridge encoutered an I/O error while
103      * loading a URI.
104      * <pre>
105      * {0} = the uri
106      * </pre>
107      */

108     public static final String JavaDoc ERR_URI_IO
109         = "uri.io";
110
111     /**
112      * The error code when the bridge encountered a SecurityException
113      * while loading a URI
114      * {0} = the uri
115      */

116     public static final String JavaDoc ERR_URI_UNSECURE
117         = "uri.unsecure";
118
119     /**
120      * The error code when the bridge tries to referenced an invalid
121      * node inside a document.
122      * <pre>
123      * {0} = the uri
124      * </pre>
125      */

126     public static final String JavaDoc ERR_URI_REFERENCE_A_DOCUMENT
127         = "uri.referenceDocument";
128
129     /**
130      * The error code when the bridge tries to an image and the image
131      * format is not supported.
132      * <pre>
133      * {0} = the uri
134      * </pre>
135      */

136     public static final String JavaDoc ERR_URI_IMAGE_INVALID
137         = "uri.image.invalid";
138
139     /**
140      * The resource that contains the title for the Broken Link message
141      */

142     public static final String JavaDoc MSG_BROKEN_LINK_TITLE
143         = "broken.link.title";
144 }
145
Popular Tags