10 #include "util/AttributeReferences.h"
19 REFERENCE_SCOPE scope)
21 this->element = element;
23 this->ref_element = ref_element;
24 this->ref_attr = ref_attr;
27 initializeStringToScope();
36 this->element = element;
38 this->ref_element = ref_element;
39 this->ref_attr = ref_attr;
41 initializeStringToScope();
43 if(stringToScope.contains(scope))
44 this->scope = stringToScope.value(scope);
47 this->scope = USERDEFINED_SCOPE;
48 this->userDefinedScope = scope;
64 return this->ref_element;
69 return this->ref_attr;
77 void AttributeReferences::initializeStringToScope()
79 if(!stringToScope.size())
81 stringToScope.insert(QString(
"SAME"), SAME_SCOPE);
82 stringToScope.insert(QString(
"ANY"), ANY_SCOPE);
88 return this->userDefinedScope;