public class PackageLoaderHE extends java.lang.Object implements IPackageLoader
Modifier and Type | Class and Description |
---|---|
static interface |
PackageLoaderHE.ExpressionLoader |
static interface |
PackageLoaderHE.PatternLoader |
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,StylesheetPackage> |
allPackages |
java.util.List<Action> |
completionActions |
protected static java.util.Map<java.lang.String,PackageLoaderHE.ExpressionLoader> |
eMap |
java.util.Stack<java.util.List<ComponentInvocation>> |
fixups |
protected static java.util.Map<java.lang.String,java.lang.String> |
licensableConstructs |
protected java.util.Stack<StylesheetPackage> |
packStack |
java.util.Map<SymbolicName,UserFunction> |
userFunctions |
Constructor and Description |
---|
PackageLoaderHE(Configuration config) |
Modifier and Type | Method and Description |
---|---|
void |
addCompletionAction(Action action) |
NodeInfo |
getChild(NodeInfo parent,
int n)
Get the n'th element child of an element (zero-based)
|
protected static Expression[] |
getChildExpressionArray(PackageLoaderHE loader,
NodeInfo element) |
protected static java.util.List<Expression> |
getChildExpressionList(PackageLoaderHE 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() |
Pattern |
getPatternWithRole(NodeInfo parent,
java.lang.String role) |
StructuredQName |
getQNameAttribute(NodeInfo element,
java.lang.String localName) |
Expression |
getSecondChildExpression(NodeInfo parent) |
SchemaType |
getTypeAttribute(NodeInfo element,
java.lang.String attName) |
Expression |
loadExpression(NodeInfo element) |
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) |
RetainedStaticContext |
makeRetainedStaticContext(NodeInfo element) |
void |
needsEELicense(java.lang.String name) |
void |
needsPELicense(java.lang.String name) |
ItemType |
parseItemTypeAttribute(NodeInfo element,
java.lang.String attName)
Parse the ItemType whose value is held in the attribute named "name"
|
SequenceType |
parseSequenceType(NodeInfo element,
java.lang.String name)
Parse the SequenceType whose value is held in the attribute named "name"
|
static void |
processAccumulatorList(PackageLoaderHE loader,
SourceDocument inst,
java.lang.String accumulatorNames) |
protected boolean |
processComponentReference(StylesheetPackage pack,
ComponentInvocation call) |
UserFunction |
readFunction(NodeInfo functionElement) |
protected void |
readSchemaNamespaces(NodeInfo packageElement) |
protected final java.util.Stack<StylesheetPackage> packStack
public final java.util.Stack<java.util.List<ComponentInvocation>> fixups
public final java.util.List<Action> completionActions
public final java.util.Map<java.lang.String,StylesheetPackage> allPackages
public final java.util.Map<SymbolicName,UserFunction> userFunctions
protected static final java.util.Map<java.lang.String,PackageLoaderHE.ExpressionLoader> eMap
protected static final java.util.Map<java.lang.String,java.lang.String> licensableConstructs
public PackageLoaderHE(Configuration config)
public static void processAccumulatorList(PackageLoaderHE loader, SourceDocument inst, java.lang.String accumulatorNames)
public Configuration getConfiguration()
public StylesheetPackage getPackage()
public java.util.Stack<StylesheetPackage> getPackStack()
public void addCompletionAction(Action action)
public StylesheetPackage loadPackage(javax.xml.transform.Source source) throws XPathException
loadPackage
in interface IPackageLoader
XPathException
public StylesheetPackage loadPackageDoc(NodeInfo doc) throws XPathException
loadPackageDoc
in interface IPackageLoader
XPathException
public void needsPELicense(java.lang.String name)
public void needsEELicense(java.lang.String name)
public void loadPackageElement(NodeInfo packageElement, StylesheetPackage pack) throws XPathException
XPathException
protected void readSchemaNamespaces(NodeInfo packageElement) throws XPathException
XPathException
public UserFunction readFunction(NodeInfo functionElement) throws XPathException
XPathException
protected UserFunction makeFunction(java.lang.String flags)
public NodeInfo getChild(NodeInfo parent, int n)
parent
- the parent elementn
- which child to get (zero-based)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, java.lang.String role) throws XPathException
XPathException
public Expression loadExpression(NodeInfo element) throws XPathException
XPathException
public RetainedStaticContext makeRetainedStaticContext(NodeInfo element)
public Pattern getPatternWithRole(NodeInfo parent, java.lang.String role) throws XPathException
XPathException
public SchemaType getTypeAttribute(NodeInfo element, java.lang.String attName) throws XPathException
XPathException
public StructuredQName getQNameAttribute(NodeInfo element, java.lang.String localName)
public java.util.List<StructuredQName> getListOfQNameAttribute(NodeInfo element, java.lang.String localName) throws XPathException
XPathException
public int getIntegerAttribute(NodeInfo element, java.lang.String localName) throws XPathException
element
- the element on which the attribute appearslocalName
- the name of the attributeXPathException
- 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 attributeXPathException
- if the sequence type is invalidpublic ItemType parseItemTypeAttribute(NodeInfo element, java.lang.String attName) throws XPathException
element
- the element containing this attributeattName
- the local name of the attributeXPathException
- if the item type is invalidpublic AtomicComparer makeAtomicComparer(java.lang.String name, NodeInfo element) throws XPathException
XPathException
protected static java.util.List<Expression> getChildExpressionList(PackageLoaderHE loader, NodeInfo element) throws XPathException
XPathException
protected static Expression[] getChildExpressionArray(PackageLoaderHE loader, NodeInfo element) throws XPathException
XPathException
protected static int getOperator(java.lang.String opAtt)
protected boolean processComponentReference(StylesheetPackage pack, ComponentInvocation call) throws XPathException
XPathException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.