⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 saxparser.hpp

📁 基于属性证书的访问控制源代码,由c++编写,包括openssl,xercesc等
💻 HPP
📖 第 1 页 / 共 5 页
字号:
      *      * @param newState The value specifying whether NameSpace rules should      *                 be enforced or not.      *      * @see #getDoNamespaces      */    void setDoNamespaces(const bool newState);    /**      * This method allows users to set the validation scheme to be used      * by this parser. The value is one of the ValSchemes enumerated values      * defined by this class:      *      * <br>  Val_Never  - turn off validation      * <br>  Val_Always - turn on validation      * <br>  Val_Auto   - turn on validation if any internal/external      *                  DTD subset have been seen      *      * <p>The parser's default state is: Val_Auto.</p>      *      * @param newScheme The new validation scheme to use.      *      * @see #getValidationScheme      */    void setValidationScheme(const ValSchemes newScheme);    /** Set the 'schema support' flag      *      * This method allows users to enable or disable the parser's      * schema processing. When set to false, parser will not process      * any schema found.      *      * The parser's default state is: false.      *      * Note: If set to true, namespace processing must also be turned on.      *      * @param newState The value specifying whether schema support should      *                 be enforced or not.      *      * @see #getDoSchema      */    void setDoSchema(const bool newState);    /**      * This method allows the user to turn full Schema constraint checking on/off.      * Only takes effect if Schema validation is enabled.      * If turned off, partial constraint checking is done.      *      * Full schema constraint checking includes those checking that may      * be time-consuming or memory intensive. Currently, particle unique      * attribution constraint checking and particle derivation resriction checking      * are controlled by this option.      *      * The parser's default state is: false.      *      * @param schemaFullChecking True to turn on full schema constraint checking.      *      * @see #getValidationSchemaFullChecking      */    void setValidationSchemaFullChecking(const bool schemaFullChecking);    /**      * This method allows users to set the parser's behaviour when it      * encounters the first fatal error. If set to true, the parser      * will exit at the first fatal error. If false, then it will      * report the error and continue processing.      *      * <p>The default value is 'true' and the parser exits on the      * first fatal error.</p>      *      * @param newState The value specifying whether the parser should      *                 continue or exit when it encounters the first      *                 fatal error.      *      * @see #getExitOnFirstFatalError      */    void setExitOnFirstFatalError(const bool newState);    /**      * This method allows users to set the parser's behaviour when it      * encounters a validtion constraint error. If set to true, and the      * the parser will treat validation error as fatal and will exit depends on the      * state of "getExitOnFirstFatalError". If false, then it will      * report the error and continue processing.      *      * Note: setting this true does not mean the validation error will be printed with      * the word "Fatal Error".   It is still printed as "Error", but the parser      * will exit if "setExitOnFirstFatalError" is set to true.      *      * <p>The default value is 'false'.</p>      *      * @param newState If true, the parser will exit if "setExitOnFirstFatalError"      *                 is set to true.      *      * @see #getValidationConstraintFatal      * @see #setExitOnFirstFatalError      */    void setValidationConstraintFatal(const bool newState);    /**      * This method allows the user to specify a list of schemas to use.      * If the targetNamespace of a schema specified using this method matches      * the targetNamespace of a schema occuring in the instance document in      * the schemaLocation attribute, or if the targetNamespace matches the      * namespace attribute of the "import" element, the schema specified by the      * user using this method will be used (i.e., the schemaLocation attribute      * in the instance document or on the "import" element will be effectively ignored).      *      * If this method is called more than once, only the last one takes effect.      *      * The syntax is the same as for schemaLocation attributes in instance      * documents: e.g, "http://www.example.com file_name.xsd". The user can      * specify more than one XML Schema in the list.      *      * @param schemaLocation the list of schemas to use      *      * @see #getExternalSchemaLocation      */    void setExternalSchemaLocation(const XMLCh* const schemaLocation);    /**      * This method is same as setExternalSchemaLocation(const XMLCh* const).      * It takes native char string as parameter      *      * @param schemaLocation the list of schemas to use      *      * @see #setExternalSchemaLocation(const XMLCh* const)      */    void setExternalSchemaLocation(const char* const schemaLocation);    /**      * This method allows the user to specify the no target namespace XML      * Schema Location externally.  If specified, the instance document's      * noNamespaceSchemaLocation attribute will be effectively ignored.      *      * If this method is called more than once, only the last one takes effect.      *      * The syntax is the same as for the noNamespaceSchemaLocation attribute      * that may occur in an instance document: e.g."file_name.xsd".      *      * @param noNamespaceSchemaLocation the XML Schema Location with no target namespace      *      * @see #getExternalNoNamespaceSchemaLocation      */    void setExternalNoNamespaceSchemaLocation(const XMLCh* const noNamespaceSchemaLocation);    /**      * This method is same as setExternalNoNamespaceSchemaLocation(const XMLCh* const).      * It takes native char string as parameter      *      * @param noNamespaceSchemaLocation the XML Schema Location with no target namespace      *      * @see #setExternalNoNamespaceSchemaLocation(const XMLCh* const)      */    void setExternalNoNamespaceSchemaLocation(const char* const noNamespaceSchemaLocation);    /**      * This allows an application to set a SecurityManager on      * the parser; this object stores information that various      * components use to limit their consumption of system      * resources while processing documents.      *      * If this method is called more than once, only the last one takes effect.      * It may not be reset during a parse.      *      *      * @param securityManager  the SecurityManager instance to      * be used by this parser      *      * @see #getSecurityManager      */    void setSecurityManager(SecurityManager* const securityManager);    /** Set the 'Loading External DTD' flag      *      * This method allows users to enable or disable the loading of external DTD.      * When set to false, the parser will ignore any external DTD completely      * if the validationScheme is set to Val_Never.      *      * The parser's default state is: true.      *      * This flag is ignored if the validationScheme is set to Val_Always or Val_Auto.      *      * @param newState The value specifying whether external DTD should      *                 be loaded or not.      *      * @see #getLoadExternalDTD      * @see #setValidationScheme      */    void setLoadExternalDTD(const bool newState);    /** Set the 'Grammar caching' flag      *      * This method allows users to enable or disable caching of grammar when      * parsing XML documents. When set to true, the parser will cache the      * resulting grammar for use in subsequent parses.      *      * If the flag is set to true, the 'Use cached grammar' flag will also be      * set to true.      *      * The parser's default state is: false.      *      * @param newState The value specifying whether we should cache grammars      *                 or not.      *      * @see #isCachingGrammarFromParse      * @see #useCachedGrammarInParse      */    void cacheGrammarFromParse(const bool newState);    /** Set the 'Use cached grammar' flag      *      * This method allows users to enable or disable the use of cached      * grammars.  When set to true, the parser will use the cached grammar,      * instead of building the grammar from scratch, to validate XML      * documents.      *      * If the 'Grammar caching' flag is set to true, this mehod ignore the      * value passed in.      *      * The parser's default state is: false.      *      * @param newState The value specifying whether we should use the cached      *                 grammar or not.      *      * @see #isUsingCachedGrammarInParse      * @see #cacheGrammarFromParse      */    void useCachedGrammarInParse(const bool newState);    /** Enable/disable src offset calculation      *      * This method allows users to enable/disable src offset calculation.      * Disabling the calculation will improve performance.      *      * The parser's default state is: false.      *      * @param newState The value specifying whether we should enable or      *                 disable src offset calculation      *      * @see #getCalculateSrcOfs      */    void setCalculateSrcOfs(const bool newState);    /** Force standard uri      *      * This method allows users to tell the parser to force standard uri conformance.      *      * The parser's default state is: false.      *      * @param newState The value specifying whether the parser should reject malformed URI.      *      * @see #getStandardUriConformant      */    void setStandardUriConformant(const bool newState);    /** Set the scanner to use when scanning the XML document      *      * This method allows users to set the scanner to use      * when scanning a given XML document.      *      * @param scannerName The name of the desired scanner      */    void useScanner(const XMLCh* const scannerName);    //@}    // -----------------------------------------------------------------------    //  Advanced document handler list maintenance methods    // -----------------------------------------------------------------------    /** @name Advanced document handler list maintenance methods */    //@{    /**      * This method installs the specified 'advanced' document callback      * handler, thereby allowing the user to customize the processing,      * if they choose to do so. Any number of advanced callback handlers      * maybe installed.      *      * <p>The methods in the advanced callback interface represent      * Xerces-C extensions. There is no specification for this interface.</p>      *      * @param toInstall A pointer to the users advanced callback handler.      *      * @see #removeAdvDocHandler      */    void installAdvDocHandler(XMLDocumentHandler* const toInstall);    /**      * This method removes the 'advanced' document handler callback from      * the underlying parser scanner. If no handler is installed, advanced      * callbacks are not invoked by the scanner.      * @param toRemove A pointer to the advanced callback handler which      *                 should be removed.      *      * @see #installAdvDocHandler      */    bool removeAdvDocHandler(XMLDocumentHandler* const toRemove);    //@}    // -----------------------------------------------------------------------    //  Progressive scan methods    // -----------------------------------------------------------------------    /** @name Progressive scan methods */    //@{    /** Begin a progressive parse operation      *      * This method is used to start a progressive parse on a XML file.      * To continue parsing, subsequent calls must be to the parseNext      * method.      *      * It scans through the prolog and returns a token to be used on      * subsequent scanNext() calls. If the return value is true, then the      * token is legal and ready for further use. If it returns false, then      * the scan of the prolog failed and the token is not going to work on      * subsequent scanNext() calls.      *      * @param systemId A pointer to a Unicode string represting the path      *                 to the XML file to be parsed.      * @param toFill   A token maintaing state information to maintain      *                 internal consistency between invocation of 'parseNext'      *                 calls.      *      * @return 'true', if successful in parsing the prolog. It indicates the      *         user can go ahead with parsing the rest of the file. It      *         returns 'false' to indicate that the parser could parse the      *         prolog (which means the token will not be valid.)      *      * @see #parseNext      * @see #parseFirst(char*,...)      * @see #parseFirst(InputSource&,...)      */    bool parseFirst

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -