PathStepStarExpression Class Reference

Represents a single XPath path step of the form /* or //*. More...

#include <pathstepstarexpression.h>

Inheritance diagram for PathStepStarExpression:

Inheritance graph
[legend]
Collaboration diagram for PathStepStarExpression:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PathStepStarExpression (AXIS_TYPE _axis)
 Constructor.
 PathStepStarExpression (AXIS_TYPE _axis, PathStepAttribute *_attribute)
 Constructor.
 PathStepStarExpression ()
 Constructor.
virtual ~PathStepStarExpression ()
virtual void print (OutputStream &dos) const
bool isMatchingTag (TAG tag)
PathStepStarExpressionclone ()
PathStepStarExpressioncloneWithoutAttributes ()


Detailed Description

Represents a single XPath path step of the form /* or //*.

Represents a single XPath path step of the form /* or //*, which takes an AXIS_TYPE (default: child-axis), e.g. /* or //*, and a PathStepAttribute (if required), e.g. /*[position()=1] or //*[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 pathstepstarexpression.h.


Constructor & Destructor Documentation

PathStepStarExpression::PathStepStarExpression ( AXIS_TYPE  _axis  ) 

Constructor.

Constructor - creating object for an AXIS_TYPE.

Parameters:
[in] _axis AXIS_TYPE.

Definition at line 38 of file pathstepstarexpression.cpp.

PathStepStarExpression::PathStepStarExpression ( 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 pathstepstarexpression.cpp.

PathStepStarExpression::PathStepStarExpression (  ) 

Constructor.

Constructor - creating object for (default) AXIS_TYPE child.

Definition at line 48 of file pathstepstarexpression.cpp.

Referenced by clone(), and cloneWithoutAttributes().

PathStepStarExpression::~PathStepStarExpression (  )  [virtual]

Destructor.

Definition at line 52 of file pathstepstarexpression.cpp.


Member Function Documentation

PathStepStarExpression * PathStepStarExpression::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 pathstepstarexpression.cpp.

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

PathStepStarExpression * PathStepStarExpression::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 pathstepstarexpression.cpp.

References PathStepExpression::axis, and PathStepStarExpression().

bool PathStepStarExpression::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 pathstepstarexpression.h.

void PathStepStarExpression::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 pathstepstarexpression.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