It is intended to encode a character string comparison operator with pattern matching. More...
#include <PropertyIsLike.h>
Public Types | |
| typedef void | ReturnType |
| typedef Visitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const =0 |
| It call the visit method from the guest object. More... | |
| ComparisonOp * | clone () const |
| It creates a new copy of this 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 33 of file PropertyIsLike.cpp.
Referenced by clone().
| te::fe::PropertyIsLike::~PropertyIsLike | ( | ) |
Destructor.
Definition at line 40 of file PropertyIsLike.cpp.
References m_literalValue, and m_property.
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
|
virtual |
It creates a new copy of this object.
Reimplemented from te::fe::ComparisonOp.
Definition at line 98 of file PropertyIsLike.cpp.
References te::fe::PropertyName::getName(), te::fe::Literal::getValue(), m_escapeChar, m_literalValue, m_property, m_singleChar, m_wildCard, PropertyIsLike(), setEscapeChar(), setLiteral(), setPropertyName(), setSingleChar(), and setWildCard().
| const std::string & te::fe::PropertyIsLike::getEscapeChar | ( | ) | const |
It returns the escape character.
Definition at line 93 of file PropertyIsLike.cpp.
References m_escapeChar.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
| te::fe::Literal * te::fe::PropertyIsLike::getLiteral | ( | ) | const |
It returns the literal value.
Definition at line 63 of file PropertyIsLike.cpp.
References m_literalValue.
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 52 of file PropertyIsLike.cpp.
References m_property.
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 83 of file PropertyIsLike.cpp.
References m_singleChar.
Referenced by LikeWriter(), and te::map::QueryEncoder::visit().
| const std::string & te::fe::PropertyIsLike::getWildCard | ( | ) | const |
It returns the wild character.
Definition at line 73 of file PropertyIsLike.cpp.
References m_wildCard.
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 88 of file PropertyIsLike.cpp.
References m_escapeChar.
Referenced by clone().
| 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 57 of file PropertyIsLike.cpp.
References m_literalValue.
Referenced by clone().
|
inlineinherited |
It sets the operator name.
| opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
Referenced by te::fe::ComparisonOp::clone(), te::fe::SpatialOp::clone(), te::fe::LogicOp::clone(), te::fe::PropertyIsNull::clone(), te::fe::UnaryLogicOp::clone(), te::fe::PropertyIsBetween::clone(), te::fe::BinaryLogicOp::clone(), te::fe::DistanceBuffer::clone(), te::fe::BinaryComparisonOp::clone(), and te::fe::BinarySpatialOp::clone().
| void te::fe::PropertyIsLike::setPropertyName | ( | PropertyName * | p | ) |
It sets the property name.
| p | The property name. |
Definition at line 46 of file PropertyIsLike.cpp.
References m_property, and p.
Referenced by clone().
| void te::fe::PropertyIsLike::setSingleChar | ( | const std::string & | s | ) |
It sets the wild single character.
| s | The wild single character. |
Definition at line 78 of file PropertyIsLike.cpp.
References m_singleChar.
Referenced by clone().
| void te::fe::PropertyIsLike::setWildCard | ( | const std::string & | w | ) |
It sets the wild character.
| w | The wild character. |
Definition at line 68 of file PropertyIsLike.cpp.
References m_wildCard.
Referenced by clone().
|
private |
The escapeChar_ character is used to escape the meaning of the wildCard_, singleChar_ and escapeChar_ itself. (Mandatory.)
Definition at line 167 of file PropertyIsLike.h.
Referenced by clone(), getEscapeChar(), and setEscapeChar().
|
private |
Mandatory.
Definition at line 164 of file PropertyIsLike.h.
Referenced by clone(), getLiteral(), setLiteral(), and ~PropertyIsLike().
|
protectedinherited |
Operator name.
Definition at line 123 of file AbstractOp.h.
Referenced by te::fe::ComparisonOp::clone(), te::fe::SpatialOp::clone(), te::fe::LogicOp::clone(), te::fe::PropertyIsNull::clone(), te::fe::UnaryLogicOp::clone(), te::fe::PropertyIsBetween::clone(), te::fe::BinaryLogicOp::clone(), te::fe::DistanceBuffer::clone(), te::fe::BinaryComparisonOp::clone(), and te::fe::BinarySpatialOp::clone().
|
private |
Mandatory.
Definition at line 163 of file PropertyIsLike.h.
Referenced by clone(), getPropertyName(), setPropertyName(), and ~PropertyIsLike().
|
private |
The singleChar_ character matches exactly one character. (Mandatory)
Definition at line 166 of file PropertyIsLike.h.
Referenced by clone(), getSingleChar(), and setSingleChar().
|
private |
The wildCard_ character matches zero or more characters. (Mandatory)
Definition at line 165 of file PropertyIsLike.h.
Referenced by clone(), getWildCard(), and setWildCard().