org.inria.ns.reflex.xml.xpath
Class XPathFunction.NamedXPathFunction

java.lang.Object
  extended by org.inria.ns.reflex.xml.xpath.XPathFunction.NamedXPathFunction
All Implemented Interfaces:
XPathFunction
Direct Known Subclasses:
AddDateFunction, CandidateFunction, CanonicalPathFunction, ChannelFunction, ContextFunction, CountFunction, CurrentFunction, DateFormatFunction, ElementFunction, FileFunction, GroupFunction, MacroFunction, MessageFunction, MimeTypeFunction, NormalizeSpaceFunction, NumberFunction, QNameFunction, RelativizeURIFunction, ResolveURIFunction, ReverseFunction, RootFilesFunction, SortFunction, StringFunction, ValueFunction
Enclosing interface:
XPathFunction

public abstract static class XPathFunction.NamedXPathFunction
extends Object
implements XPathFunction

A convenient basic implementation that allow to set the name of an XPath function just after its creation.

A class that extends this class just have to implement the XPathFunction.evaluate(XPathContext, List) method.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.xpath.XPathFunction
XPathFunction.NamedXPathFunction
 
Constructor Summary
XPathFunction.NamedXPathFunction()
           
 
Method Summary
 QName getQName()
          Return the name of this function.
 void setQName(QName functionName)
          Set the name of this function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.xml.xpath.XPathFunction
evaluate
 

Constructor Detail

XPathFunction.NamedXPathFunction

public XPathFunction.NamedXPathFunction()
Method Detail

setQName

public void setQName(QName functionName)
Set the name of this function.

This method can't be invoked several times.

Throws:
IllegalStateException - If the name has been already set.
See Also:
XPathFunction.getQName()

getQName

public QName getQName()
Return the name of this function.

Specified by:
getQName in interface XPathFunction
Returns:
The name of this function.
See Also:
XPathFunction.getQName()