bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
#include <OtherXMLParser.h>
Public Member Functions | |
int | getParseDepth () const |
const std::string & | getString () const |
virtual void | onCharacters (const std::string &content) |
virtual void | onEndDocument () |
virtual void | onEndElement (const std::string &name) |
virtual void | onEndElementWithNamespace (const std::string &localname, const std::string &prefix, const std::string &uri) |
virtual void | onParseError (std::string msg) |
virtual void | onParseWarning (std::string msg) |
virtual void | onStartDocument () |
virtual void | onStartElement (const std::string &name, const XMLAttributeMap &attrs) |
virtual void | onStartElementWithNamespace (const std::string &localname, const std::string &prefix, const std::string &uri, const XMLAttributeMap &attributes, const XMLNamespaceMap &namespaces) |
OtherXMLParser (NCMLParser &p) | |
void | reset () |
virtual void | setParseLineNumber (int) |
Class used to handle parsing in an attribute of type=="OtherXML" which basically just has to keep appending the elements and content into a string until the containing <attribute> element is closed. Subclass of SaxParser so the NCMLParser can just hand off calls to it and it can do what it needs to do, as well as give a proper error.
Definition at line 47 of file OtherXMLParser.h.
|
explicit |
Definition at line 36 of file OtherXMLParser.cc.
|
virtual |
Definition at line 41 of file OtherXMLParser.cc.
int ncml_module::OtherXMLParser::getParseDepth | ( | ) | const |
Get the current parse depth (how many elements we've opened with onStartElement and not closed yet) It's an int so negative implies an underflow error state.
Definition at line 46 of file OtherXMLParser.cc.
const std::string & ncml_module::OtherXMLParser::getString | ( | ) | const |
Get the parsed data as big string that we've been parsing in.
Definition at line 52 of file OtherXMLParser.cc.
|
virtual |
Called when characters are encountered within an element. content is only valid for the call duration. Note: this will return all whitespace in the document as well, which makes it messy to use.
Implements ncml_module::SaxParser.
Definition at line 125 of file OtherXMLParser.cc.
|
virtual |
Implements ncml_module::SaxParser.
Definition at line 68 of file OtherXMLParser.cc.
|
virtual |
Implements ncml_module::SaxParser.
Definition at line 83 of file OtherXMLParser.cc.
|
virtual |
SAX2 End element with namespace information.
localname | the localname of the element |
prefix | the namespace prefix or "" on the element |
uri | the uri (or "") associated with the namespace of the element. |
Implements ncml_module::SaxParser.
Definition at line 118 of file OtherXMLParser.cc.
|
virtual |
An unrecoverable parse error occurred
Implements ncml_module::SaxParser.
Definition at line 137 of file OtherXMLParser.cc.
|
virtual |
A recoverable parse error occured.
Implements ncml_module::SaxParser.
Definition at line 131 of file OtherXMLParser.cc.
|
virtual |
Implements ncml_module::SaxParser.
Definition at line 63 of file OtherXMLParser.cc.
|
virtual |
name | name of the element |
attrs | a map of any attributes -> values. Volatile for this call. |
Implements ncml_module::SaxParser.
Definition at line 73 of file OtherXMLParser.cc.
|
virtual |
SAX2 start element call with gets namespace information.
localname | the localname of the element |
prefix | the namespace prefix of the element, or "" if none. |
uri | the uri for the namespace of the element. |
attributes | table of the attributes (excluding namespace attributes prefixed with xmlns) |
namespace | table of all the namespaces specification on this element |
Implements ncml_module::SaxParser.
Definition at line 89 of file OtherXMLParser.cc.
void ncml_module::OtherXMLParser::reset | ( | ) |
Reset the string and depth so we can start parsing from scratch again
Definition at line 57 of file OtherXMLParser.cc.
|
inlinevirtualinherited |
Before any of the callbacks are issued, this function is called to let the implementing parser know what line number in the parse the next callback is being issued from to allow for more informative error messages. (Default impl is to ignore it now).
Reimplemented in ncml_module::NCMLParser.
Definition at line 113 of file SaxParser.h.