Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom.git into Dev_0.6.1
[modules/shaper.git] / src / Config / Config_ValidatorMessage.cpp
1 /*
2  * Config_ValidatorMessage.cpp
3  *
4  *  Created on: 08 Jul 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 const std::string& Config_ValidatorMessage::validatorId() const
23 {
24   return myValidatorId;
25 }
26
27 const std::string& Config_ValidatorMessage::featureId() const
28 {
29   return myFeatureId;
30 }
31
32 const std::string& Config_ValidatorMessage::attributeId() const
33 {
34   return myAttributeId;
35 }
36
37 const std::list<std::string>& Config_ValidatorMessage::parameters() const
38 {
39   return myVaidatorParameters;
40 }
41
42 bool Config_ValidatorMessage::isValid() const
43 {
44   return !myValidatorId.empty();
45 }
46
47 void Config_ValidatorMessage::setValidatorId(const std::string& validatorId)
48 {
49   myValidatorId = validatorId;
50 }
51
52 void Config_ValidatorMessage::setValidatorParameters(const std::list<std::string>& parameters)
53 {
54   myVaidatorParameters = parameters;
55 }
56
57 void Config_ValidatorMessage::setFeatureId(const std::string& theId)
58 {
59   myFeatureId = theId;
60 }
61
62 void Config_ValidatorMessage::setAttributeId(const std::string& theId)
63 {
64   myAttributeId = theId;
65 }