public abstract class ElementCreator extends ParentNodeConstructor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
inheritNamespaces
The inheritNamespaces flag indicates that the namespace nodes on the element created by this instruction
are to be inherited (copied) on the children of this element.
|
protected boolean |
validating
The validating flag is set if the type attribute is set or if validation is set to anything other than
preserve.
|
content, validationlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
ElementCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkContentForAttributes(StaticContext env)
Check statically whether the content of the element creates attributes or namespaces
after creating any child nodes
|
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type).
|
Item |
evaluateItem(XPathContext context)
Evaluate the constructor, returning the constructed element node.
|
int[] |
getActiveNamespaces()
Callback to get a list of the intrinsic namespaces that need to be generated for the element.
|
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
ItemType |
getItemType(TypeHierarchy th)
Get the item type of the value returned by this instruction
|
abstract int |
getNameCode(XPathContext context) |
abstract java.lang.String |
getNewBaseURI(XPathContext context)
Get the base URI for the element being constructed
|
int |
getValidationMode()
Get the validation mode for the constructed element
|
boolean |
isInheritNamespaces()
Determine whether the inherit namespaces flag is set
|
boolean |
isValidating()
Determine whether this elementCreator performs validation
|
protected abstract void |
outputNamespaceNodes(XPathContext context,
Receiver receiver)
Callback to output namespace nodes for the new element.
|
TailCall |
processLeavingTail(XPathContext context)
Evaluate the instruction to produce a new element node.
|
void |
setValidationMode(int mode)
Set the validation mode for the new element
|
void |
suppressValidation(int validationMode)
Suppress validation on contained element constructors, on the grounds that the parent element
is already performing validation.
|
createsNewNodes, getBaseURI, getCardinality, getContentExpression, getSchemaType, getValidationAction, isLazyConstruction, isNamespaceSensitive, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, setBaseURI, setContentExpression, setLazyConstruction, setSchemaType, simplify, typeCheck, verifyLazyConstructionappendItem, assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, getInstructionInfo, getInstructionNameCode, getSourceLocator, isXSLT, iterate, process, promoteadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, typeErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnNumber, getLineNumber, getPublicId, getSystemIddisplayprotected boolean inheritNamespaces
protected boolean validating
public ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class Instructionth - public boolean isValidating()
public boolean isInheritNamespaces()
public int computeSpecialProperties()
computeSpecialProperties in class Instructionpublic void setValidationMode(int mode)
public int getValidationMode()
public void suppressValidation(int validationMode)
suppressValidation in class ComputedExpressionprotected void checkContentForAttributes(StaticContext env) throws XPathException
checkContentForAttributes in class ParentNodeConstructorenv - the static contextXPathExceptionpublic abstract int getNameCode(XPathContext context) throws XPathException
XPathExceptionpublic abstract java.lang.String getNewBaseURI(XPathContext context)
context - protected abstract void outputNamespaceNodes(XPathContext context, Receiver receiver) throws XPathException
context - The execution contextreceiver - the Receiver where the namespace nodes are to be writtenXPathExceptionpublic int[] getActiveNamespaces()
throws XPathException
XPathExceptionpublic int getImplementationMethod()
getImplementationMethod in interface ExpressiongetImplementationMethod in class Instructionpublic TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail in interface TailCallReturnerprocessLeavingTail in class Instructioncontext - XPathExceptionpublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface ExpressionevaluateItem in class Instructioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expression