public class ReplaceAttributeAction extends PendingUpdateAction
| Constructor and Description |
|---|
ReplaceAttributeAction(NodeInfo element,
NodeInfo oldAttribute,
AttributeCollection newAttributes)
Create a ReplaceAttributeAction
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(XPathContext context,
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.
|
AttributeCollection |
getNewAttributes()
Get the attribute collection containing the new (replacement) attributes
|
NodeInfo |
getOldAttribute()
Get the replaced attribute node
|
NodeInfo |
getTargetNode()
Get the target node of the update action
|
fixNodeName, getOriginator, setOriginatorpublic ReplaceAttributeAction(NodeInfo element, NodeInfo oldAttribute, AttributeCollection newAttributes)
element - the element into which it is to be insertedoldAttribute - the name of the old attribute to be replacednewAttributes - the attributes that are to replace the target attributepublic void apply(XPathContext context, Set affectedRootSet) throws XPathException
apply in class PendingUpdateActioncontext - 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 PendingUpdateActionpublic NodeInfo getOldAttribute()
public AttributeCollection getNewAttributes()
public int getApplyPhase()
getApplyPhase in class PendingUpdateActionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.