XmlValue |
![]() ![]() |
#include <DbXml.hpp>class DbXml::XmlValue { public: ... Type getType() const; std::string getTypeURI() const; std::string getTypeName() const;
bool isType(XmlValue::Type type) const bool isNumber() const; bool isString() const; bool isBoolean() const; bool isBinary() const; bool isNode() const;
double asNumber() const; std::string asString() const; bool asBoolean() const; bool asBinary() const; const XmlDocument &asDocument() const; XmlEventReader &asEventReader() const; ... };
Methods to retrieve information and values for any XmlValue.
Returns true if the XmlValue is one of the numeric types, such as DOUBLE, FLOAT, etc.
Returns true if the XmlValue is one of type STRING.
Returns true if the XmlValue is one of type BINARY.
Returns true if the XmlValue is one of type BOOLEAN.
Returns true if the XmlValue is one of type NODE.
Returns true if the XmlValue has no value (type NONE).
Returns the type of the XmlValue from the enumeration XmlValue::Type.
Valid values for XmlValue::Type are NONE, NODE, ANY_SIMPLE_TYPE, ANY_URI, BASE_64_BINARY, BOOLEAN, DATE, DATE_TIME, DAY_TIME_DURATION, DECIMAL, DOUBLE, DURATION, FLOAT, G_DAY, G_MONTH, G_MONTH_DAY, G_YEAR, G_YEAR_MONTH, HEX_BINARY, NOTATION, QNAME, STRING, TIME, YEAR_MONTH_DURATION, UNTYPED_ATOMIC, BINARY.
Indicates whether the XmlValue is of the specified type.
Valid values for XmlValue::Type are NONE, NODE, ANY_SIMPLE_TYPE, ANY_URI, BASE_64_BINARY, BOOLEAN, DATE, DATE_TIME, DAY_TIME_DURATION, DECIMAL, DOUBLE, DURATION, FLOAT, G_DAY, G_MONTH, G_MONTH_DAY, G_YEAR, G_YEAR_MONTH, HEX_BINARY, NOTATION, QNAME, STRING, TIME, YEAR_MONTH_DURATION, UNTYPED_ATOMIC, BINARY.
Returns the URI associated with the type of the XmlValue.
Returns the string name of the type of the XmlValue.
Returns the value as a DOUBLE.
Returns the value as a STRING.
Returns the value as a BINARY if it of type XmlValue::BINARY.
Returns the value as a BOOLEAN.
Returns the value as an XmlDocument.
Returns the value as an XmlEventReader. Only valid for objects of type XmlValue::NODE.
![]() ![]() |
Copyright (c) 1996-2009 Oracle. All rights reserved.