-/*
- * Copyright 2001-2006 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+/**
+ * Licensed to the University Corporation for Advanced Internet
+ * Development, Inc. (UCAID) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for
+ * additional information regarding copyright ownership.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * UCAID licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the
+ * License at
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific
+ * language governing permissions and limitations under the License.
*/
/**
- * @file ValidatorSuite.h
+ * @file xmltooling/validation/ValidatorSuite.h
*
* Groups of rule checkers of XMLObjects based on type or element name.
*/
#define __xmltooling_valsuite_h__
#include <xmltooling/QName.h>
-#include <xmltooling/validation/Validator.h>
#include <map>
+#include <string>
#if defined (_MSC_VER)
#pragma warning( push )
namespace xmltooling {
+ class XMLTOOL_API Validator;
+
/**
* A collection of validators that can be applied to an XMLObject and its children. These collections can represent
* usage specific checks, such as those outlined in schemas or profiles of specific XML specifications.
*
* @param id an identifier for the suite
*/
- ValidatorSuite(const char* id) : m_id(id) {}
+ ValidatorSuite(const char* id);
- ~ValidatorSuite() {
- destroyValidators();
- }
+ ~ValidatorSuite();
/**
* Gets a unique ID for this suite.
*
* @return a unique ID for this suite
*/
- const char* getId() {
- return m_id.c_str();
- }
+ const char* getId();
/**
* Evaluates the registered validators against the given XMLObject and it's children.
* @param key the key used to retrieve the validator
* @param validator the validator
*/
- void registerValidator(const QName& key, Validator* validator) {
- m_map.insert(std::make_pair(key,validator));
- }
+ void registerValidator(const QName& key, Validator* validator);
/**
* Deregisters validators.