com.ibm.tws.objects.types
Class ResolutionData

java.lang.Object
  extended bycom.ibm.tws.objects.types.ResolutionData
All Implemented Interfaces:
java.io.Serializable

public class ResolutionData
extends java.lang.Object
implements java.io.Serializable

This class includes the information required to describe the resolution criteria to be used for external dependencies.

The following syntax validation constraints must be met on ResolutionData objects:

resolutionRule One of the values exposed by the ResolutionRule class
startOffset An amount of time, expressed in milliseconds
Allowed range is from -604,740,000 to 604,740,000 (+/- 6 days, 23 hours and 59 minutes)
Required if rule is IN_ABSOLUTE_INTERVAL or IN_RELATIVE_INTERVAL
Must be null if rule is NEAREST_BEFORE or IN_SAME_DAY
Default is TypeUtility.NULL_OFFSET, used as a null value
endOffset An amount of time, expressed in milliseconds
Allowed range is from -604,740,000 to 604,740,000 (+/- 6 days, 23 hours and 59 minutes)
Required if rule is IN_ABSOLUTE_INTERVAL or IN_RELATIVE_INTERVAL
Must be null if rule is NEAREST_BEFORE or IN_SAME_DAY
Default is TypeUtility.NULL_OFFSET, used as a null value

See Also:
ResolutionRule, TypeUtility, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
ResolutionData()
          Creates an empty ResolutionData object.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this ResolutionData object are equal to those of the given one.
 long getEndOffset()
          Returns the time frame end offset.
 ResolutionRule getResolutionRule()
          Returns the resolution rule.
 long getStartOffset()
          Returns the time frame start offset.
 int hashCode()
          Returns a hash code for this ResolutionData object.
 void setEndOffset(long value)
          Sets the time frame end offset.
 void setResolutionRule(ResolutionRule rule)
          Sets the resolution rule.
 void setStartOffset(long value)
          Sets the time frame start offset.
 java.lang.String toString()
          Returns a string representation of this ResolutionData object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

ResolutionData

public ResolutionData()
Creates an empty ResolutionData object.

Method Detail

getResolutionRule

public ResolutionRule getResolutionRule()
Returns the resolution rule.

Returns:
The resolution rule.

getStartOffset

public long getStartOffset()
Returns the time frame start offset.

Returns:
The time frame start offset.

getEndOffset

public long getEndOffset()
Returns the time frame end offset.

Returns:
The time frame end offset.

setResolutionRule

public void setResolutionRule(ResolutionRule rule)
Sets the resolution rule.

Parameters:
rule - The resolution rule.

setStartOffset

public void setStartOffset(long value)
Sets the time frame start offset.

Parameters:
value - The time frame start offset.

setEndOffset

public void setEndOffset(long value)
Sets the time frame end offset.

Parameters:
value - The time frame end offset.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this ResolutionData object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this ResolutionData object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this ResolutionData object.

Returns:
A text string including all ResolutionData fields.


Copyright © 2005 IBM All Rights Reserved.