jimm.twice.ice.xml
Class Package

java.lang.Object
  extended byjimm.twice.ice.xml.Message
      extended byjimm.twice.ice.xml.Package

public class Package
extends Message

An ICE package, which is a container for add, remove-item, and group elements. Remove commands must come first.

Note: the user of a package is responsible for adding quot;remove-item" command messages first, before any "group" or "add" command messages.

The toString method returns the message as XML.

Author:
Jim Menard, jimm@io.com
See Also:
PackageAdd, PackageAdd, PackageRemoveItem, PackageGroup

Field Summary
 
Fields inherited from class jimm.twice.ice.xml.Message
node
 
Constructor Summary
Package(java.lang.String subscriptionId)
          Constructor.
 
Method Summary
 Add addAdd(Add child)
           
 Group addGroup(Group child)
           
 RemoveItem addRemoveItem(RemoveItem child)
           
 void setConfirmation(boolean conf)
           
 void setFullUpdate(boolean full)
           
 void setNewState(java.lang.String state)
           
 void setOldState(java.lang.String state)
           
 
Methods inherited from class jimm.twice.ice.xml.Message
addChild, addChild, addChild, getAttribute, getNode, getTag, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Package

public Package(java.lang.String subscriptionId)
Constructor.

Parameters:
subscriptionId - this package's subscription id
Method Detail

setConfirmation

public void setConfirmation(boolean conf)

setFullUpdate

public void setFullUpdate(boolean full)

setOldState

public void setOldState(java.lang.String state)

setNewState

public void setNewState(java.lang.String state)

addGroup

public Group addGroup(Group child)

addAdd

public Add addAdd(Add child)

addRemoveItem

public RemoveItem addRemoveItem(RemoveItem child)