#include <klocale.h>

#include "xpath_value.h"
#include "xpath_node.h"

namespace XPath {

XPathNode::XPathNode()
{
    type = NullNode;
}

XPathNode::XPathNode( const XPathNode &n )
{
    type = n.type;
}

XPathNode::XPathNode( XPathNode::NodeType nt )
{
    type = nt;
}

XPathNode::~XPathNode()
{

}

Value *XPathNode::evaluate( QueryState */*state*/ )
{
    return new Exception( i18n("Attempt to evaluate XPathNode with type NullNode") );
}

QString XPathNode::qstring() const
{
    if ( type == NullNode )
	return QString("XPathNode::Null");

    QString s("XPathNode::type=%1");
    return s.arg( (uint) type );
}

}; // namespace XPath


// Local Variables:
// c-basic-offset: 4
// End:
