|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Document
public class Document
Implements the XSLT document() function
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.Expression |
|---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Constructor Summary | |
|---|---|
Document()
|
|
| Method Summary | |
|---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap. |
void |
checkArguments(ExpressionVisitor visitor)
Method called during static type checking |
int |
computeCardinality()
Determine the static cardinality |
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type). |
Expression |
copy()
Copy an expression. |
String |
getStaticBaseURI()
Get the base URI from the static context |
SequenceIterator |
iterate(XPathContext context)
iterate() handles evaluation of the function: it returns a sequence of Document nodes |
static NodeInfo |
makeDoc(String href,
String baseURI,
XPathContext c,
SourceLocator locator)
Supporting routine to load one external document given a URI (href) and a baseURI. |
Expression |
preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing |
static NodeInfo |
preLoadDoc(String href,
String baseURI,
Configuration config,
SourceLocator locator)
Supporting routine to load one external document given a URI (href) and a baseURI. |
static void |
sendDoc(String href,
String baseURL,
XPathContext c,
SourceLocator locator,
Receiver out)
Supporting routine to push one external document given a URI (href) and a baseURI to a given Receiver. |
void |
sendDocuments(XPathContext context,
Receiver out)
Copy the documents identified by this expression to a given Receiver. |
| Methods inherited from class net.sf.saxon.functions.SystemFunction |
|---|
addDocToPathMap, getDetails, getErrorCodeForTypeErrors, getItemType, makeSystemFunction, optimize, setDetails |
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
|---|
addExternalFunctionCallToPathMap, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionName, simplify, toString, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Document()
| Method Detail |
|---|
public void checkArguments(ExpressionVisitor visitor)
throws XPathException
SystemFunction
checkArguments in class SystemFunctionvisitor - the expression visitor
XPathExceptionpublic int computeCardinality()
computeCardinality in class SystemFunctionStaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.EXACTLY_ONE, StaticProperty.ALLOWS_ONE_OR_MORE,
StaticProperty.ALLOWS_ZERO_OR_MOREpublic String getStaticBaseURI()
public int computeSpecialProperties()
computeSpecialProperties in class SystemFunctionpublic Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate in class FunctionCallvisitor - an expression visitor
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap in class ExpressionpathMap - the PathMap to which the expression should be addedpathMapNodeSet -
public Expression copy()
copy in class SystemFunction
public SequenceIterator iterate(XPathContext context)
throws XPathException
iterate in interface SequenceIterableiterate in class Expressioncontext - supplies the context for evaluation
XPathException - if any dynamic error occurs evaluating the
expression
public static NodeInfo makeDoc(String href,
String baseURI,
XPathContext c,
SourceLocator locator)
throws XPathException
href - the relative URIbaseURI - the base URIc - the dynamic XPath contextlocator - used to identify the location of the instruction in event of error
XPathException
public static NodeInfo preLoadDoc(String href,
String baseURI,
Configuration config,
SourceLocator locator)
throws XPathException
href - the relative URI. This must not contain a fragment identifierbaseURI - the base URIconfig - the Saxon configurationlocator - used to identify the location of the instruction in event of error
XPathException
public void sendDocuments(XPathContext context,
Receiver out)
throws XPathException
context - the XPath dynamic contextout - the destination to which the documents will be sent
XPathException
public static void sendDoc(String href,
String baseURL,
XPathContext c,
SourceLocator locator,
Receiver out)
throws XPathException
href - the relative URIbaseURL - the base URIc - the XPath dynamic contextlocator - used to identify the lcoation of the instruction in case of errorout - the destination where the document is to be sent
XPathException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||