jd.xml.xslt.expr
Class FunctionAvailable

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.BooleanExpression
          extended byjd.xml.xpath.expr.function.BooleanFunction
              extended byjd.xml.xslt.expr.Available
                  extended byjd.xml.xslt.expr.FunctionAvailable
All Implemented Interfaces:
Expression, Function, XsltFunction

public class FunctionAvailable
extends Available

FunctionAvailable represents the xslt function "boolean function-available(string)".


Field Summary
static FunctionType TYPE
          The function type.
 
Fields inherited from class jd.xml.xpath.expr.function.BooleanFunction
arguments_
 
Fields inherited from interface jd.xml.xpath.expr.function.Function
NULL_ARGUMENTS
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Constructor Summary
FunctionAvailable()
           
 
Method Summary
 boolean available(ExtensionHandler handler, String functionName)
           
 boolean available(XPathContext context, String uri, String functionName)
          Evalute the function.
 void copyContextParameters(Function function)
           
 FunctionLibrary getFunctionLibrary()
           
 FunctionType getFunctionType()
          Return the FunctionType of the Function-
 void initContextParameters(StaticExprContext context)
          Set function parameters provided by the given expression context.
 
Methods inherited from class jd.xml.xslt.expr.Available
getContextDependencies, getNamespaceContext, toBooleanValue
 
Methods inherited from class jd.xml.xpath.expr.function.BooleanFunction
accept, getArgument, setArguments
 
Methods inherited from class jd.xml.xpath.expr.BooleanExpression
getResultType, toNumberValue, toStringValue, toXObject
 
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jd.xml.xpath.expr.function.Function
getArgument, setArguments
 
Methods inherited from interface jd.xml.xpath.expr.Expression
accept, getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toNumberValue, toString, toStringValue, toXObject
 

Field Detail

TYPE

public static final FunctionType TYPE
The function type.

Constructor Detail

FunctionAvailable

public FunctionAvailable()
Method Detail

getFunctionType

public FunctionType getFunctionType()
Description copied from interface: Function
Return the FunctionType of the Function-


initContextParameters

public void initContextParameters(StaticExprContext context)
Set function parameters provided by the given expression context.

Specified by:
initContextParameters in interface XsltFunction
Overrides:
initContextParameters in class Available

copyContextParameters

public void copyContextParameters(Function function)
Specified by:
copyContextParameters in interface XsltFunction
Overrides:
copyContextParameters in class Available

getFunctionLibrary

public FunctionLibrary getFunctionLibrary()

available

public boolean available(XPathContext context,
                         String uri,
                         String functionName)
Evalute the function.

Specified by:
available in class Available

available

public boolean available(ExtensionHandler handler,
                         String functionName)
Specified by:
available in class Available