Computing 4 Assignment 5 - David Lordan
 All Classes Files Functions Variables Enumerations Enumerator
Public Member Functions | List of all members
Attribute Class Reference

#include <Attribute.h>

Public Member Functions

 Attribute ()
 
 Attribute (const Attribute &orig)
 
virtual ~Attribute ()
 
 Attribute (string newName, string newValue)
 
void setAttName (string newName)
 
void setAttValue (string newValue)
 
string getAttName ()
 
string getAttValue ()
 

Detailed Description

Definition at line 21 of file Attribute.h.

Constructor & Destructor Documentation

Attribute::Attribute ( )

Default attribute constructor. Sets the attribute name and value to empty strings.

Definition at line 19 of file Attribute.cpp.

Attribute::Attribute ( const Attribute orig)

Standard copy constructor supplied by Net-Beans.

Parameters
orig- Another attribute object who's variables are used for the new object.

Definition at line 28 of file Attribute.cpp.

Attribute::~Attribute ( )
virtual

Basic object destructor supplied by Net-Beans.

Definition at line 35 of file Attribute.cpp.

Attribute::Attribute ( string  newName,
string  newValue 
)

Custom constructor. Sets the attribute name and value to the passed parameters. Called whenever a new attribute object is created.

Parameters
newName- The name extracted from an XML element opening tag.
newValue- The value extracted from an XML element opening tag.

Definition at line 44 of file Attribute.cpp.

Member Function Documentation

string Attribute::getAttName ( )

Standard getter for the attribute name. Used when displaying the element tree.

Returns

Definition at line 53 of file Attribute.cpp.

string Attribute::getAttValue ( )

Standard getter for the attribute value. Used when displaying the element tree.

Returns
value - The attribute object's value.

Definition at line 61 of file Attribute.cpp.

void Attribute::setAttName ( string  newName)

Standard setter for the attribute name. Called in the custom attribute constructor.

Parameters
newName- Extracted attribute name from an XML element opening tag.

Definition at line 69 of file Attribute.cpp.

void Attribute::setAttValue ( string  newValue)

Standard setter for the attribute value. Called in the custom attribute constructor.

Parameters
newValue- Extracted attribute value from an XML element opening tag.

Definition at line 77 of file Attribute.cpp.


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