[position()=n].
More...
#include <pathstepattributeposition.h>


Public Member Functions | |
| PathStepAttributePosition (unsigned _position) | |
| Constructor. | |
| virtual | ~PathStepAttributePosition () |
| void | print (OutputStream &dos) const |
| unsigned | getPosition () |
Returns the position n of an attribute. | |
| PathStepAttributePosition * | clone () |
Private Attributes | |
| unsigned | position |
| The entered position. | |
[position()=n].
Represents an XQuery attribute for a single XPath path step of the form [position()=n] (whereas n denotes a (numeric) position of an item in a sequence), which takes a position n as argument.
[position()=n] or [position()=1] respectively is only used internally to determine that only the first item in a sequence needs to be kept. Definition at line 53 of file pathstepattributeposition.h.
| PathStepAttributePosition::PathStepAttributePosition | ( | unsigned | _position | ) |
Constructor.
Constructor - creating object for position n.
| [in] | _position | Position n of an item in a sequence. |
Definition at line 38 of file pathstepattributeposition.cpp.
Referenced by clone().
| PathStepAttributePosition::~PathStepAttributePosition | ( | ) | [virtual] |
Destructor.
Definition at line 42 of file pathstepattributeposition.cpp.
| PathStepAttributePosition * PathStepAttributePosition::clone | ( | ) | [virtual] |
Returns a new, independent copy of the corresponding attribute.
Returns a new, independent copy of the corresponding attribute.
| PathStepAttribute* | Copy of the corresponding attribute or of this object respectively. |
Implements PathStepAttribute.
Definition at line 49 of file pathstepattributeposition.cpp.
References PathStepAttributePosition(), and position.
| unsigned PathStepAttributePosition::getPosition | ( | ) | [inline] |
Returns the position n of an attribute.
Returns the position n of an attribute, i.e. returns the member variable.
| unsigned | Position n of an item in a sequence. |
Definition at line 77 of file pathstepattributeposition.h.
References position.
| void PathStepAttributePosition::print | ( | OutputStream & | dos | ) | const [virtual] |
Prints the corresponding attribute.
Prints the corresponding attribute.
| [in] | dos | Pointer to a OutputStream object. |
| void |
Implements PathStepAttribute.
Definition at line 45 of file pathstepattributeposition.cpp.
References position.
unsigned PathStepAttributePosition::position [private] |
The entered position.
The entered position, which is the argument of the constructor and determines the position n of an item in a sequence.
Definition at line 90 of file pathstepattributeposition.h.
Referenced by clone(), getPosition(), and print().
1.5.9