Unicorn XML Toolkit
Version 1.00.00

Namespace Xslt
Class CPatternHandler

class CPatternHandler: public CInterface {
public:
    CPatternHandler();
    virtual ~CPatternHandler();
public:
    virtual bool Match(const XNode &pNode) = 0;
    virtual bool Match(const XNode &pNode, double &dblPriority) = 0;
    };

The abstract interface to XSLT patterns.

Implementation of the interface defined by this class is supplied by the toolkit; application developers do not need to implement this interface.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
Dom::INode
Constructor/Destructor Summary
CPatternHandler ();
����������Constructs the pattern handler.
~CPatternHandler ();
����������Destroys the pattern handler.

Function Summary
bool Match (const XNode &pNode);
����������Matches the XDM node against this pattern.
bool Match (const XNode &pNode, double &dblPriority);
����������Matches the XDM node against this pattern, returns the effective pattern priority.

Constructor/Destructor Detail

CPatternHandler

CPatternHandler();

Constructs the pattern handler.

~CPatternHandler

virtual ~CPatternHandler();

Destroys the pattern handler.

Function Detail

Match

virtual bool Match(const XNode &pNode) = 0;

Matches the XDM node against this pattern.

Parameters:
pNode - the XDM node to match
Returns:
true if the given node mathes this pattern; false otherwise

Match

virtual bool Match(const XNode &pNode, double &dblPriority) = 0;

Matches the XDM node against this pattern, returns the effective pattern priority.

The effective priority is defined as the maximum priority among all location path patterns (that is, parts of this pattern conforming to the LocationPartPattern syntax defined in XSLT) that match the given node.

Parameters:
pNode - the XDM node to match
dblPriority - on return, the effective priority; unspecified if match failed
Returns:
true if the given node mathes this pattern; false otherwise

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.