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

te::fe::PropertyIsLike::~PropertyIsLike ( )

Destructor.

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

It returns the escape character.

Returns
The escape character.
Literal* te::fe::PropertyIsLike::getLiteral ( ) const

It returns the literal value.

Returns
The literal value.
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.

PropertyName* te::fe::PropertyIsLike::getPropertyName ( ) const

It returns the property name.

Returns
The property name.
const std::string& te::fe::PropertyIsLike::getSingleChar ( ) const

It returns the single wild character.

Returns
The single wild character.
const std::string& te::fe::PropertyIsLike::getWildCard ( ) const

It returns the wild character.

Returns
The wild character.
void te::fe::PropertyIsLike::setEscapeChar ( const std::string &  e)

It sets the escape character.

Parameters
eThe escape character.
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.
void te::fe::AbstractOp::setName ( const char *  opName)
inlineinherited

It sets the operator name.

Parameters
opNameThe operator name.

Definition at line 89 of file AbstractOp.h.

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.
void te::fe::PropertyIsLike::setSingleChar ( const std::string &  s)

It sets the wild single character.

Parameters
sThe wild single character.
void te::fe::PropertyIsLike::setWildCard ( const std::string &  w)

It sets the wild character.

Parameters
wThe wild character.

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 164 of file PropertyIsLike.h.

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

Mandatory.

Definition at line 161 of file PropertyIsLike.h.

const char* te::fe::AbstractOp::m_name
protectedinherited

Operator name.

Definition at line 120 of file AbstractOp.h.

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

Mandatory.

Definition at line 160 of file PropertyIsLike.h.

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

The singleChar_ character matches exactly one character. (Mandatory)

Definition at line 163 of file PropertyIsLike.h.

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

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

Definition at line 162 of file PropertyIsLike.h.


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