at.knowcenter.wag.egov.egiz.pdf
Class EGIZDate

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.pdf.EGIZDate

public class EGIZDate
extends Object

Represents a signature date and the signing time as can be found in the SIG_DATE field.

This is used to compare date values of signatures.

Author:
wprinz

Field Summary
protected  Date date
           
 
Constructor Summary
protected EGIZDate(Date date)
           
 
Method Summary
 int compareTo(EGIZDate other)
          Compares this EGIZDate to another EXIZDate.
 boolean equals(Object obj)
           
 Date getDate()
           
 int hashCode()
           
static Date parseDateFromString(String date_value)
           
static EGIZDate parseFromString(String date_value)
          Parses the date information from a given date value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

date

protected Date date
Constructor Detail

EGIZDate

protected EGIZDate(Date date)
Parameters:
date -
Method Detail

parseFromString

public static EGIZDate parseFromString(String date_value)
Parses the date information from a given date value.

Usually the date value is one extracted from the value of the SIG_DATE field.

Parameters:
date_value - The date value String.
Returns:
Returns the parsed EGIZDate. An IllegalArgumentException is thrown if the date String has an illegal format.

parseDateFromString

public static Date parseDateFromString(String date_value)

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public String toString()
See Also:
Object.toString()

compareTo

public int compareTo(EGIZDate other)
Compares this EGIZDate to another EXIZDate.

Parameters:
other - The other EGIZDate.
Returns:
Returns negative if this date is earlier (lower) than the other date. Returns 0 if both dates are equal. Returns positive if this date is later (higher) than the other date.

getDate

public Date getDate()
Returns:
the date


Copyright © 2006-2010. All Rights Reserved.