at.knowcenter.wag.egov.egiz.pdf
Class EGIZDate
java.lang.Object
at.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
date
protected Date date
EGIZDate
protected EGIZDate(Date date)
- Parameters:
date -
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.