SHAPER  9.13.0
CollectionPlugin_FieldValidator Class Reference

Validator for the field. More...

Inheritance diagram for CollectionPlugin_FieldValidator:
Inheritance graph

Public Member Functions

virtual bool isValid (const FeaturePtr &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if there are no solver errors 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...
 

Detailed Description

Validator for the field.

Member Function Documentation

◆ isValid()

bool CollectionPlugin_FieldValidator::isValid ( const FeaturePtr &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual

returns true if there are no solver errors

Parameters
theFeaturethe checked feature
theArgumentsarguments of the feature (not used)
theErrorerror message

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

bool ModelAPI_FeatureValidator::isNotObligatory ( std::string  theFeature,
std::string  theAttribute 
)
virtualinherited