It is intended to encode a character string comparison operator with pattern matching. More...
#include <PropertyIsLike.h>
Public Types | |
typedef R | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
PropertyIsLike () | |
It initializes a new PropertyIsLike. More... | |
~PropertyIsLike () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setPropertyName (PropertyName *p) |
It sets the property name. More... | |
PropertyName * | getPropertyName () const |
It returns the property name. More... | |
void | setLiteral (Literal *l) |
It sets the literal value of the operator. More... | |
Literal * | getLiteral () const |
It returns the literal value. More... | |
void | setWildCard (const std::string &w) |
It sets the wild character. More... | |
const std::string & | getWildCard () const |
It returns the wild character. More... | |
void | setSingleChar (const std::string &s) |
It sets the wild single character. More... | |
const std::string & | getSingleChar () const |
It returns the single wild character. More... | |
void | setEscapeChar (const std::string &e) |
It sets the escape character. More... | |
const std::string & | getEscapeChar () const |
It returns the escape character. More... | |
Accessor methods | |
Methods used to get or set properties. | |
const char * | getName () const |
It returns the operator name. More... | |
void | setName (const char *opName) |
It sets the operator name. More... | |
Protected Attributes | |
const char * | m_name |
Operator name. More... | |
Private Attributes | |
std::string | m_escapeChar |
The escapeChar_ character is used to escape the meaning of the wildCard_, singleChar_ and escapeChar_ itself. (Mandatory.) More... | |
Literal * | m_literalValue |
Mandatory. More... | |
PropertyName * | m_property |
Mandatory. More... | |
std::string | m_singleChar |
The singleChar_ character matches exactly one character. (Mandatory) More... | |
std::string | m_wildCard |
The wildCard_ character matches zero or more characters. (Mandatory) More... | |
It is intended to encode a character string comparison operator with pattern matching.
The pattern is defined by a combination of regular characters, the wildCard character, the singleChar character, and the escapeChar character. The wildCard character matches zero or more characters. The singleChar character matches exactly one character.
Definition at line 58 of file PropertyIsLike.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::fe::PropertyIsLike::PropertyIsLike | ( | ) |
It initializes a new PropertyIsLike.
Definition at line 32 of file PropertyIsLike.cpp.
te::fe::PropertyIsLike::~PropertyIsLike | ( | ) |
Destructor.
Definition at line 39 of file PropertyIsLike.cpp.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
const std::string & te::fe::PropertyIsLike::getEscapeChar | ( | ) | const |
It returns the escape character.
Definition at line 92 of file PropertyIsLike.cpp.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
te::fe::Literal * te::fe::PropertyIsLike::getLiteral | ( | ) | const |
It returns the literal value.
Definition at line 62 of file PropertyIsLike.cpp.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
|
inlineinherited |
It returns the operator name.
Definition at line 82 of file AbstractOp.h.
Referenced by GetQualifiedName(), te::map::QueryEncoder::visit(), and te::fe::serialize::AbstractOp::write().
te::fe::PropertyName * te::fe::PropertyIsLike::getPropertyName | ( | ) | const |
It returns the property name.
Definition at line 51 of file PropertyIsLike.cpp.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
const std::string & te::fe::PropertyIsLike::getSingleChar | ( | ) | const |
It returns the single wild character.
Definition at line 82 of file PropertyIsLike.cpp.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
const std::string & te::fe::PropertyIsLike::getWildCard | ( | ) | const |
It returns the wild character.
Definition at line 72 of file PropertyIsLike.cpp.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
void te::fe::PropertyIsLike::setEscapeChar | ( | const std::string & | e | ) |
It sets the escape character.
e | The escape character. |
Definition at line 87 of file PropertyIsLike.cpp.
void te::fe::PropertyIsLike::setLiteral | ( | Literal * | l | ) |
It sets the literal value of the operator.
l | The literal value of the operator. |
Definition at line 56 of file PropertyIsLike.cpp.
|
inlineinherited |
It sets the operator name.
opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
void te::fe::PropertyIsLike::setPropertyName | ( | PropertyName * | p | ) |
It sets the property name.
p | The property name. |
Definition at line 45 of file PropertyIsLike.cpp.
void te::fe::PropertyIsLike::setSingleChar | ( | const std::string & | s | ) |
It sets the wild single character.
s | The wild single character. |
Definition at line 77 of file PropertyIsLike.cpp.
void te::fe::PropertyIsLike::setWildCard | ( | const std::string & | w | ) |
It sets the wild character.
w | The wild character. |
Definition at line 67 of file PropertyIsLike.cpp.
|
private |
The escapeChar_ character is used to escape the meaning of the wildCard_, singleChar_ and escapeChar_ itself. (Mandatory.)
Definition at line 164 of file PropertyIsLike.h.
|
private |
Mandatory.
Definition at line 161 of file PropertyIsLike.h.
|
protectedinherited |
Operator name.
Definition at line 120 of file AbstractOp.h.
|
private |
Mandatory.
Definition at line 160 of file PropertyIsLike.h.
|
private |
The singleChar_ character matches exactly one character. (Mandatory)
Definition at line 163 of file PropertyIsLike.h.
|
private |
The wildCard_ character matches zero or more characters. (Mandatory)
Definition at line 162 of file PropertyIsLike.h.