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 IPackageLoader
XPathException
public StylesheetPackage loadPackageDoc(NodeInfo doc) throws XPathException
loadPackageDoc
in interface IPackageLoader
XPathException
public void loadPackageElement(NodeInfo packageElement, StylesheetPackage pack) throws XPathException
XPathException
public NodeInfo getChild(NodeInfo parent, int n) throws XPathException
parent
- the parent elementn
- which child to get (zero-based)XPathException
public NodeInfo getChildWithRole(NodeInfo parent, String role) throws XPathException
XPathException
public Expression getFirstChildExpression(NodeInfo parent) throws XPathException
XPathException
public Expression getSecondChildExpression(NodeInfo parent) throws XPathException
XPathException
public Expression getNthChildExpression(NodeInfo parent, int n) throws XPathException
XPathException
public Expression getExpressionWithRole(NodeInfo parent, String role) throws XPathException
XPathException
public StructuredQName getQNameAttribute(NodeInfo element, String localName) throws XPathException
XPathException
public 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 attributeXPathException
public AtomicComparer makeAtomicComparer(String name, NodeInfo element) throws XPathException
XPathException
protected static List<Expression> getChildExpressionList(PackageLoaderPE loader, NodeInfo element) throws XPathException
XPathException
protected static Expression[] getChildExpressionArray(PackageLoaderPE loader, NodeInfo element) throws XPathException
XPathException
protected static int getOperator(String opAtt)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.