net.sf.saxon.instruct
public abstract class ParentNodeConstructor extends Instruction
Field Summary | |
---|---|
protected Expression | content |
int | validation |
Constructor Summary | |
---|---|
ParentNodeConstructor() |
Method Summary | |
---|---|
boolean | createsNewNodes()
Determine whether this instruction creates new nodes.
|
int | getCardinality() |
Expression | getContentExpression()
Get the expression that constructs the content of the element |
SchemaType | getSchemaType()
Get the schema type chosen for validation; null if not defined |
int | getValidationAction()
Get the validation mode for this instruction |
boolean | isLazyConstruction()
Establish whether lazy construction is to be used |
boolean | isNamespaceSensitive()
Determine whether the schema type is namespace sensitive. |
Iterator | iterateSubExpressions()
Get the immediate sub-expressions of this expression. |
Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType) |
protected void | promoteInst(PromotionOffer offer)
Handle promotion offers, that is, non-local tree rewrites. |
void | setContentExpression(Expression content)
Set the expression that constructs the content of the element |
void | setLazyConstruction(boolean lazy)
Indicate that lazy construction should (or should not) be used |
void | setSchemaType(SchemaType type)
Set the schema type to be used for validation |
Expression | simplify(StaticContext env)
Simplify an expression. |
Expression | typeCheck(StaticContext env, ItemType contextItemType) |
void | verifyLazyConstruction()
Check that lazy construction is possible for this element |
Returns: the validation mode, for example STRICT or PRESERVE
Returns: an iterator containing the sub-expressions of this expression
Parameters: offer The type of rewrite being offered
Throws: net.sf.saxon.trans.XPathException
Parameters: lazy set to true if lazy construction should be used
Returns: the simplified expression
Throws: net.sf.saxon.trans.XPathException if an error is discovered during expression rewriting