public class PackageLoaderPE extends Object implements IPackageLoader
| Modifier and Type | Class and Description |
|---|---|
static interface |
PackageLoaderPE.Action |
static interface |
PackageLoaderPE.ExpressionLoader |
static interface |
PackageLoaderPE.PatternLoader |
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,PackageLoaderPE.ExpressionLoader> |
eMap |
protected Stack<StylesheetPackage> |
packStack |
| Constructor and Description |
|---|
PackageLoaderPE(Configuration config) |
protected Stack<StylesheetPackage> packStack
protected static Map<String,PackageLoaderPE.ExpressionLoader> eMap
public PackageLoaderPE(Configuration config)
public Configuration getConfiguration()
public StylesheetPackage getPackage()
public Stack<StylesheetPackage> getPackStack()
public void addCompletionAction(PackageLoaderPE.Action action)
public StylesheetPackage loadPackage(Source source) throws XPathException
loadPackage in interface IPackageLoaderXPathExceptionpublic StylesheetPackage loadPackageDoc(NodeInfo doc) throws XPathException
loadPackageDoc in interface IPackageLoaderXPathExceptionpublic void loadPackageElement(NodeInfo packageElement, StylesheetPackage pack) throws XPathException
XPathExceptionpublic NodeInfo getChild(NodeInfo parent, int n) throws XPathException
parent - the parent elementn - which child to get (zero-based)XPathExceptionpublic NodeInfo getChildWithRole(NodeInfo parent, String role) throws XPathException
XPathExceptionpublic Expression getFirstChildExpression(NodeInfo parent) throws XPathException
XPathExceptionpublic Expression getSecondChildExpression(NodeInfo parent) throws XPathException
XPathExceptionpublic Expression getNthChildExpression(NodeInfo parent, int n) throws XPathException
XPathExceptionpublic Expression getExpressionWithRole(NodeInfo parent, String role) throws XPathException
XPathExceptionpublic StructuredQName getQNameAttribute(NodeInfo element, String localName) throws XPathException
XPathExceptionpublic int getIntegerAttribute(NodeInfo element, String localName)
element - the element on which the attribute appearslocalName - the name of the attributeNumberFormatException - if the attribute is present but not integer-valued.public SequenceType parseSequenceType(NodeInfo element, String name) throws XPathException
element - the element containing this attributename - the local name of the attributeXPathExceptionpublic AtomicComparer makeAtomicComparer(String name, NodeInfo element) throws XPathException
XPathExceptionprotected static List<Expression> getChildExpressionList(PackageLoaderPE loader, NodeInfo element) throws XPathException
XPathExceptionprotected static Expression[] getChildExpressionArray(PackageLoaderPE loader, NodeInfo element) throws XPathException
XPathExceptionprotected static int getOperator(String opAtt)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.