jimm.twice.ice
Class IcePackage

java.lang.Object
  extended byjimm.twice.ice.IcePackage

public class IcePackage
extends java.lang.Object

ICE ice-package information is used often enough that it's nice to have an objectified representation.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  boolean confirmationRequested
           
protected  boolean fullUpdate
           
protected  java.lang.String identifier
           
protected  java.lang.String newState
           
protected  java.lang.String oldState
           
protected  java.lang.String subscriptionId
           
 
Constructor Summary
IcePackage(java.lang.String identifier, java.lang.String oldState, java.lang.String newState, java.lang.String subscriptionId, boolean confirmationRequested, boolean fullUpdate)
          Constructor.
 
Method Summary
 java.lang.String getIdentifier()
           
 java.lang.String getNewState()
           
 java.lang.String getOldState()
           
 java.lang.String getSubscriptionId()
           
 boolean isConfirmationRequested()
          Returns true if the confirmation attribute was seen within the ICE package tag and if its value was "true".
 boolean isFullUpdate()
          Returns true if the fullupdate attribute was seen within the ICE package tag and if its value was "true".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

protected java.lang.String identifier

oldState

protected java.lang.String oldState

newState

protected java.lang.String newState

subscriptionId

protected java.lang.String subscriptionId

confirmationRequested

protected boolean confirmationRequested

fullUpdate

protected boolean fullUpdate
Constructor Detail

IcePackage

public IcePackage(java.lang.String identifier,
                  java.lang.String oldState,
                  java.lang.String newState,
                  java.lang.String subscriptionId,
                  boolean confirmationRequested,
                  boolean fullUpdate)
Constructor.

Parameters:
identifier - the package-id attribute value
oldState - the old-state attribute value
newState - the new-state attribute value
confirmationRequested - true if the ICE package's confirmation attribute is "true"
fullUpdate - true if the ICE package's fullupdate attribute is "true"
Method Detail

getIdentifier

public java.lang.String getIdentifier()

getOldState

public java.lang.String getOldState()

getNewState

public java.lang.String getNewState()

getSubscriptionId

public java.lang.String getSubscriptionId()

isConfirmationRequested

public boolean isConfirmationRequested()
Returns true if the confirmation attribute was seen within the ICE package tag and if its value was "true".

Returns:
true if the ICE package's confirmation attribute is "true"

isFullUpdate

public boolean isFullUpdate()
Returns true if the fullupdate attribute was seen within the ICE package tag and if its value was "true".

Returns:
true if the ICE package's fullupdate attribute is "true"