net.sf.saxon.instruct
public class FixedElement extends ElementCreator
Field Summary | |
---|---|
protected int[] | namespaceCodes |
Constructor Summary | |
---|---|
FixedElement(int nameCode, int[] namespaceCodes, boolean inheritNamespaces, SchemaType schemaType, int validation)
Create an instruction that creates a new element node |
Method Summary | |
---|---|
protected void | checkContentSequence(StaticContext env)
Check statically whether the content of the element creates attributes or namespaces
after creating any child nodes |
void | checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole)
Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. |
Expression | copy()
Copy an expression. |
void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
int[] | getActiveNamespaces()
Callback to get a list of the intrinsic namespaces that need to be generated for the element.
|
ItemType | getItemType(TypeHierarchy th)
Get the type of the item returned by this instruction |
int | getNameCode(XPathContext context)
Callback from the superclass ElementCreator to get the nameCode
for the element name |
String | getNewBaseURI(XPathContext context) |
short | getURICode(NamePool pool)
Get the URI code representing the namespace URI of the element being constructed |
Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType) |
protected void | outputNamespaceNodes(XPathContext context, Receiver out, int nameCode)
Callback from the superclass ElementCreator to output the namespace nodes |
Expression | simplify(ExpressionVisitor visitor)
Simplify an expression. |
Parameters: nameCode Represents the name of the element node namespaceCodes List of namespaces to be added to the element node. May be null if none are required. inheritNamespaces true if the children of this element are to inherit its namespaces schemaType Type annotation for the new element node validation Validation mode to be applied, for example STRICT, LAX, SKIP
Parameters: env the static context
Throws: net.sf.saxon.trans.XPathException
Returns: the copy of the original expression
Parameters: th The type hierarchy cache
Returns: the item type
Parameters: context The evaluation context (not used)
Returns: the name code for the element name
Parameters: pool the NamePool
Returns: the URI code
Parameters: context The evaluation context (not used) out The receiver to handle the output nameCode
Parameters: visitor the expression visitor
Returns: the simplified expression
Throws: net.sf.saxon.trans.XPathException if an error is discovered during expression rewriting