| net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.ParentNodeConstructor net.sf.saxon.instruct.ElementCreator
All known Subclasses: net.sf.saxon.instruct.ComputedElement, net.sf.saxon.instruct.Copy, net.sf.saxon.instruct.FixedElement,
ElementCreator | abstract public class ElementCreator extends ParentNodeConstructor (Code) | | An instruction that creates an element node. There are two subtypes, FixedElement
for use where the name is known statically, and Element where it is computed
dynamically. To allow use in both XSLT and XQuery, the class acts both as an
Instruction and as an Expression.
|
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. |
inheritNamespaces | protected boolean inheritNamespaces(Code) | | 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. That is, if this flag is false, the child
elements must carry a namespace undeclaration for all the namespaces on the parent, unless they are
redeclared in some way.
|
ElementCreator | public ElementCreator()(Code) | | |
computeSpecialProperties | public int computeSpecialProperties()(Code) | | Get the static properties of this expression (other than its type). The result is
bit-signficant. These properties are used for optimizations. In general, if
property bit is set, it is true, but if it is unset, the value is unknown.
a set of flags indicating static properties of this expression |
evaluateItem | public Item evaluateItem(XPathContext context) throws XPathException(Code) | | Evaluate the constructor, returning the constructed element node. If lazy construction
mode is in effect, then an UnconstructedParent object is returned instead.
|
getActiveNamespaces | public int[] getActiveNamespaces() throws XPathException(Code) | | Callback to get a list of the intrinsic namespaces that need to be generated for the element.
The result is an array of namespace codes, the codes either occupy the whole array or are
terminated by a -1 entry. A result of null is equivalent to a zero-length array.
|
getImplementationMethod | public int getImplementationMethod()(Code) | | An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
This method indicates which of these methods is prefered. For instructions this is the process() method.
|
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Get the item type of the value returned by this instruction
the item type Parameters: th - |
getValidationMode | public int getValidationMode()(Code) | | Get the validation mode for the constructed element
|
processLeavingTail | public TailCall processLeavingTail(XPathContext context) throws XPathException(Code) | | Evaluate the instruction to produce a new element node. This method is typically used when there is
a parent element or document in a result tree, to which the new element is added.
Parameters: context - null (this instruction never returns a tail call) throws: XPathException - |
setValidationMode | public void setValidationMode(int mode)(Code) | | Set the validation mode for the new element
|
suppressValidation | public void suppressValidation(int validationMode)(Code) | | Suppress validation on contained element constructors, on the grounds that the parent element
is already performing validation. The default implementation does nothing.
|
|
|