public class PackageLoaderPE extends java.lang.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 java.util.Map<java.lang.String,PackageLoaderPE.ExpressionLoader> |
eMap |
protected java.util.Stack<StylesheetPackage> |
packStack |
| Constructor and Description |
|---|
PackageLoaderPE(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompletionAction(PackageLoaderPE.Action action) |
NodeInfo |
getChild(NodeInfo parent,
int n)
Get the n'th element child of an element (zero-based)
|
protected static Expression[] |
getChildExpressionArray(PackageLoaderPE loader,
NodeInfo element) |
protected static java.util.List<Expression> |
getChildExpressionList(PackageLoaderPE loader,
NodeInfo element) |
NodeInfo |
getChildWithRole(NodeInfo parent,
java.lang.String role) |
Configuration |
getConfiguration() |
Expression |
getExpressionWithRole(NodeInfo parent,
java.lang.String role) |
Expression |
getFirstChildExpression(NodeInfo parent) |
java.lang.String |
getInheritedAttribute(NodeInfo element,
java.lang.String localName) |
int |
getIntegerAttribute(NodeInfo element,
java.lang.String localName)
Read an integer-valued attribute
|
java.util.List<StructuredQName> |
getListOfQNameAttribute(NodeInfo element,
java.lang.String localName) |
Expression |
getNthChildExpression(NodeInfo parent,
int n) |
protected static int |
getOperator(java.lang.String opAtt) |
StylesheetPackage |
getPackage() |
java.util.Stack<StylesheetPackage> |
getPackStack() |
StructuredQName |
getQNameAttribute(NodeInfo element,
java.lang.String localName) |
Expression |
getSecondChildExpression(NodeInfo parent) |
StylesheetPackage |
loadPackage(javax.xml.transform.Source source) |
StylesheetPackage |
loadPackageDoc(NodeInfo doc) |
void |
loadPackageElement(NodeInfo packageElement,
StylesheetPackage pack) |
AtomicComparer |
makeAtomicComparer(java.lang.String name,
NodeInfo element) |
protected UserFunction |
makeFunction(java.lang.String flags) |
void |
needsEELicense(java.lang.String name) |
void |
needsPELicense(java.lang.String name) |
SequenceType |
parseSequenceType(NodeInfo element,
java.lang.String name)
Parse the SequenceType whose value is held in the attribute named "name"
|
protected java.util.Stack<StylesheetPackage> packStack
protected static java.util.Map<java.lang.String,PackageLoaderPE.ExpressionLoader> eMap
public PackageLoaderPE(Configuration config)
public Configuration getConfiguration()
public StylesheetPackage getPackage()
public java.util.Stack<StylesheetPackage> getPackStack()
public void addCompletionAction(PackageLoaderPE.Action action)
public StylesheetPackage loadPackage(javax.xml.transform.Source source) throws XPathException
loadPackage in interface IPackageLoaderXPathExceptionpublic StylesheetPackage loadPackageDoc(NodeInfo doc) throws XPathException
loadPackageDoc in interface IPackageLoaderXPathExceptionpublic void needsPELicense(java.lang.String name)
public void needsEELicense(java.lang.String name)
public void loadPackageElement(NodeInfo packageElement, StylesheetPackage pack) throws XPathException
XPathExceptionprotected UserFunction makeFunction(java.lang.String flags)
public NodeInfo getChild(NodeInfo parent, int n) throws XPathException
parent - the parent elementn - which child to get (zero-based)XPathExceptionpublic NodeInfo getChildWithRole(NodeInfo parent, java.lang.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, java.lang.String role) throws XPathException
XPathExceptionpublic StructuredQName getQNameAttribute(NodeInfo element, java.lang.String localName) throws XPathException
XPathExceptionpublic java.util.List<StructuredQName> getListOfQNameAttribute(NodeInfo element, java.lang.String localName) throws XPathException
XPathExceptionpublic int getIntegerAttribute(NodeInfo element, java.lang.String localName)
element - the element on which the attribute appearslocalName - the name of the attributejava.lang.NumberFormatException - if the attribute is present but not integer-valued.public java.lang.String getInheritedAttribute(NodeInfo element, java.lang.String localName)
public SequenceType parseSequenceType(NodeInfo element, java.lang.String name) throws XPathException
element - the element containing this attributename - the local name of the attributeXPathExceptionpublic AtomicComparer makeAtomicComparer(java.lang.String name, NodeInfo element) throws XPathException
XPathExceptionprotected static java.util.List<Expression> getChildExpressionList(PackageLoaderPE loader, NodeInfo element) throws XPathException
XPathExceptionprotected static Expression[] getChildExpressionArray(PackageLoaderPE loader, NodeInfo element) throws XPathException
XPathExceptionprotected static int getOperator(java.lang.String opAtt)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.