| 1 |
#include "xmlfilter.h" |
| 2 |
|
| 3 |
XmlFilter::XmlFilter() |
| 4 |
{ |
| 5 |
|
| 6 |
} |
| 7 |
|
| 8 |
XmlFilter::XmlFilter(QString elementName, QString parentElementName, QString attributeName, QString attributeValue){ |
| 9 |
this->elementName=elementName; |
| 10 |
this->parentElementName=parentElementName; |
| 11 |
this->attributeName=attributeName; |
| 12 |
this->attributeValue=attributeValue; |
| 13 |
} |
| 14 |
|
| 15 |
// QStrings |
| 16 |
|
| 17 |
QString XmlFilter::getElementName(){ |
| 18 |
return this->elementName; |
| 19 |
} |
| 20 |
|
| 21 |
QString XmlFilter::getParentElementName(){ |
| 22 |
return this->parentElementName; |
| 23 |
} |
| 24 |
|
| 25 |
QString XmlFilter::getAttributeName(){ |
| 26 |
return this->attributeName; |
| 27 |
} |
| 28 |
|
| 29 |
QString XmlFilter::getAttributeValue(){ |
| 30 |
return this->attributeValue; |
| 31 |
} |
| 32 |
|
| 33 |
void XmlFilter::setElementName(QString elementName){ |
| 34 |
this->elementName=elementName; |
| 35 |
} |
| 36 |
|
| 37 |
void XmlFilter::setParentElementName(QString parentElementName){ |
| 38 |
this->parentElementName=parentElementName; |
| 39 |
} |
| 40 |
|
| 41 |
void XmlFilter::setAttributeName(QString attributeName){ |
| 42 |
this->attributeName=attributeName; |
| 43 |
} |
| 44 |
|
| 45 |
void XmlFilter::setAttributeValue(QString attributeValue){ |
| 46 |
this->attributeValue=attributeValue; |
| 47 |
} |
| 48 |
|
| 49 |
// Clears filter |
| 50 |
void XmlFilter::clear(){ |
| 51 |
this->elementName.clear(); |
| 52 |
this->parentElementName.clear(); |
| 53 |
this->attributeName.clear(); |
| 54 |
this->attributeValue.clear(); |
| 55 |
} |