net.sf.saxon.instruct
public abstract class ElementCreator extends ParentNodeConstructor
| Field Summary | |
|---|---|
| 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. |
| Constructor Summary | |
|---|---|
| ElementCreator() | |
| Method Summary | |
|---|---|
| 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) |
| int | getValidationMode()
Get the validation mode for the constructed element |
| 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. |
Returns: a set of flags indicating static properties of this expression
Parameters: th
Returns: the item type
Parameters: context The execution context receiver the Receiver where the namespace nodes are to be written
Throws: net.sf.saxon.trans.XPathException
Parameters: context
Returns: null (this instruction never returns a tail call)
Throws: XPathException