org.newsml.toolkit
Interface Update

All Superinterfaces:
BaseNode, IdNode

public interface Update
extends BaseNode, IdNode

Deltas for incremental updates.

Version:
2.0
Author:
Reuters PLC

Method Summary
 Delta[] getDelta()
          Get all of the deltas for the update.
 Delta getDelta(int index)
          Get one of the deltas for the update.
 int getDeltaCount()
          Count the deltas in this update.
 
Methods inherited from interface org.newsml.toolkit.BaseNode
getAttr, getChild, getChild, getChild, getChild, getChildCount, getChildCount, getParent, getPath, getSession, getXMLName, getXPath, insertAfter, insertAfter, insertAfter, insertAfter, insertAfterDuid, insertAfterDuid, insertBefore, insertBefore, insertBefore, insertBefore, insertBeforeDuid, insertBeforeDuid, insertChild, insertChild, insertFirst, insertFirst, insertLast, insertLast, removeChild, removeChild, removeSelf, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, setAttr, setAttr, toXML, toXML, unsetAttr, unsetAttr, writeXML, writeXML
 
Methods inherited from interface org.newsml.toolkit.IdNode
getDuid, getEuid
 

Method Detail

getDeltaCount

public int getDeltaCount()
Count the deltas in this update.
Returns:
The number of deltas present.
See Also:
getDelta(int)

getDelta

public Delta getDelta(int index)
Get one of the deltas for the update.

The deltas include InsertBefore, InsertAfter, Replace, and Delete.

Parameters:
index - The index of the delta to retrieve, zero-based, numbered sequentially.
Returns:
The delta requested, or null if the index is out of range.
See Also:
getDeltaCount(), getDelta()

getDelta

public Delta[] getDelta()
Get all of the deltas for the update.
Returns:
An array containing all of the delta nodes.
See Also:
getDelta(int)