public class InsertAttributeAction extends PendingUpdateAction
Constructor and Description |
---|
InsertAttributeAction(NodeInfo element,
NodeName name,
SimpleType typeCode,
java.lang.CharSequence value,
int properties)
Create a InsertAttributeAction
|
Modifier and Type | Method and Description |
---|---|
void |
apply(XPathContext context,
java.util.Set affectedRootSet)
Apply the pending update action to the affected nodes
|
int |
getApplyPhase()
Get the phase of operation in which this pending update action is applied.
|
NodeName |
getAttributeName()
Get the name of the attribute to be inserted
|
java.lang.CharSequence |
getNewStringValue()
Get the string value of the inserted attribute
|
SimpleType |
getNewTypeCode()
Get the type code of the inserted attribute
|
NodeInfo |
getTargetNode()
Get the target node of the update action
|
fixNodeName, getOriginator, setOriginator
public InsertAttributeAction(NodeInfo element, NodeName name, SimpleType typeCode, java.lang.CharSequence value, int properties)
element
- the element into which it is to be insertedname
- the name of the new attributetypeCode
- the type annotation of the new attributevalue
- the string value of the new attributeproperties
- properties including IS_ID and IS_IDREF propertiespublic void apply(XPathContext context, java.util.Set affectedRootSet) throws XPathException
apply
in class PendingUpdateAction
context
- the XPath evaluation contextaffectedRootSet
- the set of roots of trees that have been modified, which
this action should add to as necessaryXPathException
- if any error occurs applying the updatepublic NodeInfo getTargetNode()
getTargetNode
in class PendingUpdateAction
public NodeName getAttributeName()
public SimpleType getNewTypeCode()
public java.lang.CharSequence getNewStringValue()
public int getApplyPhase()
getApplyPhase
in class PendingUpdateAction
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.