PathStepTextExpression Class Reference

Represents a single XPath path step of the form /text() or //text(). More...

#include <pathsteptextexpression.h>

Inheritance diagram for PathStepTextExpression:

Inheritance graph
[legend]
Collaboration diagram for PathStepTextExpression:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PathStepTextExpression (AXIS_TYPE _axis)
 Constructor.
 PathStepTextExpression (AXIS_TYPE _axis, PathStepAttribute *_attribute)
 Constructor.
 PathStepTextExpression ()
 Constructor.
virtual ~PathStepTextExpression ()
virtual void print (OutputStream &dos) const
bool isMatchingTag (TAG tag)
PathStepTextExpressionclone ()
PathStepTextExpressioncloneWithoutAttributes ()


Detailed Description

Represents a single XPath path step of the form /text() or //text().

Represents a single XPath path step of the form /text() or //text(), which takes an AXIS_TYPE (default: child-axis), e.g. /text() or //text(), and a PathStepAttribute (if required), e.g. /text()[position()=1] or //text()[position()=1], as argument(s).

Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition at line 60 of file pathsteptextexpression.h.


Constructor & Destructor Documentation

PathStepTextExpression::PathStepTextExpression ( AXIS_TYPE  _axis  ) 

Constructor.

Constructor - creating object for an AXIS_TYPE.

Parameters:
[in] _axis AXIS_TYPE.

Definition at line 38 of file pathsteptextexpression.cpp.

PathStepTextExpression::PathStepTextExpression ( AXIS_TYPE  _axis,
PathStepAttribute _attribute 
)

Constructor.

Constructor - creating object for an AXIS_TYPE and a PathStepAttribute.

Parameters:
[in] _axis AXIS_TYPE.
[in] _attribute Pointer to a PathStepAttribute object.

Definition at line 42 of file pathsteptextexpression.cpp.

PathStepTextExpression::PathStepTextExpression (  ) 

Constructor.

Constructor - creating object for (default) AXIS_TYPE child.

Definition at line 48 of file pathsteptextexpression.cpp.

Referenced by clone(), and cloneWithoutAttributes().

PathStepTextExpression::~PathStepTextExpression (  )  [virtual]

Destructor.

Definition at line 52 of file pathsteptextexpression.cpp.


Member Function Documentation

PathStepTextExpression * PathStepTextExpression::clone (  )  [virtual]

Returns a new, independent copy of a path step expression or of this object respectively.

Returns a new, independent copy of a path step expression or of this object respectively.

Return values:
PathStepExpression* Copy of a path step expression or of this object respectively.

Implements PathStepExpression.

Definition at line 73 of file pathsteptextexpression.cpp.

References PathStepExpression::attribute, PathStepExpression::axis, PathStepAttribute::clone(), and PathStepTextExpression().

PathStepTextExpression * PathStepTextExpression::cloneWithoutAttributes (  )  [virtual]

Returns a new, independent copy of a path step expression or of this object respectively without any PathStepAttribute.

Returns a new, independent copy of a path step expression or of this object respectively without any PathStepAttribute.

Return values:
PathStepExpression* Copy of a path step expression or of this object respectively without any PathStepAttribute.

Implements PathStepExpression.

Definition at line 81 of file pathsteptextexpression.cpp.

References PathStepExpression::axis, and PathStepTextExpression().

bool PathStepTextExpression::isMatchingTag ( TAG  tag  )  [inline, virtual]

Returns if the correspnding path step expression is matching the entered TAG.

Returns if the correspnding path step expression is matching the entered TAG.

Parameters:
[in] tag TAG.
Return values:
bool true if the correspnding path step expression is matching the entered TAG, false otherwise.

Implements PathStepExpression.

Definition at line 94 of file pathsteptextexpression.h.

void PathStepTextExpression::print ( OutputStream dos  )  const [virtual]

Prints the corresponding path step expression.

Prints the corresponding path step expression.

Parameters:
[in] dos Pointer to a OutputStream object.
Return values:
void 

Implements PathStepExpression.

Definition at line 55 of file pathsteptextexpression.cpp.

References PathStepExpression::attribute, and PathStepExpression::axis.


Generated on Sun May 24 20:20:28 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9