|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.update.PendingUpdateAction com.saxonica.update.ReplaceAttributeAction
public class ReplaceAttributeAction
A pending update action representing a replace node expression applied to an attribute. Note that the replacement attribute may be absent; this is not quite the same as a delete operation, because the consistency rules on the pending update list are different.
Constructor Summary | |
---|---|
ReplaceAttributeAction(NodeInfo element,
NodeInfo oldAttribute,
AttributeCollection newAttributes)
Create a ReplaceAttributeAction |
Method Summary | |
---|---|
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 |
Methods inherited from class com.saxonica.update.PendingUpdateAction |
---|
getOriginator, setOriginator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 attributeMethod Detail |
---|
public void apply(XPathContext context, 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 necessary
XPathException
- if any error occurs applying the updatepublic NodeInfo getTargetNode()
getTargetNode
in class PendingUpdateAction
public NodeInfo getOldAttribute()
public AttributeCollection getNewAttributes()
public int getApplyPhase()
getApplyPhase
in class PendingUpdateAction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |