#include <nedelements.h>

Represents the <property> XML element in memory. DTD declaration:
<!ELEMENT property (comment*, property-key*)>
<!ATTLIST property
is-implicit (true|false) "false"
name NMTOKEN #REQUIRED
index NMTOKEN #IMPLIED>
Public Member Functions | |
Constructors, destructor | |
| PropertyElement () | |
| PropertyElement (NEDElement *parent) | |
| virtual | ~PropertyElement () |
Redefined NEDElement methods, incl. generic access to attributes | |
| virtual const char * | getTagName () const |
| virtual int | getTagCode () const |
| virtual int | getNumAttributes () const |
| virtual const char * | getAttributeName (int k) const |
| virtual const char * | getAttribute (int k) const |
| virtual const char * | getAttribute (const char *name) const |
| virtual void | setAttribute (int k, const char *val) |
| virtual void | setAttribute (const char *name, const char *val) |
| virtual const char * | getAttributeDefault (int k) const |
| virtual PropertyElement * | dup () const |
Typed access to attributes, children and siblings | |
| bool | getIsImplicit () const |
| void | setIsImplicit (bool val) |
| const char * | getName () const |
| void | setName (const char *val) |
| const char * | getIndex () const |
| void | setIndex (const char *val) |
| virtual PropertyElement * | getNextPropertySibling () const |
| virtual CommentElement * | getFirstCommentChild () const |
| virtual PropertyKeyElement * | getFirstPropertyKeyChild () const |
| PropertyElement::PropertyElement | ( | ) |
| PropertyElement::PropertyElement | ( | NEDElement * | parent | ) |
| virtual PropertyElement::~PropertyElement | ( | ) | [inline, virtual] |
| virtual const char* PropertyElement::getTagName | ( | ) | const [inline, virtual] |
Overridden in subclasses to return the name of the XML element the class represents.
Implements NEDElement.
| virtual int PropertyElement::getTagCode | ( | ) | const [inline, virtual] |
Overridden in subclasses to return the numeric code (NED_xxx) of the XML element the class represents.
Implements NEDElement.
References NED_PROPERTY.
| virtual int PropertyElement::getNumAttributes | ( | ) | const [virtual] |
Pure virtual method, it should be redefined in subclasses to return the number of attributes defined in the DTD.
Implements NEDElement.
| virtual const char* PropertyElement::getAttributeName | ( | int | k | ) | const [virtual] |
Pure virtual method, it should be redefined in subclasses to return the name of the kth attribute as defined in the DTD.
It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).
Implements NEDElement.
| virtual const char* PropertyElement::getAttribute | ( | int | k | ) | const [virtual] |
Pure virtual method, it should be redefined in subclasses to return the value of the kth attribute (i.e.
the attribute with the name getAttributeName(k)).
It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).
Implements NEDElement.
| virtual const char* PropertyElement::getAttribute | ( | const char * | attr | ) | const [inline, virtual] |
Returns the value of the attribute with the given name.
Relies on lookupAttribute() and getAttribute().
It returns NULL if the given attribute is not found.
Reimplemented from NEDElement.
References NEDElement::getAttribute().
| virtual void PropertyElement::setAttribute | ( | int | k, | |
| const char * | value | |||
| ) | [virtual] |
Pure virtual method, it should be redefined in subclasses to set the value of the kth attribute (i.e.
the attribute with the name getAttributeName(k)).
If k is out of range (i.e. negative or greater than getNumAttributes()), the call should be ignored.
Implements NEDElement.
| virtual void PropertyElement::setAttribute | ( | const char * | attr, | |
| const char * | value | |||
| ) | [inline, virtual] |
Sets the value of the attribute with the given name.
Relies on lookupAttribute() and setAttribute().
If the given attribute is not found, the call has no effect.
Reimplemented from NEDElement.
References NEDElement::setAttribute().
| virtual const char* PropertyElement::getAttributeDefault | ( | int | k | ) | const [virtual] |
Pure virtual method, it should be redefined in subclasses to return the default value of the kth attribute, as defined in the DTD.
It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()), or if the attribute is #REQUIRED; and return "" if the attribute is #IMPLIED.
Implements NEDElement.
| virtual PropertyElement* PropertyElement::dup | ( | ) | const [virtual] |
Creates and returns a duplicate of the element.
Child elements are not copied.
Implements NEDElement.
| bool PropertyElement::getIsImplicit | ( | ) | const [inline] |
| void PropertyElement::setIsImplicit | ( | bool | val | ) | [inline] |
| const char* PropertyElement::getName | ( | ) | const [inline] |
| void PropertyElement::setName | ( | const char * | val | ) | [inline] |
| const char* PropertyElement::getIndex | ( | ) | const [inline] |
| void PropertyElement::setIndex | ( | const char * | val | ) | [inline] |
| virtual PropertyElement* PropertyElement::getNextPropertySibling | ( | ) | const [virtual] |
| virtual CommentElement* PropertyElement::getFirstCommentChild | ( | ) | const [virtual] |
| virtual PropertyKeyElement* PropertyElement::getFirstPropertyKeyChild | ( | ) | const [virtual] |
1.5.5