|
|||||||||
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.InsertAttributeAction
public class InsertAttributeAction
A pending update action representing the insert attribute action.
Constructor Summary | |
---|---|
InsertAttributeAction(NodeInfo element,
NodeName name,
SimpleType typeCode,
CharSequence value,
int properties)
Create a InsertAttributeAction |
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. |
NodeName |
getAttributeName()
Get the name of the attribute to be inserted |
int |
getFingerprint()
Get the name of the inserted attribute as an integer fingerprint |
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 |
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 InsertAttributeAction(NodeInfo element, NodeName name, SimpleType typeCode, 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 propertiesMethod 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 NodeName getAttributeName()
public int getFingerprint()
public SimpleType getNewTypeCode()
public CharSequence getNewStringValue()
public int getApplyPhase()
getApplyPhase
in class PendingUpdateAction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |