|
Jameo Core Library
|
This class represents the attributes used in the SAX parser. More...
Public Member Functions | |
| SAXAttributes () | |
| Constructor. | |
| ~SAXAttributes () override | |
| Destructor. | |
| SAXAttributes (const SAXAttributes &other) | |
| Copy constructor. | |
| SAXAttributes & | operator= (const SAXAttributes &another) |
| assigning operator | |
| void | addAttribute (const String &uri, const String &localname, const String &qName, const String &value) |
| This method is needed by the parser to fill the list with content. | |
| size_t | indexOf (const String &qName) const |
| This method searches for the index of an attribute. | |
| size_t | indexOf (const String &uri, const String &localName) const |
| This method searches for the index of an attribute. | |
| size_t | count () const |
| Returns the number of attributes. | |
| String | localName (size_t index) const |
| Returns the local name of an attribute. | |
| String | qualifiedName (size_t index) const |
| Returns the qualified name. | |
| String | type (size_t index) const |
| Returns the attribute type. | |
| String | type (const String &qname) const |
| Returns the attribute type. | |
| String | type (const String &uri, const String &localName) const |
| Returns the attribute type. | |
| String | uri (size_t index) const |
| Returns the URI. | |
| String | value (size_t index) const |
| Returns the value of the attribute. | |
| String | value (const String &qname) const |
| Returns the value. | |
| int64 | valueAsInt (const String &qname) const |
| Returns the value as an integer. | |
| float | valueAsFloat (const String &qname) const |
| Returns the value as a float. | |
| double | valueAsDouble (const String &qname) const |
| Returns the value as a double. | |
| bool | valueAsBool (const String &qname) const |
| Returns the value as a boolean. | |
| bool | hasValue (const String &qname) const |
| Checks if the attribute is contained. | |
| String | value (const String &uri, const String &localName) const |
| Returns the value. | |
Public Member Functions inherited from jm::Object | |
| Object () noexcept | |
| Constructor. | |
| virtual | ~Object () noexcept |
| Destructor. | |
| void | release () noexcept |
| Decreases the reference counter and releases the object immediately when the reference counter becomes 0. | |
| Object * | retain () noexcept |
| Increases the reference counter of this object by 1. | |
| Object * | autorelease () noexcept |
| Same function as release(), but releases the object with a delay if the reference counter is 0. AutoreleasePool::drain() must be called in the to release the object. | |
| int32 | referenceCount () const noexcept |
| Returns the value of the reference counter. | |
| virtual bool | equals (const Object *other) const |
| Comparison of objects. | |
| virtual String | displayName () const |
| Returns the display name of the object intended to present to a user. | |
| virtual void | printDiffInfo (DiffOperation operation, Object *other) const |
| Output method for outputting the diff results for the diff algorithm. | |
| void | setHighBit (bool status) noexcept |
| bool | highBit () const noexcept |
This class represents the attributes used in the SAX parser.
| jm::SAXAttributes::SAXAttributes | ( | ) |
Constructor.
|
override |
Destructor.
| jm::SAXAttributes::SAXAttributes | ( | const SAXAttributes & | other | ) |
Copy constructor.
| void jm::SAXAttributes::addAttribute | ( | const String & | uri, |
| const String & | localname, | ||
| const String & | qName, | ||
| const String & | value | ||
| ) |
This method is needed by the parser to fill the list with content.
| size_t jm::SAXAttributes::count | ( | ) | const |
Returns the number of attributes.
| bool jm::SAXAttributes::hasValue | ( | const String & | qname | ) | const |
Checks if the attribute is contained.
| qname | The qualified name of the attribute. |
| size_t jm::SAXAttributes::indexOf | ( | const String & | qName | ) | const |
This method searches for the index of an attribute.
| qName | The qualified name of the attribute. |
This method searches for the index of an attribute.
| localName | The local name of the attribute. |
| String jm::SAXAttributes::localName | ( | size_t | index | ) | const |
Returns the local name of an attribute.
| index | The 0-based index of the attribute. |
| SAXAttributes & jm::SAXAttributes::operator= | ( | const SAXAttributes & | another | ) |
assigning operator
| String jm::SAXAttributes::qualifiedName | ( | size_t | index | ) | const |
Returns the qualified name.
Returns the attribute type.
The attribute type is one of the following strings: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
Returns the attribute type.
The attribute type is one of the following strings: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
| uri | The URI of the attribute. |
| localName | The local name of the attribute. |
| String jm::SAXAttributes::type | ( | size_t | index | ) | const |
Returns the attribute type.
The attribute type is one of the following strings: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
| String jm::SAXAttributes::uri | ( | size_t | index | ) | const |
Returns the value.
| qname | The qualified name of the attribute. |
Returns the value.
| uri | The URI of the attribute. |
| localName | The local name of the attribute. |
| String jm::SAXAttributes::value | ( | size_t | index | ) | const |
Returns the value of the attribute.
| index | The 0-based index of the attribute. |
| bool jm::SAXAttributes::valueAsBool | ( | const String & | qname | ) | const |
Returns the value as a boolean.
| qname | The qualified name of the attribute. |
| double jm::SAXAttributes::valueAsDouble | ( | const String & | qname | ) | const |
Returns the value as a double.
| qname | The qualified name of the attribute. |
| float jm::SAXAttributes::valueAsFloat | ( | const String & | qname | ) | const |
Returns the value as a float.
| qname | The qualified name of the attribute. |
| int64 jm::SAXAttributes::valueAsInt | ( | const String & | qname | ) | const |
Returns the value as an integer.
| qname | The qualified name of the attribute. |