|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <XMLHelpers.h>

Public Member Functions | |
| void | fromSAX2NamespaceAttributes (const xmlChar **chunkOfFivePointers) |
| Fill in the fields from the SAX2 namespace attributes array. More... | |
| string | getAsXMLString () const |
| Get the standard string version as found in an element: prefix:localname="value" localname="value" if no prefix. More... | |
| string | getQName () const |
| get the name with the prefix:localname if prefix not empty else localname More... | |
| XMLAttribute & | operator= (const XMLAttribute &rhs) |
| XMLAttribute (const string &localName="", const string &value="", const string &prefix="", const string &nsURI="") | |
| XMLAttribute (const xmlChar **chunkOfFivePointers) | |
| Use the SAX2 namespace attribute point list to make this using fromSAX2NamespaceAttributes(chunkOfFivePointers), Layout: {localname, prefix, uri, valueStartPtr, valueEndPtr}. More... | |
| XMLAttribute (const XMLAttribute &proto) | |
Static Public Member Functions | |
| static string | getQName (const string &prefix, const string &localname) |
| Return he QName for the given prefix and localname. More... | |
Public Attributes | |
| string | localname |
| string | nsURI |
| string | prefix |
| string | value |
Definition at line 63 of file XMLHelpers.h.
| ncml_module::XMLAttribute::XMLAttribute | ( | const string & | localName = "", |
| const string & | value = "", |
||
| const string & | prefix = "", |
||
| const string & | nsURI = "" |
||
| ) |
Definition at line 69 of file XMLHelpers.cc.
| ncml_module::XMLAttribute::XMLAttribute | ( | const xmlChar ** | chunkOfFivePointers | ) |
Use the SAX2 namespace attribute point list to make this using fromSAX2NamespaceAttributes(chunkOfFivePointers), Layout: {localname, prefix, uri, valueStartPtr, valueEndPtr}.
Use the SAX2 namespace attribute point list to make it.
Layout: {localname, prefix, uri, valueStartPtr, valueEndPtr}
Definition at line 83 of file XMLHelpers.cc.
References fromSAX2NamespaceAttributes().

| ncml_module::XMLAttribute::XMLAttribute | ( | const XMLAttribute & | proto | ) |
Definition at line 88 of file XMLHelpers.cc.
| void ncml_module::XMLAttribute::fromSAX2NamespaceAttributes | ( | const xmlChar ** | chunkOfFivePointers | ) |
Fill in the fields from the SAX2 namespace attributes array.
Assume it's the start of a chunk of 5 pointers to {localname, prefix, uri, valueStartIter, valueEndIter}
Definition at line 111 of file XMLHelpers.cc.
References localname, nsURI, prefix, value, ncml_module::XMLUtil::xmlCharToString(), and ncml_module::XMLUtil::xmlCharToStringFromIterators().
Referenced by XMLAttribute().

| string ncml_module::XMLAttribute::getAsXMLString | ( | ) | const |
Get the standard string version as found in an element: prefix:localname="value" localname="value" if no prefix.
Definition at line 139 of file XMLHelpers.cc.
References getQName(), and value.

| string ncml_module::XMLAttribute::getQName | ( | ) | const |
get the name with the prefix:localname if prefix not empty else localname
Definition at line 129 of file XMLHelpers.cc.
References localname, and prefix.
Referenced by ncml_module::XMLAttributeMap::addAttribute(), ncml_module::XMLAttributeMap::getAllAttributesAsString(), getAsXMLString(), ncml_module::XMLAttributeMap::getAttributeByQName(), and ncml_module::OtherXMLParser::onEndElementWithNamespace().
|
static |
Return he QName for the given prefix and localname.
Definition at line 146 of file XMLHelpers.cc.
References localname.
| XMLAttribute & ncml_module::XMLAttribute::operator= | ( | const XMLAttribute & | rhs | ) |
| string ncml_module::XMLAttribute::localname |
Definition at line 92 of file XMLHelpers.h.
Referenced by fromSAX2NamespaceAttributes(), ncml_module::XMLAttributeMap::getAttributeByLocalName(), getQName(), and operator=().
| string ncml_module::XMLAttribute::nsURI |
Definition at line 94 of file XMLHelpers.h.
Referenced by fromSAX2NamespaceAttributes(), and operator=().
| string ncml_module::XMLAttribute::prefix |
Definition at line 93 of file XMLHelpers.h.
Referenced by fromSAX2NamespaceAttributes(), getQName(), and operator=().
| string ncml_module::XMLAttribute::value |
Definition at line 95 of file XMLHelpers.h.
Referenced by fromSAX2NamespaceAttributes(), ncml_module::XMLAttributeMap::getAllAttributesAsString(), getAsXMLString(), ncml_module::XMLAttributeMap::getValueForLocalNameOrDefault(), and operator=().