Package org.eclipse.wst.xml.xpath2.api


org.eclipse.wst.xml.xpath2.api
Class FunctionLibrary



public class FunctionLibrary
extends 
Interface for function libraries support.


Field Summary

public static intVARIABLE_ARITY
    

Method Summary

public booleanfunctionExists(java.lang.String name , int arity)
     Checks whether the function exists or not.
public java.lang.StringgetNamespace()
     Returns the namespace of the function library.
public org.eclipse.wst.xml.xpath2.api.FunctionresolveFunction(java.lang.String localName , int arity)
     Function support.

Field Detail

VARIABLE_ARITY

public static int VARIABLE_ARITY


Methods Detail

functionExists

public boolean functionExists(java.lang.String name , int arity)

Checks whether the function exists or not.

Parameters

name - Name of function.

arity - arity of the function,

Returns

boolean - Result of the test.


getNamespace

public java.lang.String getNamespace()

Returns the namespace of the function library.

Returns

java.lang.String - Namespace.


resolveFunction

public org.eclipse.wst.xml.xpath2.api.Function resolveFunction(java.lang.String localName , int arity)

Function support.

Parameters

localName

arity - arity of the function.

Returns

org.eclipse.wst.xml.xpath2.api.Function - The function from the library.