decompiler  1.0.0
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ghidra::Attributes Class Reference

The attributes for a single XML element. More...

#include <xml.hh>

Public Member Functions

 Attributes (string *el)
 Construct from element name string.
 
 ~Attributes (void)
 Destructor.
 
const string & getelemURI (void) const
 Get the namespace URI associated with this element.
 
const string & getelemName (void) const
 Get the name of this element.
 
void add_attribute (string *nm, string *vl)
 Add a formal attribute.
 
int4 getLength (void) const
 Get the number of attributes associated with the element.
 
const string & getURI (int4 i) const
 Get the namespace URI associated with the i-th attribute.
 
const string & getLocalName (int4 i) const
 Get the local name of the i-th attribute.
 
const string & getQName (int4 i) const
 Get the qualified name of the i-th attribute.
 
const string & getValue (int4 i) const
 Get the value of the i-th attribute.
 
const string & getValue (const string &qualifiedName) const
 Get the value of the attribute with the given qualified name.
 

Private Attributes

string * elementname
 The name of the XML element.
 
vector< string * > name
 List of names for each formal XML attribute.
 
vector< string * > value
 List of values for each formal XML attribute.
 

Static Private Attributes

static string bogus_uri
 A placeholder for the namespace URI that should be attached to the element.
 

Detailed Description

The attributes for a single XML element.

A container for name/value pairs (of strings) for the formal attributes, as collected during parsing. This object is used to initialize the Element object but is not part of the final, in memory, DOM model. This also holds other properties of the element that are unused in this implementation, including the namespace URI.


The documentation for this class was generated from the following file: