org.exist.xquery.functions
Class FunEscapeURI
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.Function
org.exist.xquery.BasicFunction
org.exist.xquery.functions.FunEscapeURI
- All Implemented Interfaces:
- CompiledExpression, CompiledXQuery, Expression
- public class FunEscapeURI
- extends BasicFunction
- Author:
- wolf
Method Summary |
static java.lang.String |
escape(java.lang.CharSequence s,
boolean escapeReserved)
Does the actual escaping. |
Sequence |
eval(Sequence[] args,
Sequence contextSequence)
Process the function. |
Methods inherited from class org.exist.xquery.Function |
analyze, createFunction, dump, getArgument, getArgumentCount, getArguments, getASTNode, getCardinality, getDependencies, getName, getParent, getSignature, isCalledAs, returnsType, setArguments, setASTNode, setParent, setPrimaryAxis, toString |
Methods inherited from class org.exist.xquery.PathExpr |
accept, add, add, addPath, addPredicate, dump, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceLastExpression, reset, resetState, setContext, setSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
signature
public static final FunctionSignature signature
FunEscapeURI
public FunEscapeURI(XQueryContext context)
eval
public Sequence eval(Sequence[] args,
Sequence contextSequence)
throws XPathException
- Description copied from class:
BasicFunction
- Process the function. All arguments are passed in the array args. The number of
arguments, their type and cardinality have already been checked to match
the function signature.
- Specified by:
eval
in class BasicFunction
- Parameters:
args
- contextSequence
-
- Throws:
XPathException
escape
public static java.lang.String escape(java.lang.CharSequence s,
boolean escapeReserved)
- Does the actual escaping. This method is copied from Michael Kay's
saxon (see http://saxon.sf.net).
- Parameters:
s
- escapeReserved
-
Copyright (C) Wolfgang Meier. All rights reserved.