SHAPER  9.12.0
ParametersPlugin_VariableValidator Class Reference

Validator for the variable name of parameter. More...

Inheritance diagram for ParametersPlugin_VariableValidator:
Inheritance graph

Public Member Functions

virtual PARAMETERSPLUGIN_EXPORT bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 Returns true if attribute has a valid parameter name. More...
 

Protected Member Functions

PARAMETERSPLUGIN_EXPORT bool isUnique (const AttributePtr &theAttribute, const std::string &theString) const
 Returns true if theString is unique parameter name in the document of theAttribute. More...
 

Detailed Description

Validator for the variable name of parameter.

Member Function Documentation

◆ isValid()

bool ParametersPlugin_VariableValidator::isValid ( const AttributePtr &  theAttribute,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual

Returns true if attribute has a valid parameter name.

Parameters
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorthe error string message if validation fails

Implements ModelAPI_AttributeValidator.

◆ isUnique()

bool ParametersPlugin_VariableValidator::isUnique ( const AttributePtr &  theAttribute,
const std::string &  theString 
) const
protected

Returns true if theString is unique parameter name in the document of theAttribute.