KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > xquery > parser > util > ErrorCodes


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2004 XQuark Group.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
18  * You can also get it at http://www.gnu.org/licenses/lgpl.html
19  *
20  * For more information on this software, see http://www.xquark.org.
21  */

22
23 package org.xquark.xquery.parser.util;
24
25 public class ErrorCodes {
26
27     static public final String JavaDoc XP0001 = "err:XP0001";
28     //It is a static error if analysis of an expression relies on some component of the static context that has not been assigned a value.
29

30     static public final String JavaDoc XP0002 = "err:XP0002";
31     //It is a dynamic error if evaluation of an expression relies on some part of the dynamic context that has not been assigned a value.
32

33     static public final String JavaDoc XP0003 = "err:XP0003";
34     //It is a static error if an expression is not a valid instance of the grammar defined in A.1 EBNF.
35

36     static public final String JavaDoc XP0004 = "err:XP0004";
37     //During the analysis phase, it is a type error if the static typing feature is in effect and an expression is found to have a static type that is not appropriate for the context in which the expression occurs.
38

39     static public final String JavaDoc XP0005 = "err:XP0005";
40     //During the analysis phase, it is a type error if the static typing feature is in effect and the static type assigned to an expression other than the expression () is the empty type.
41

42     static public final String JavaDoc XP0006 = "err:XP0006";
43     //During the evaluation phase, it is a type error if a value does not match a required type as specified by the matching rules in 2.4.4 SequenceType Matching.
44

45     static public final String JavaDoc XP0007 = "err:XP0007";
46     //It is a type error if the fn:data function is applied to a node whose type annotation denotes a complex type with non-mixed complex content.
47

48     static public final String JavaDoc XP0008 = "err:XP0008";
49     //It is a static error if an expression refers to a type name, function name, namespace prefix, or variable name that is not defined in the static context.
50

51     static public final String JavaDoc XP0009 = "err:XQ0009";
52     //An implementation that does not support the Schema Import Feature may raise a static error if a prolog contains a schema import.
53

54     static public final String JavaDoc XP0010 = "err:XQ0010";
55     //An implementation that does not support the Full Axis Feature may raise a static error if a path expression references an unsupported axis (ancestor, ancestor-or-self, following, following-sibling, preceding, or preceding-sibling).
56

57     static public final String JavaDoc XP0012 = "err:XQ0012";
58     //If the Schema Import Feature is in effect, it is a static error if the set of definitions contained in all imported schemas do not satisfy the conditions for schema validity specified in Sections 3 and 5 of [XML Schema] Part 1. In particular, the definitions must be valid, they must be complete, and they must be unique -- that is, the pool of definitions must not contain two or more schema components with the same name and target namespace.
59

60     static public final String JavaDoc XP0013 = "err:XQ0013";
61     //It is a static error if an implementation supports a pragma and the implementation determines that the PragmaContents are invalid.
62

63     static public final String JavaDoc XP0014 = "err:XQ0014";
64     //It is a static error if an implementation does not support a must-understand extension or an implementation does support a must-understand extension and the implementation determines that the ExtensionContents are invalid.
65

66     static public final String JavaDoc XP0015 = "err:XQ0015";
67     //It is a static error if the XQuery Flagger is enabled and the query contains a must-understand extension.
68

69     static public final String JavaDoc XP0016 = "err:XQ0016";
70     //An implementation that does not support the Module Feature raises a static error if it encounters a module declaration or a module import.
71

72     static public final String JavaDoc XP0017 = "err:XP0017";
73     //It is a static error if the expanded QName and number of arguments in a function call do not match the name and arity of an in-scope function in the static context.
74

75     static public final String JavaDoc XP0018 = "err:XP0018";
76     //It is a static error for an expression to depend on the focus when the focus is undefined.
77

78     static public final String JavaDoc XP0019 = "err:XP0019";
79     //It is a type error if the result of a step expression (StepExpr) is not a sequence of nodes.
80

81     static public final String JavaDoc XP0020 = "err:XP0020";
82     //It is a type error if in an axis expression, the context item is not a node.
83

84     static public final String JavaDoc XP0021 = "err:XP0021";
85     //It is a dynamic error if a value in a cast expression cannot be cast to the required type.
86

87     static public final String JavaDoc XP0022 = "err:XQ0022";
88     //It is a static error if the value of a namespace declaration attribute is not a literal string.
89

90     static public final String JavaDoc XP0023 = "err:XQ0023";
91     //It is a type error if the content sequence in an element constructor contains a document node.
92

93     static public final String JavaDoc XP0024 = "err:XQ0024";
94     //It is a type error if the content sequence in an element constructor contains an attribute node following a node that is not an attribute node or a namespace node.
95

96     static public final String JavaDoc XP0025 = "err:XQ0025";
97     //It is a dynamic error if two or more attribute values in the content sequence of an element constructor have the same name.
98

99     static public final String JavaDoc XP0026 = "err:XQ0026";
100     //In an element-constructor expression, it is a dynamic error if the validation mode is strict and the in-scope element declarations do not contain an element declaration whose unique name matches the name of the constructed element.
101

102     static public final String JavaDoc XP0027 = "err:XQ0027";
103     //In an element-constructor or validate expression, it is a dynamic error if validation fails.
104

105     static public final String JavaDoc XP0028 = "err:XQ0028";
106     //It is a type error if the content sequence in a document constructor contains a document, attribute, or namespace node.
107

108     static public final String JavaDoc XP0029 = "err:XP0029";
109     //It is a dynamic error in a cast expression if the input value does not satisfy the facets of the target type.
110

111     static public final String JavaDoc XP0030 = "err:XQ0030";
112     //It is a type error if the argument of a validate expression does not evaluate to exactly one document or element node.
113

114     static public final String JavaDoc XP0031 = "err:XQ0031";
115     //It is a static error if the version number specified in a version declaration is not supported by the implementation.
116

117     static public final String JavaDoc XP0032 = "err:XQ0032";
118     //A static error is raised if the query prolog contains multiple declarations for the base URI.
119

120     static public final String JavaDoc XP0033 = "err:XQ0033";
121     //It is a static error if the query prolog contains multiple declarations for the same namespace prefix.
122

123     static public final String JavaDoc XP0034 = "err:XQ0034";
124     //It is a static error if more than one function declared or imported by a module has the same expanded QName.
125

126     static public final String JavaDoc XP0035 = "err:XQ0035";
127     //It is a static error to import two schemas that both define the same name in the same symbol space and in the same scope.
128

129     static public final String JavaDoc XP0036 = "err:XQ0036";
130     //It is a type error to import a module if the importing module's in-scope type definitions do not include definitions for the type names that appear in variable declarations, function parameters, or function returns found in the imported module.
131

132     static public final String JavaDoc XP0037 = "err:XQ0037";
133     //It is a static error to import a module that contains function declarations or variable declarations whose names are already declared in the static context of the importing module.
134

135     static public final String JavaDoc XP0038 = "err:XQ0038";
136     //It is a static error if a query prolog specifies more than one default collation, or value specified does not identify a collation known to the implementation.
137

138     static public final String JavaDoc XP0039 = "err:XQ0039";
139     //It is an static error for a function declaration to have more than one parameter with the same name.
140

141     static public final String JavaDoc XP0040 = "err:XQ0040";
142     //It is a type error if the content sequence in an element constructor contains a namespace node node following a node that is not a namespace node.
143

144     static public final String JavaDoc XP0041 = "err:XQ0041";
145     //It is a dynamic error if the name expression in a computed processing instruction or computed namespace constructor returns a QName whose URI part is not empty.
146

147     static public final String JavaDoc XP0042 = "err:XQ0042";
148     //It is a static error if the enclosing expression of a computed namespace constructor is not a computed element constructor.
149

150     static public final String JavaDoc XP0043 = "err:XQ0043";
151     //It is a dynamic error if two or more computed namespace constructors within the same computed element constructor attempt to bind the same namespace prefix.
152

153     static public final String JavaDoc XP0044 = "err:XQ0044";
154     //It is a dynamic error if the name expression of a computed attribute constructor returns a QName that is in the namespace http://www.w3.org/TR/REC-xml-names (corresponding to namespace prefix xmlns).
155

156     static public final String JavaDoc XP0045 = "err:XQ0045";
157     //It is a static error if the declared function name in a function declaration has no namespace prefix or has one of the predefined namespace prefixes other than local.
158

159     static public final String JavaDoc XP0046 = "err:XQ0046";
160     //It is a static error if a string that is required to contain a valid URI does not contain a valid lexical form according to the definition of xs:anyURI in [XML Schema].
161

162     static public final String JavaDoc XP0047 = "err:XQ0047";
163     //It is a static error if the target URI (and location hint, if present) in a module import do not identify an available module.
164

165     static public final String JavaDoc XP0048 = "err:XQ0048";
166     //It is a static error if a function or variable declared in a library module is not in the target namespace of the library module.
167

168     static public final String JavaDoc XP0049 = "err:XQ0049";
169     //It is a static error if more than one variable declared or imported by a module has the same expanded QName.
170

171     static public final String JavaDoc XP0050 = "err:XP0050";
172     //It is a dynamic error if dynamic type of the operand of a treat expression does not match the type specified by the treat expression.
173

174     static public final String JavaDoc XP0051 = "err:XP0051";
175     //It is a static error if a QName that is used as an AtomicType in a SequenceType is not defined in the in-scope type definitions as an atomic type.
176

177     static public final String JavaDoc XP0052 = "err:XQ0052";
178     //It is a dynamic error if the content of an element or attribute constructor includes an atomic value that cannot be cast into a string, such as a value of type xs:QName or xs:NOTATION.
179

180     static public final String JavaDoc XP0053 = "err:XQ0053";
181     //It is a static error if the string literal used in a namespace declaration to specify a URI is a zero-length string.
182

183     static public final String JavaDoc XP0054 = "err:XQ0054";
184     //It is a dynamic error if the initializing expression in a variable declaration cannot be executed because of a circularity (for example, the expression depends on a function that in turn depends on the value of the initialized variable).
185

186     static public final String JavaDoc XP0055 = "err:XP0055";
187     //It is a static error if an ElementTest specifies a schema path that is not found in the in-scope schema definitions.
188

189
190     // parser errors
191

192 }
193
Popular Tags