static_context_consts.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2006-2008 The FLWOR Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */ 
00016 #ifndef ZORBA_STATIC_CONTEXT_CONSTS_API_H
00017 #define ZORBA_STATIC_CONTEXT_CONSTS_API_H
00018 
00019 namespace zorba
00020 {
00021 
00022 /** \brief XPath 1.0 compatibility mode as defined in 
00023  *         http://www.w3.org/TR/xquery/#static_context 
00024  */
00025 typedef enum { xpath2_0, xpath1_0 } xpath1_0compatib_mode_t;
00026 
00027 /** \brief Ordering mode as defined in http://www.w3.org/TR/xquery/#static_context.
00028  */
00029 typedef enum { ordered, unordered } ordering_mode_t;
00030 
00031 /** \brief Default order for empty sequences as defined in 
00032  *         http://www.w3.org/TR/xquery/#static_context.
00033  */
00034 typedef enum { empty_greatest, empty_least } order_empty_mode_t;
00035 
00036 /** \brief Inherit part of the Copy-namespace mode as defined in 
00037  *         http://www.w3.org/TR/xquery/#static_context.
00038  */
00039 typedef enum  { inherit_ns, no_inherit_ns } inherit_mode_t;
00040 
00041 /** \brief Preserve part of the Copy-namespace mode as defined in 
00042  *         http://www.w3.org/TR/xquery/#static_context.
00043  */
00044 typedef enum { preserve_ns, no_preserve_ns } preserve_mode_t;
00045 
00046 /** \brief Boundary-space policy as defined in http://www.w3.org/TR/xquery/#static_context.
00047  */
00048 typedef enum { preserve_space, strip_space } boundary_space_mode_t;
00049 
00050 /** \brief Construction mode as defined in http://www.w3.org/TR/xquery/#static_context.
00051  */
00052 typedef enum { preserve_cons, strip_cons } construction_mode_t;
00053 
00054 /** \brief The XQuery version, taken from the version declaration, an XQuery 3.0 feature.
00055  */
00056 typedef enum { xquery_version_1_0 = 100, xquery_version_3_0 = 300 } xquery_version_t;
00057 
00058 /** \brief Revalidation mode as defined in
00059  *         http://www.w3.org/TR/xquery-update-10/#id-revalidation-declaration
00060  */
00061 typedef enum { validate_skip, validate_lax, validate_strict } validation_mode_t;
00062 
00063 /** \brief Maintenance mode of an index as defined
00064  *         in the XQuery Data Definition Facility
00065  */
00066 typedef enum { index_automatic, index_manual } index_maintenance_mode_t;
00067 
00068 /** \brief Container kind of an index as defined
00069  *         in the XQuery Data Definition Facility
00070  */
00071 typedef enum { index_hash, index_tree } index_container_kind_t;
00072 
00073 }
00074 
00075 #endif
00076 /* vim:set et sw=2 ts=2: */
blog comments powered by Disqus