|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.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,
int oldNameCode,
int newNameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
Create a InsertAttributeAction |
|
| Method Summary | |
|---|---|
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. |
int |
getNewNameCode()
Get the name of the inserted attribute as an integer namecode |
int |
getOldNameCode()
Get the name of the replaced attribute as an integer namecode |
NodeInfo |
getTargetNode()
Get the target node of the update action |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplaceAttributeAction(NodeInfo element,
int oldNameCode,
int newNameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
element - the element into which it is to be insertedoldNameCode - the name of the old attributenewNameCode - the name of the new attribute, or -1 if there is no new attributetypeCode - the type annotation of the new attribute, or -1 if there is no new attributevalue - the string value of the new attribute, or null if there is no new attributeproperties - properties including IS_ID and IS_IDREF properties| Method Detail |
|---|
public void apply(XPathContext context,
java.util.Set affectedRootSet)
throws XPathException
apply in interface PendingUpdateActioncontext - 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 interface PendingUpdateActionpublic int getOldNameCode()
public int getNewNameCode()
public int getApplyPhase()
getApplyPhase in interface PendingUpdateAction
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||