org.ws4d.java.types
Class AppSequence

java.lang.Object
  extended by org.ws4d.java.types.UnknownDataContainer
      extended by org.ws4d.java.types.AppSequence

public class AppSequence
extends UnknownDataContainer


Constructor Summary
AppSequence(long instanceId, long messageNumber)
           
AppSequence(long instanceId, java.lang.String sequenceId, long messageNumber)
           
 
Method Summary
 long getInstanceId()
           
 long getMessageNumber()
          Get message number.
 java.lang.String getSequenceId()
           
 boolean isNewer(AppSequence other)
          Checks if this application sequence is newer than the other specified.
static AppSequence parse(ElementParser parser, ConstantsHelper helper)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ws4d.java.types.UnknownDataContainer
addUnknownAttribute, addUnknownElement, getUnknownAttribute, getUnknownAttributes, getUnknownElement, getUnknownElements, getUnknownElements, setUnknownAttributes, setUnknownElements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppSequence

public AppSequence(long instanceId,
                   long messageNumber)
Parameters:
instanceId -
messageNumber -

AppSequence

public AppSequence(long instanceId,
                   java.lang.String sequenceId,
                   long messageNumber)
Parameters:
instanceId -
sequenceId -
messageNumber -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class UnknownDataContainer

getInstanceId

public long getInstanceId()

getSequenceId

public java.lang.String getSequenceId()

getMessageNumber

public long getMessageNumber()
Get message number.

Returns:
message number.

isNewer

public boolean isNewer(AppSequence other)
Checks if this application sequence is newer than the other specified.

Parameters:
other - application sequence to compare with this.
Returns:
whether this instance is newer than the one passed-in

parse

public static AppSequence parse(ElementParser parser,
                                ConstantsHelper helper)
                         throws org.xmlpull.v1.XmlPullParserException,
                                java.io.IOException
Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException