Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

DSIGTransformXPath.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2004 The Apache Software 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  * imitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * DSIGTransformXPath := Class that performs XPath transforms
00021  *
00022  * $Id: DSIGTransformXPath.hpp,v 1.9 2004/02/08 10:20:52 blautenb Exp $
00023  *
00024  */
00025 
00026 #ifndef DSIGTRANSFORMXPATH_INCLUDE
00027 #define DSIGTRANSFORMXPATH_INCLUDE
00028 
00029 #include <xsec/dsig/DSIGTransform.hpp>
00030 #include <xsec/utils/XSECSafeBuffer.hpp>
00031 
00032 
00033 XSEC_DECLARE_XERCES_CLASS(DOMNamedNodeMap);
00034 XSEC_DECLARE_XERCES_CLASS(DOMNode);
00035 
00052 class DSIG_EXPORT DSIGTransformXPath : public DSIGTransform {
00053 
00054 public:
00055 
00058     
00069     DSIGTransformXPath(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * node);
00070 
00083     DSIGTransformXPath(const XSECEnv * env);
00084           
00093     virtual ~DSIGTransformXPath();
00094     
00096 
00100 
00108     virtual transformType getTransformType();
00109 
00119     virtual void appendTransformer(TXFMChain * input);
00120 
00128     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createBlankTransform(
00129         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * parentDoc);
00130 
00138     virtual void load(void);
00139 
00141 
00145 
00158     void setExpression(const char * expr);
00159 
00170     const char * getExpression(void);
00171 
00181     void setNamespace(const char * prefix, const char * value);
00182 
00192     XERCES_CPP_NAMESPACE_QUALIFIER DOMNamedNodeMap * getNamespaces(void) {
00193         return mp_NSMap;
00194     }
00195 
00206     void deleteNamespace(const char * prefix);
00207 
00209     
00210 private:
00211 
00212     DSIGTransformXPath();
00213     DSIGTransformXPath(const DSIGTransformXPath & theOther);
00214 
00215     safeBuffer                  m_expr;
00216     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode                      
00217                                 * mp_exprTextNode;
00218     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode                      
00219                                 * mp_xpathNode;
00220     XERCES_CPP_NAMESPACE_QUALIFIER DOMNamedNodeMap      
00221                                 * mp_NSMap;
00222 
00223 
00224 };
00225 
00226 #endif /* DSIGTRANSFORMXPATH_INCLUDE */

Generated on Sun Mar 14 20:20:35 2004 for XML-Security-C by doxygen 1.3.2