|
||||
File indexing completed on 2025-01-18 10:15:20
0001 /* 0002 * Licensed to the Apache Software Foundation (ASF) under one or more 0003 * contributor license agreements. See the NOTICE file distributed with 0004 * this work for additional information regarding copyright ownership. 0005 * The ASF licenses this file to You under the Apache License, Version 2.0 0006 * (the "License"); you may not use this file except in compliance with 0007 * the License. You may obtain a copy of the License at 0008 * 0009 * http://www.apache.org/licenses/LICENSE-2.0 0010 * 0011 * Unless required by applicable law or agreed to in writing, software 0012 * distributed under the License is distributed on an "AS IS" BASIS, 0013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0014 * See the License for the specific language governing permissions and 0015 * limitations under the License. 0016 */ 0017 0018 /* 0019 * $Id$ 0020 */ 0021 0022 #if !defined(XERCESC_INCLUDE_GUARD_XERCESELEMENTWILDCARD_HPP) 0023 #define XERCESC_INCLUDE_GUARD_XERCESELEMENTWILDCARD_HPP 0024 0025 #include <xercesc/util/QName.hpp> 0026 #include <xercesc/validators/common/ContentSpecNode.hpp> 0027 #include <xercesc/validators/schema/SubstitutionGroupComparator.hpp> 0028 0029 XERCES_CPP_NAMESPACE_BEGIN 0030 0031 // --------------------------------------------------------------------------- 0032 // Forward declarations 0033 // --------------------------------------------------------------------------- 0034 class SchemaGrammar; 0035 0036 0037 class VALIDATORS_EXPORT XercesElementWildcard 0038 { 0039 0040 public : 0041 0042 // ----------------------------------------------------------------------- 0043 // Class static methods 0044 // ----------------------------------------------------------------------- 0045 /* 0046 * check whether two elements are in conflict 0047 */ 0048 static bool conflict(SchemaGrammar* const pGrammar, 0049 ContentSpecNode::NodeTypes type1, 0050 QName* q1, 0051 ContentSpecNode::NodeTypes type2, 0052 QName* q2, 0053 SubstitutionGroupComparator* comparator); 0054 0055 private: 0056 0057 // ----------------------------------------------------------------------- 0058 // private helper methods 0059 // ----------------------------------------------------------------------- 0060 static bool uriInWildcard(SchemaGrammar* const pGrammar, 0061 QName* qname, 0062 unsigned int wildcard, 0063 ContentSpecNode::NodeTypes wtype, 0064 SubstitutionGroupComparator* comparator); 0065 0066 static bool wildcardIntersect(ContentSpecNode::NodeTypes t1, 0067 unsigned int w1, 0068 ContentSpecNode::NodeTypes t2, 0069 unsigned int w2); 0070 0071 // ----------------------------------------------------------------------- 0072 // Unimplemented constructors and operators 0073 // ----------------------------------------------------------------------- 0074 XercesElementWildcard(); 0075 ~XercesElementWildcard(); 0076 }; 0077 0078 XERCES_CPP_NAMESPACE_END 0079 0080 #endif // XERCESELEMENTWILDCARD_HPP 0081
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |