Salome HOME
Processing of "Validators" in XML
[modules/shaper.git] / src / Config / Config_ValidatorMessage.cpp
1 /*
2  * Config_ValidatorMessage.cpp
3  *
4  *  Created on: 08 èþëÿ 2014 ã.
5  *      Author: sbh
6  */
7
8 #include <Config_ValidatorMessage.h>
9
10 Config_ValidatorMessage::Config_ValidatorMessage(const Events_ID theId, const void* theParent)
11 : Events_Message(theId, theParent)
12 {
13   myValidatorId = "";
14   myFeatureId = "";
15   myAttributeId = "";
16 }
17
18 Config_ValidatorMessage::~Config_ValidatorMessage()
19 {
20 }
21
22 //static const const char* Config_ValidatorMessage::UID() const
23 //{
24 //  return "ValidatorMessage";
25 //}
26
27 const std::string& Config_ValidatorMessage::validatorId() const
28 {
29   return myValidatorId;
30 }
31
32 const std::string& Config_ValidatorMessage::featureId() const
33 {
34   return myFeatureId;
35 }
36
37 const std::string& Config_ValidatorMessage::attributeId() const
38 {
39   return myAttributeId;
40 }
41
42 const std::list<std::string>& Config_ValidatorMessage::parameters() const
43 {
44   return myVaidatorParameters;
45 }
46
47 bool Config_ValidatorMessage::isValid() const
48 {
49   return !myValidatorId.empty();
50 }
51
52 void Config_ValidatorMessage::setValidatorId(const std::string& validatorId)
53 {
54   myValidatorId = validatorId;
55 }
56
57 void Config_ValidatorMessage::setValidatorParameters(const std::list<std::string>& parameters)
58 {
59   myVaidatorParameters = parameters;
60 }
61
62 void Config_ValidatorMessage::setFeatureId(const std::string& theId)
63 {
64   myFeatureId = theId;
65 }
66
67 void Config_ValidatorMessage::setAttributeId(const std::string& theId)
68 {
69   myAttributeId = theId;
70 }