nsISAXMutableAttributes
| IID: | 8b1de83d-cebb-49fa-8245-c0fe319eb7b6 |
| Inherits From: | nsISAXAttributes |
This interface extends the nsISAXAttributes interface with manipulators so that the list can be modified or reused.
This interface is implemented by the following components:
Methods
void addAttribute ( AString uri , AString localName , AString qName , AString type , AString value )
void clear ( )
void removeAttribute ( PRUint32 index )
void setAttribute ( PRUint32 index , AString uri , AString localName , AString qName , AString type , AString value )
void setAttributes ( nsISAXAttributes attributes )
void setLocalName ( PRUint32 index , AString localName )
void setQName ( PRUint32 index , AString qName )
void setType ( PRUint32 index , AString type )
void setURI ( PRUint32 index , AString uri )
void setValue ( PRUint32 index , AString value )
void addAttribute ( AString uri , AString localName , AString qName , AString type , AString value )
Add an attribute to the end of the list.
For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.
- Arguments:
- uri: The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
- localName: The local name, or the empty string if Namespace processing is not being performed.
- qName: The qualified (prefixed) name, or the empty string if qualified names are not available.
- type: The attribute type as a string.
- value: The attribute value.
void removeAttribute ( PRUint32 index )
Remove an attribute from the list.
- Arguments:
- index: The index of the attribute (zero-based).
void setAttribute ( PRUint32 index , AString uri , AString localName , AString qName , AString type , AString value )
Set an attribute in the list.
For the sake of speed, this method does no checking for name conflicts or well-formedness: such checks are the responsibility of the application.
- Arguments:
- index: The index of the attribute (zero-based).
- uri: The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
- localName: The local name, or the empty string if Namespace processing is not being performed.
- qName: The qualified name, or the empty string if qualified names are not available.
- type: The attribute type as a string.
- value: The attribute value.
void setAttributes ( nsISAXAttributes attributes )
Set the attributes list. This method will clear any attributes in the list before adding the attributes from the argument.
- Arguments:
- attributes: The attributes object to replace populate the list with.
void setLocalName ( PRUint32 index , AString localName )
Set the local name of a specific attribute.
- Arguments:
- index: The index of the attribute (zero-based).
- localName: The attribute's local name, or the empty string for none.
void setQName ( PRUint32 index , AString qName )
Set the qualified name of a specific attribute.
- Arguments:
- index: The index of the attribute (zero-based).
- qName: The attribute's qualified name, or the empty string for none.
void setType ( PRUint32 index , AString type )
Set the type of a specific attribute.
- Arguments:
- index: The index of the attribute (zero-based).
- type: The attribute's type.
void setURI ( PRUint32 index , AString uri )
Set the Namespace URI of a specific attribute.
- Arguments:
- index: The index of the attribute (zero-based).
- uri: The attribute's Namespace URI, or the empty string for none.
void setValue ( PRUint32 index , AString value )
Set the value of a specific attribute.
- Arguments:
- index: The index of the attribute (zero-based).
- value: The attribute's value.
Reference documentation is generated from Mozilla's source.
