|
Teuchos - Trilinos Tools Package
Version of the Day
|
Convert a StringToIntegralParameterEntryValidator to and from XML. More...
#include <Teuchos_StandardValidatorXMLConverters.hpp>
Public Member Functions | |
Overridden from ValidatorXMLConverter | |
| RCP< ParameterEntryValidator > | convertXML (const XMLObject &xmlObj, const IDtoValidatorMap &validatorIDsMap) const |
| | |
| void | convertValidator (const RCP< const ParameterEntryValidator > validator, XMLObject &xmlObj, const ValidatortoIDMap &validatorIDsMap) const |
| | |
Convert a StringToIntegralParameterEntryValidator to and from XML.
This class knows how to write a StringToIntegralParameterEntryValidator to XML, and create an StringToIntegralParameterEntryValidator from its XML representation.
Here is the XML representation of a StringToIntegralValidator:
<Validator type="StringToIntegralValidator(NumberType)" defaultParameterName="Name of default parameter" caseSensitive="[true|false]" validatorId="Validator id" > <String stringValue="Value 1" integralValue="int value 1" stringDoc="Documentation for Value 1" /> <String stringValue="Value 2" integralValue="int value 2" stringDoc="Documentation for Value 2" /> ...More String Values... </Validator>
Here, "[true|false]" means the XML string representation of either Boolean true, or Boolean false.
The "integralValue", "stringDoc", and "caseSensitive" XML attributes are optional. However, if one of the "String" tags includes an "integralValue" and/or a "stringDoc" XML attribute, all other "String" tags must do so as well.
Definition at line 99 of file Teuchos_StandardValidatorXMLConverters.hpp.
| RCP< ParameterEntryValidator > Teuchos::StringToIntegralValidatorXMLConverter< IntegralType >::convertXML | ( | const XMLObject & | xmlObj, |
| const IDtoValidatorMap & | validatorIDsMap | ||
| ) | const [virtual] |
Implements Teuchos::ValidatorXMLConverter.
Definition at line 185 of file Teuchos_StandardValidatorXMLConverters.hpp.
| void Teuchos::StringToIntegralValidatorXMLConverter< IntegralType >::convertValidator | ( | const RCP< const ParameterEntryValidator > | validator, |
| XMLObject & | xmlObj, | ||
| const ValidatortoIDMap & | validatorIDsMap | ||
| ) | const [virtual] |
Implements Teuchos::ValidatorXMLConverter.
Definition at line 231 of file Teuchos_StandardValidatorXMLConverters.hpp.
1.7.6.1