#include <WSRestriction.h>
|
enum class | Type : uint8_t { Unknown
, Enumeration
, Pattern
} |
|
◆ WSRestriction() [1/2]
sptk::WSRestriction::WSRestriction |
( |
const String & |
typeName, |
|
|
const xdoc::SNode & |
simpleTypeElement |
|
) |
| |
Constructor from WSDL (XML) definition
- Parameters
-
typeName | WSDL type name |
simpleTypeElement | Simple type XML node |
◆ WSRestriction() [2/2]
sptk::WSRestriction::WSRestriction |
( |
Type |
type, |
|
|
const String & |
wsdlTypeName, |
|
|
const Strings & |
enumerationsOrPattern |
|
) |
| |
Constructor from WSDL (XML) definition
- Parameters
-
type | Restriction type |
wsdlTypeName | WSDL type name |
enumerationsOrPatternss | Enumerations or patterns |
◆ check()
void sptk::WSRestriction::check |
( |
const String & |
typeName, |
|
|
const String & |
value |
|
) |
| const |
Restriction check
Checks value to satisfy restriction. If value violates restriction, throws exception.
- Parameters
-
typeName | Name of the checked type (for error messages) |
value | Value to check |
◆ enumeration()
Strings sptk::WSRestriction::enumeration |
( |
| ) |
const |
|
inline |
Optional enumeration to match
- Returns
- enumeration
◆ generateConstructor()
String sptk::WSRestriction::generateConstructor |
( |
const String & |
variableName | ) |
const |
Generates restriction constructor for C++ skeleton
◆ patterns()
const std::vector< RegularExpression > & sptk::WSRestriction::patterns |
( |
| ) |
const |
|
inline |
Optional regular expression to match
- Returns
- regular expression string
◆ type()
Type sptk::WSRestriction::type |
( |
| ) |
const |
Get restriction type
- Returns
- restriction type
The documentation for this class was generated from the following file: