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

DSIGTransformXPath.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 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  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * DSIGTransformXPath := Class that performs XPath transforms
00021  *
00022  * $Id: DSIGTransformXPath.hpp,v 1.12 2005/06/04 11:30:25 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 
00051 class DSIG_EXPORT DSIGTransformXPath : public DSIGTransform {
00052 
00053 public:
00054 
00057     
00068     DSIGTransformXPath(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * node);
00069 
00082     DSIGTransformXPath(const XSECEnv * env);
00083           
00092     virtual ~DSIGTransformXPath();
00093     
00095 
00099 
00107     virtual transformType getTransformType();
00108 
00118     virtual void appendTransformer(TXFMChain * input);
00119 
00127     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createBlankTransform(
00128         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * parentDoc);
00129 
00137     virtual void load(void);
00138 
00140 
00144 
00157     void setExpression(const char * expr);
00158 
00169     const char * getExpression(void);
00170 
00180     void setNamespace(const char * prefix, const char * value);
00181 
00191     XERCES_CPP_NAMESPACE_QUALIFIER DOMNamedNodeMap * getNamespaces(void) {
00192         return mp_NSMap;
00193     }
00194 
00205     void deleteNamespace(const char * prefix);
00206 
00208     
00209 private:
00210 
00211     DSIGTransformXPath();
00212     DSIGTransformXPath(const DSIGTransformXPath & theOther);
00213 
00214     safeBuffer                  m_expr;
00215     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode                      
00216                                 * mp_exprTextNode;
00217     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode                      
00218                                 * mp_xpathNode;
00219     XERCES_CPP_NAMESPACE_QUALIFIER DOMNamedNodeMap      
00220                                 * mp_NSMap;
00221 
00222 
00223 };
00224 
00225 #endif /* DSIGTRANSFORMXPATH_INCLUDE */

Generated on Sun Jul 3 17:37:26 2005 for XML-Security-C by  doxygen 1.4.2