PathStepNodeExpression Class Reference

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

#include <pathstepnodeexpression.h>

Inheritance diagram for PathStepNodeExpression:

Inheritance graph
[legend]
Collaboration diagram for PathStepNodeExpression:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PathStepNodeExpression (AXIS_TYPE _axis)
 Constructor.
 PathStepNodeExpression (AXIS_TYPE _axis, PathStepAttribute *_attribute)
 Constructor.
 PathStepNodeExpression ()
 Constructor.
virtual ~PathStepNodeExpression ()
virtual void print (OutputStream &dos) const
bool isMatchingTag (TAG tag)
PathStepNodeExpressionclone ()
PathStepNodeExpressioncloneWithoutAttributes ()


Detailed Description

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

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


Constructor & Destructor Documentation

PathStepNodeExpression::PathStepNodeExpression ( AXIS_TYPE  _axis  ) 

Constructor.

Constructor - creating object for an AXIS_TYPE.

Parameters:
[in] _axis AXIS_TYPE.

Definition at line 38 of file pathstepnodeexpression.cpp.

PathStepNodeExpression::PathStepNodeExpression ( 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 pathstepnodeexpression.cpp.

PathStepNodeExpression::PathStepNodeExpression (  ) 

Constructor.

Constructor - creating object for (default) AXIS_TYPE child.

Definition at line 48 of file pathstepnodeexpression.cpp.

Referenced by clone(), and cloneWithoutAttributes().

PathStepNodeExpression::~PathStepNodeExpression (  )  [virtual]

Destructor.

Definition at line 52 of file pathstepnodeexpression.cpp.


Member Function Documentation

PathStepNodeExpression * PathStepNodeExpression::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 pathstepnodeexpression.cpp.

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

PathStepNodeExpression * PathStepNodeExpression::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 pathstepnodeexpression.cpp.

References PathStepExpression::axis, and PathStepNodeExpression().

bool PathStepNodeExpression::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 pathstepnodeexpression.h.

void PathStepNodeExpression::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 pathstepnodeexpression.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