Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/xom/Attribute.h>
Public Member Functions | |
Attribute (Attribute *attribute) | |
Attribute (String localName, String value) | |
Attribute (String name, String URI, String value) | |
String | getLocalName (void) const |
String | getNamespacePrefix (void) const |
String | getNamespaceURI (void) const |
String | getQualifiedName (void) const |
void | setLocalName (String localName) |
void | setNamespace (String prefix, String URI) |
void | setValue (String value) |
virtual Node * | copy (void) |
virtual String | getValue (void) |
virtual String | toXML (void) |
virtual String | getBaseURI (void) |
virtual Node * | getChild (int index) |
virtual int | getChildCount (void) |
Public Member Functions inherited from elm::xom::Node | |
virtual | ~Node (void) |
void * | getNode (void) const |
kind_t | kind (void) const |
void | detach (void) |
bool | equals (const Node *node) const |
virtual Document * | getDocument (void) |
virtual ParentNode * | getParent (void) |
virtual Nodes * | query (const String &xpath) |
virtual Nodes * | query (const String &xpath, XPathContext *context) |
int | line (void) const |
Additional Inherited Members | |
Public Types inherited from elm::xom::Node | |
enum | kind_t { NONE = 0, ELEMENT, DOCUMENT, TEXT, COMMENT, ATTRIBUTE, PROCESSING_INSTRUCTION, DOCTYPE, NAMESPACE } |
typedef enum elm::xom::Node::kind_t | kind_t |
Protected Member Functions inherited from elm::xom::Node | |
Node (void *_node) | |
void | setNode (void *_node) |
Node * | make (void *node) |
Node * | get (void *node) |
Node * | internCopy (void) |
Node * | internGetChild (int index) |
int | internGetChildCount (void) |
String | internGetValue (void) |
String | internToXML (void) |
Static Protected Member Functions inherited from elm::xom::Node | |
static void | freeNode (void *node) |
Protected Attributes inherited from elm::xom::Node | |
void * | node |
This class represents an attribute such as type="empty" or xlink:href="http://www.example.com".
Attributes that declare namespaces such as xmlns="http://www.w3.org/TR/1999/xhtml" or xmlns:xlink="http://www.w3.org/TR/1999/xlink" are stored separately on the elements where they appear. They are never represented as Attribute objects.
elm::xom::Attribute::Attribute | ( | Attribute * | attribute | ) |
Unsupported.
Creates a new attribute in no namespace with the specified name and value and undeclared type.
localName | the unprefixed attribute name |
value | the attribute value |
References elm::value().
Creates a new attribute in the specified namespace with the specified name and value and undeclared type.
localName | the prefixed attribute name |
URI | the namespace URI |
value | the attribute value |
References elm::value().
|
virtual |
Unsupported.
Implements elm::xom::Node.
|
virtual |
Returns the base URI of this node as specified by XML Base, or the empty string if this is not known. In most cases, this is the URL against which relative URLs in this node should be resolved.
Reimplemented from elm::xom::Node.
|
virtual |
Returns the child of this node at the specified position.
position | the index of the child node to return |
Implements elm::xom::Node.
|
virtual |
Implements elm::xom::Node.
String elm::xom::Attribute::getLocalName | ( | void | ) | const |
Returns the local name of this attribute, not including the prefix.
References elm::xom::Node::node.
Referenced by elm::xom::Element::addAttribute(), and elm::xom::Serializer::write().
String elm::xom::Attribute::getNamespacePrefix | ( | void | ) | const |
Unsupported.
String elm::xom::Attribute::getNamespaceURI | ( | void | ) | const |
Unsupported.
References elm::xom::Node::node.
String elm::xom::Attribute::getQualifiedName | ( | void | ) | const |
Unspported.
|
virtual |
Get the node as a string with markup removed.
Implements elm::xom::Node.
References elm::xom::Node::internGetValue().
Referenced by elm::xom::Element::addAttribute(), and elm::xom::Serializer::write().
void elm::xom::Attribute::setLocalName | ( | String | localName | ) |
Unsupported.
void elm::xom::Attribute::setValue | ( | String | value | ) |
Unsupported.
|
virtual |
Unsupported.
Implements elm::xom::Node.