|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.ParentNodeConstructor
net.sf.saxon.instruct.ElementCreator
public abstract class ElementCreator
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 |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
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)
|
abstract String |
getNewBaseURI(XPathContext context)
Get the base URI for the element being constructed |
boolean |
isInheritNamespaces()
Determine whether the inherit namespaces flag is set |
boolean |
isValidating()
Determine whether this elementCreator performs validation |
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. |
Methods inherited from class net.sf.saxon.instruct.ParentNodeConstructor |
---|
computeCardinality, createsNewNodes, getBaseURI, getCardinality, getContentExpression, getSchemaType, getValidationMode, isLazyConstruction, isNamespaceSensitive, iterateSubExpressions, optimize, replaceSubExpression, setBaseURI, setContentExpression, setLazyConstruction, setSchemaType, simplify, typeCheck |
Methods inherited from class net.sf.saxon.instruct.Instruction |
---|
appendItem, evaluateAsString, getInstructionInfo, getInstructionNameCode, getSourceLocator, isXSLT, iterate, process, promote |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public ElementCreator()
Method Detail |
---|
public ItemType getItemType(TypeHierarchy th)
getItemType
in class Instruction
th
-
public boolean isValidating()
public boolean isInheritNamespaces()
public int computeSpecialProperties()
computeSpecialProperties
in class Instruction
public void setValidationMode(int mode)
setValidationMode
in class ParentNodeConstructor
public void suppressValidation(int validationMode)
suppressValidation
in class Expression
public abstract int getNameCode(XPathContext context) throws XPathException
XPathException
public abstract String getNewBaseURI(XPathContext context)
context
- public int[] getActiveNamespaces() throws XPathException
XPathException
public int getImplementationMethod()
getImplementationMethod
in class Instruction
public TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class Instruction
context
-
XPathException
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface EvaluableItem
evaluateItem
in class Instruction
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expression
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |