Go to the source code of this file.
|
dom_exception | _dom_attr_create (struct dom_document *doc, dom_string *name, dom_string *namespace, dom_string *prefix, bool specified, struct dom_attr **result) |
|
void | _dom_attr_destroy (struct dom_attr *attr) |
|
dom_exception | _dom_attr_initialise (struct dom_attr *a, struct dom_document *doc, dom_string *name, dom_string *namespace, dom_string *prefix, bool specified, struct dom_attr **result) |
|
void | _dom_attr_finalise (struct dom_attr *attr) |
|
dom_exception | _dom_attr_get_name (struct dom_attr *attr, dom_string **result) |
|
dom_exception | _dom_attr_get_specified (struct dom_attr *attr, bool *result) |
|
dom_exception | _dom_attr_get_value (struct dom_attr *attr, dom_string **result) |
|
dom_exception | _dom_attr_set_value (struct dom_attr *attr, dom_string *value) |
|
dom_exception | _dom_attr_get_owner (struct dom_attr *attr, struct dom_element **result) |
|
dom_exception | _dom_attr_get_schema_type_info (struct dom_attr *attr, struct dom_type_info **result) |
|
dom_exception | _dom_attr_is_id (struct dom_attr *attr, bool *result) |
|
dom_exception | _dom_attr_get_node_value (dom_node_internal *node, dom_string **result) |
|
dom_exception | _dom_attr_clone_node (dom_node_internal *node, bool deep, dom_node_internal **result) |
|
dom_exception | _dom_attr_set_prefix (dom_node_internal *node, dom_string *prefix) |
|
dom_exception | _dom_attr_normalize (dom_node_internal *node) |
|
dom_exception | _dom_attr_lookup_prefix (dom_node_internal *node, dom_string *namespace, dom_string **result) |
|
dom_exception | _dom_attr_is_default_namespace (dom_node_internal *node, dom_string *namespace, bool *result) |
|
dom_exception | _dom_attr_lookup_namespace (dom_node_internal *node, dom_string *prefix, dom_string **result) |
|
void | __dom_attr_destroy (dom_node_internal *node) |
|
dom_exception | _dom_attr_copy (dom_node_internal *old, dom_node_internal **copy) |
|
void | _dom_attr_set_isid (struct dom_attr *attr, bool is_id) |
|
void | _dom_attr_set_specified (struct dom_attr *attr, bool specified) |
|
bool | _dom_attr_readonly (const dom_attr *a) |
|
◆ DOM_ATTR_PROTECT_VTABLE
#define DOM_ATTR_PROTECT_VTABLE |
Value:
dom_exception _dom_attr_copy(dom_node_internal *old, dom_node_internal **copy)
Definition attr.c:773
void __dom_attr_destroy(dom_node_internal *node)
Definition attr.c:767
◆ DOM_ATTR_VTABLE
Value:
dom_exception _dom_attr_get_schema_type_info(struct dom_attr *attr, struct dom_type_info **result)
Definition attr.c:632
dom_exception _dom_attr_get_value(struct dom_attr *attr, dom_string **result)
Definition attr.c:441
dom_exception _dom_attr_get_name(struct dom_attr *attr, dom_string **result)
Definition attr.c:409
dom_exception _dom_attr_get_specified(struct dom_attr *attr, bool *result)
Definition attr.c:423
dom_exception _dom_attr_set_value(struct dom_attr *attr, dom_string *value)
Definition attr.c:534
dom_exception _dom_attr_is_id(struct dom_attr *attr, bool *result)
Definition attr.c:648
dom_exception _dom_attr_get_owner(struct dom_attr *attr, struct dom_element **result)
Definition attr.c:608
◆ DOM_NODE_VTABLE_ATTR
#define DOM_NODE_VTABLE_ATTR |
◆ __dom_attr_destroy()
◆ _dom_attr_clone_node()
◆ _dom_attr_copy()
◆ _dom_attr_create()
Create an attribute node
- Parameters
-
doc | The owning document |
name | The (local) name of the node to create |
namespace | The namespace URI of the attribute, or NULL |
prefix | The namespace prefix of the attribute, or NULL |
specified | Whether this attribute is specified |
result | Pointer to location to receive created attribute |
- Returns
- DOM_NO_ERR on success, DOM_NO_MEM_ERR on memory exhaustion.
doc
and name
will have their reference counts increased. The caller should make sure that name
is a valid NCName here.
The returned attribute will already be referenced.
◆ _dom_attr_destroy()
void _dom_attr_destroy |
( |
struct dom_attr * | attr | ) |
|
Destroy an attribute node
- Parameters
-
attr | The attribute to destroy |
The contents of attr
will be destroyed and attr
will be freed
◆ _dom_attr_finalise()
void _dom_attr_finalise |
( |
dom_attr * | attr | ) |
|
The destructor of dom_attr
- Parameters
-
- Todo
- destroy schema type info
◆ _dom_attr_get_name()
Retrieve an attribute's name
- Parameters
-
attr | Attribute to retrieve name from |
result | Pointer to location to receive result |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure
The returned string will have its reference count increased. It is the responsibility of the caller to unref the string once it has finished with it.
◆ _dom_attr_get_node_value()
◆ _dom_attr_get_owner()
Retrieve the owning element of an attribute
- Parameters
-
attr | The attribute to extract owning element from |
result | Pointer to location to receive result |
- Returns
- DOM_NO_ERR.
The returned node will have its reference count increased. The caller should unref it once it has finished with it.
◆ _dom_attr_get_schema_type_info()
Retrieve an attribute's type information
- Parameters
-
attr | The attribute to extract type information from |
result | Pointer to location to receive result |
- Returns
- DOM_NOT_SUPPORTED_ERR, we don't support this API now.
The returned type info will have its reference count increased. The caller should unref it once it has finished with it.
◆ _dom_attr_get_specified()
Determine if attribute was specified or default
- Parameters
-
attr | Attribute to inspect |
result | Pointer to location to receive result |
- Returns
- DOM_NO_ERR.
◆ _dom_attr_get_value()
Retrieve an attribute's value
- Parameters
-
attr | Attribute to retrieve value from |
result | Pointer to location to receive result |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure
The returned string will have its reference count increased. It is the responsibility of the caller to unref the string once it has finished with it.
◆ _dom_attr_initialise()
Initialise a dom_attr
- Parameters
-
a | The dom_attr |
doc | The document |
name | The name of this attribute node |
namespace | The namespace of this attribute |
prefix | The prefix |
specified | Whether this node is a specified one |
result | The returned node |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.
◆ _dom_attr_is_default_namespace()
◆ _dom_attr_is_id()
Determine if an attribute if of type ID
- Parameters
-
attr | The attribute to inspect |
result | Pointer to location to receive result |
- Returns
- DOM_NO_ERR.
◆ _dom_attr_lookup_namespace()
◆ _dom_attr_lookup_prefix()
◆ _dom_attr_normalize()
◆ _dom_attr_readonly()
bool _dom_attr_readonly |
( |
const dom_attr * | a | ) |
|
Whether this attribute node is readonly
- Parameters
-
- Returns
- true if this Attr is readonly, false otherwise
◆ _dom_attr_set_isid()
void _dom_attr_set_isid |
( |
struct dom_attr * | attr, |
|
|
bool | is_id ) |
Set/Unset whether this attribute is a ID attribute
- Parameters
-
attr | The attribute |
is_id | Whether it is a ID attribute |
◆ _dom_attr_set_prefix()
◆ _dom_attr_set_specified()
void _dom_attr_set_specified |
( |
struct dom_attr * | attr, |
|
|
bool | specified ) |
Set/Unset whether the attribute is a specified one.
- Parameters
-
attr | The attribute node |
specified | Whether this attribute is a specified one |
◆ _dom_attr_set_value()
Set an attribute's value
- Parameters
-
attr | Attribute to retrieve value from |
value | New value for attribute |
- Returns
- DOM_NO_ERR on success, DOM_NO_MODIFICATION_ALLOWED_ERR if attribute is readonly.