Salome HOME
Task #267: initial implementation of errors management
[modules/shaper.git] / src / ModelAPI / ModelAPI_Validator.h
index a4eb79416c7f802910eb6f49b9232af7a75502bf..3dfb14f10cc9f4816c77bf7f00f4f9eafe36664e 100644 (file)
@@ -83,6 +83,9 @@ class MODELAPI_EXPORT ModelAPI_ValidatorsFactory
   /// so, it is not needed for the standard validation mechanism
   virtual void registerNotObligatory(std::string theFeature, std::string theAttribute) = 0;
 
+  /// Returns true if the attribute in feature is not obligatory for the feature execution
+  virtual bool isNotObligatory(std::string theFeature, std::string theAttribute) = 0;
+
   /// register that this attribute conceals in the object browser
   /// all referenced features after execution
   virtual void registerConcealment(std::string theFeature, std::string theAttribute) = 0;