|
| virtual MODEL_EXPORT void | registerValidator (const std::string &theID, ModelAPI_Validator *theValidator) |
| | Registers the instance of the validator by the ID. More...
|
| |
| virtual MODEL_EXPORT void | assignValidator (const std::string &theID, const std::string &theFeatureID) |
| | Assigns validator to the feature. More...
|
| |
| virtual MODEL_EXPORT void | assignValidator (const std::string &theID, const std::string &theFeatureID, const std::list< std::string > &theArguments) |
| | Assigns validator to the feature with arguments of the validator. More...
|
| |
| virtual MODEL_EXPORT void | assignValidator (const std::string &theID, const std::string &theFeatureID, const std::string &theAttrID, const std::list< std::string > &theArguments) |
| | Assigns validator to the attribute of the feature. More...
|
| |
| virtual MODEL_EXPORT void | validators (const std::string &theFeatureID, Validators &theResult) const |
| | Provides a validator for the feature, returns NULL if no validator. More...
|
| |
| virtual MODEL_EXPORT void | validators (const std::string &theFeatureID, const std::string &theAttrID, Validators &theResult) const |
| | Provides a validator for the attribute, returns NULL if no validator. More...
|
| |
| virtual MODEL_EXPORT const ModelAPI_Validator * | validator (const std::string &theID) const |
| | Returns registered validator by its Id. More...
|
| |
| virtual MODEL_EXPORT bool | validate (const std::shared_ptr< ModelAPI_Feature > &theFeature) const |
| | Returns true if feature and all its attributes are valid. More...
|
| |
| virtual MODEL_EXPORT bool | validate (const std::shared_ptr< ModelAPI_Attribute > &theAttribute, std::string &theValidator, Events_InfoMessage &theError) const |
| | Returns true if the attribute is valid. More...
|
| |
| virtual void | registerNotObligatory (std::string theFeature, std::string theAttribute) |
| | register that this attribute in feature is not obligatory for the feature execution so, it is not needed for the standard validation mechanism More...
|
| |
| virtual bool | isNotObligatory (std::string theFeature, std::string theAttribute) |
| | Returns true if the attribute in feature is not obligatory for the feature execution. More...
|
| |
| virtual void | registerConcealment (std::string theFeature, std::string theAttribute) |
| | register that this attribute conceals in the object browser all referenced features after execution More...
|
| |
| virtual bool | isConcealed (std::string theFeature, std::string theAttribute) |
| | Returns true that it was registered that attribute conceals the referenced result. More...
|
| |
| virtual void | registerCase (std::string theFeature, std::string theAttribute, const std::list< std::pair< std::string, std::string > > &theCases) |
| | register the case-attribute (myCases set definition) More...
|
| |
| virtual bool | isCase (FeaturePtr theFeature, std::string theAttribute) |
| | Returns true if the attribute must be checked (the case is selected) More...
|
| |
| virtual void | registerMainArgument (std::string theFeature, std::string theAttribute) |
| | Register the attribute as a main argument of the feature. More...
|
| |
| virtual bool | isMainArgument (std::string theFeature, std::string theAttribute) |
| | Returns true is the attribute is a main argument of the feature. More...
|
| |
| virtual void | registerGeometricalSelection (std::string theFeature, std::string theAttribute) |
| | Register the selection attribute as geometrical selection. More...
|
| |
| virtual bool | isGeometricalSelection (std::string theFeature, std::string theAttribute) |
| | Returns true if the attribute is a geometrical selection. More...
|
| |
Manages the registered validators.
Allows to get a validator by the feature identifier and the attribute identifier (if attribute is validated). All accessible validators mustbe registered by the ID string first. The instance of this factory can be get in the Session. Keeps the validator objects alive and just returns one of it by request. All the needed information is provided to the validator as an argument, this allows to work with them independently from the feature specific object.