te::fe::PropertyIsLike Class Referenceabstract

It is intended to encode a character string comparison operator with pattern matching. More...

#include <PropertyIsLike.h>

Inheritance diagram for te::fe::PropertyIsLike:
te::fe::ComparisonOp te::fe::AbstractOp te::common::BaseVisitable< Visitor >

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...
 
ComparisonOpclone () 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...
 
PropertyNamegetPropertyName () const
 It returns the property name. More...
 
void setLiteral (Literal *l)
 It sets the literal value of the operator. More...
 
LiteralgetLiteral () 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...
 
Literalm_literalValue
 Mandatory. More...
 
PropertyNamem_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...
 

Detailed Description

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.

See also
ComparisonOp, PropertyName, Literal

Definition at line 58 of file PropertyIsLike.h.

Member Typedef Documentation

typedef void te::common::BaseVisitable< Visitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

typedef Visitor te::common::BaseVisitable< Visitor , void >::VisitorType
inherited

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , void >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
te::fe::ComparisonOp * te::fe::PropertyIsLike::clone ( ) const
virtual
const std::string & te::fe::PropertyIsLike::getEscapeChar ( ) const

It returns the escape character.

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.

Returns
The literal value.

Definition at line 63 of file PropertyIsLike.cpp.

References m_literalValue.

Referenced by LikeWriter(), and te::map::QueryEncoder::visit().

const char* te::fe::AbstractOp::getName ( ) const
inlineinherited

It returns the operator name.

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.

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.

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.

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.

Parameters
eThe 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.

Parameters
lThe literal value of the operator.
Note
It will take the ownership of the literal value.

Definition at line 57 of file PropertyIsLike.cpp.

References m_literalValue.

Referenced by clone().

void te::fe::PropertyIsLike::setPropertyName ( PropertyName p)

It sets the property name.

Parameters
pThe property name.
Note
It will take the ownership of 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.

Parameters
sThe 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.

Parameters
wThe wild character.

Definition at line 68 of file PropertyIsLike.cpp.

References m_wildCard.

Referenced by clone().

Member Data Documentation

std::string te::fe::PropertyIsLike::m_escapeChar
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().

Literal* te::fe::PropertyIsLike::m_literalValue
private

Mandatory.

Definition at line 164 of file PropertyIsLike.h.

Referenced by clone(), getLiteral(), setLiteral(), and ~PropertyIsLike().

PropertyName* te::fe::PropertyIsLike::m_property
private

Mandatory.

Definition at line 163 of file PropertyIsLike.h.

Referenced by clone(), getPropertyName(), setPropertyName(), and ~PropertyIsLike().

std::string te::fe::PropertyIsLike::m_singleChar
private

The singleChar_ character matches exactly one character. (Mandatory)

Definition at line 166 of file PropertyIsLike.h.

Referenced by clone(), getSingleChar(), and setSingleChar().

std::string te::fe::PropertyIsLike::m_wildCard
private

The wildCard_ character matches zero or more characters. (Mandatory)

Definition at line 165 of file PropertyIsLike.h.

Referenced by clone(), getWildCard(), and setWildCard().


The documentation for this class was generated from the following files: