org.exist.xquery.functions.xmldb
Class XMLDBLoadFromPattern

java.lang.Object
  extended by org.exist.xquery.AbstractExpression
      extended by org.exist.xquery.PathExpr
          extended by org.exist.xquery.Function
              extended by org.exist.xquery.BasicFunction
                  extended by org.exist.xquery.functions.xmldb.XMLDBAbstractCollectionManipulator
                      extended by org.exist.xquery.functions.xmldb.XMLDBLoadFromPattern
All Implemented Interfaces:
CompiledXQuery, Expression, RewritableExpression, org.xmldb.api.base.CompiledExpression

public class XMLDBLoadFromPattern
extends XMLDBAbstractCollectionManipulator


Field Summary
protected static java.lang.String FUNCTION_DESCRIPTION
           
protected static QName FUNCTION_NAME
           
protected static org.apache.log4j.Logger logger
           
protected static SequenceType PARAM_COLLECTION
           
protected static SequenceType PARAM_FS_DIRECTORY
           
protected static SequenceType PARAM_FS_PATTERN
           
protected static SequenceType PARAM_MIME_TYPE
           
protected static SequenceType PARAM_PRESERVE_STRUCTURE
           
protected static FunctionReturnSequenceType RETURN_TYPE
           
static FunctionSignature[] signatures
           
 
Fields inherited from class org.exist.xquery.Function
BUILTIN_FUNCTION_NS, mySignature
 
Fields inherited from class org.exist.xquery.PathExpr
inPredicate, keepVirtual, LOG, staticContext, steps
 
Fields inherited from class org.exist.xquery.AbstractExpression
column, context, contextDocSet, contextId, line, unordered
 
Fields inherited from interface org.exist.xquery.Expression
DOT_TEST, EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_NODE_CONSTRUCTOR, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NEED_INDEX_INFO, NO_CONTEXT_ID, NON_STREAMABLE, POSITIONAL_PREDICATE, SINGLE_STEP_EXECUTION, UNORDERED, USE_TREE_TRAVERSAL
 
Constructor Summary
XMLDBLoadFromPattern(XQueryContext context, FunctionSignature signature)
           
 
Method Summary
protected  Sequence evalWithCollection(org.xmldb.api.base.Collection collection, Sequence[] args, Sequence contextSequence)
           
 
Methods inherited from class org.exist.xquery.functions.xmldb.XMLDBAbstractCollectionManipulator
createCollection, createCollectionPath, createLocalCollection, eval, getCollectionParameterNumber, setCollectionParameterNumber
 
Methods inherited from class org.exist.xquery.BasicFunction
eval
 
Methods inherited from class org.exist.xquery.Function
accept, analyze, checkArgument, checkArguments, createFunction, dump, getArgument, getArgumentCount, getArguments, getCardinality, getDependencies, getName, getParent, getParentModule, getSignature, isCalledAs, returnsType, setArguments, setParent, setPrimaryAxis, simplify, toString
 
Methods inherited from class org.exist.xquery.PathExpr
add, add, addPath, addPredicate, allowMixNodesInReturn, dump, getColumn, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLine, getLiteralValue, getPrimaryAxis, getSubExpression, getSubExpressionCount, isValid, replaceExpression, replaceLastExpression, reset, resetState, setContext, setUseStaticContext
 
Methods inherited from class org.exist.xquery.AbstractExpression
eval, getContextDocSet, getContextId, getExpressionId, getSource, match, needsReset, setASTNode, setContextDocSet, setContextId, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exist.xquery.CompiledXQuery
eval, getSource
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

FUNCTION_NAME

protected static final QName FUNCTION_NAME

FUNCTION_DESCRIPTION

protected static final java.lang.String FUNCTION_DESCRIPTION
See Also:
Constant Field Values

PARAM_COLLECTION

protected static final SequenceType PARAM_COLLECTION

PARAM_FS_DIRECTORY

protected static final SequenceType PARAM_FS_DIRECTORY

PARAM_FS_PATTERN

protected static final SequenceType PARAM_FS_PATTERN

PARAM_MIME_TYPE

protected static final SequenceType PARAM_MIME_TYPE

PARAM_PRESERVE_STRUCTURE

protected static final SequenceType PARAM_PRESERVE_STRUCTURE

RETURN_TYPE

protected static final FunctionReturnSequenceType RETURN_TYPE

signatures

public static final FunctionSignature[] signatures
Constructor Detail

XMLDBLoadFromPattern

public XMLDBLoadFromPattern(XQueryContext context,
                            FunctionSignature signature)
Method Detail

evalWithCollection

protected Sequence evalWithCollection(org.xmldb.api.base.Collection collection,
                                      Sequence[] args,
                                      Sequence contextSequence)
                               throws XPathException
Specified by:
evalWithCollection in class XMLDBAbstractCollectionManipulator
Throws:
XPathException