XCMS Toolkit

schemajic.model
Class ASN1GeneralizedTime

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1GeneralizedTime

public class ASN1GeneralizedTime
extends ASN1Value

Models the abstract concept of the value of ASN.1 type GeneralizedTime.

Universal class tag assignment is UNIVERSAL 24.

XML ASN.1 type name is GeneralizedTime.

Values of this type are character strings that represents a calendar date (as defined in ISO 8601), having a four-digit year, a two-digit month and a two-digit day. The calendar date is followed by a character string that represents the time of day, all formatted consistent with the requirements of ISO 8601.

Version:
1.00 - 2006/02/09
Author:
support@phillipgriffin.com

Constructor Summary
ASN1GeneralizedTime()
           
ASN1GeneralizedTime(int year, int month, int day, int hour, int minute, int second, double fraction)
          Assumes Zulu time.
 
Method Summary
 java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Accepts a visit from the ValueVisitor
 Type getAsn1Type()
          Returns an ASN.1 GeneralizedTime type.
 int getDay()
          Returns the integer day.
 double getFractionalSecond()
          Returns the integer millisecond.
 int getHour()
          Returns the integer hour.
 int getHourDifferential()
          Returns the differential in hours from Zulu time.
 int getMinute()
          Returns the integer minute.
 int getMinuteDifferential()
          Returns the differential in minutes from Zulu time.
 int getMonth()
          Returns the integer month.
 int getSecond()
          Returns the integer second.
 int getYear()
          Returns the integer year.
 boolean hasDifferential()
          Returns the zulu.
 void setDay(int day)
          Sets the day.
 void setFractionalSecond(double f)
          Sets the milliseconds.
 void setHour(int hour)
          Sets the hour.
 void setHourDifferential(int hourDiff)
          Sets the differential in hours from Zulu time.
 void setMinute(int minute)
          Sets the minute.
 void setMinuteDifferential(int minDiff)
          Sets the differential in minutes from Zulu time.
 void setMonth(int month)
          Sets the month.
 void setSecond(int second)
          Sets the second.
 void setYear(int year)
          Sets the year.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1GeneralizedTime

public ASN1GeneralizedTime()

ASN1GeneralizedTime

public ASN1GeneralizedTime(int year,
                           int month,
                           int day,
                           int hour,
                           int minute,
                           int second,
                           double fraction)
Assumes Zulu time.

Method Detail

getDay

public int getDay()
Returns the integer day.


getHour

public int getHour()
Returns the integer hour.


getFractionalSecond

public double getFractionalSecond()
Returns the integer millisecond.


getMinute

public int getMinute()
Returns the integer minute.


getMonth

public int getMonth()
Returns the integer month.


getSecond

public int getSecond()
Returns the integer second.


getYear

public int getYear()
Returns the integer year.


hasDifferential

public boolean hasDifferential()
Returns the zulu.

Returns:
boolean

setDay

public void setDay(int day)
Sets the day.

Parameters:
day - The day to set

setHour

public void setHour(int hour)
Sets the hour.

Parameters:
hour - The hour to set

setFractionalSecond

public void setFractionalSecond(double f)
Sets the milliseconds.

Parameters:
f - the part of a second to set

setMinute

public void setMinute(int minute)
Sets the minute.

Parameters:
minute - The minute to set

setMonth

public void setMonth(int month)
Sets the month.

Parameters:
month - The month to set

setSecond

public void setSecond(int second)
Sets the second.

Parameters:
second - The second to set

setYear

public void setYear(int year)
Sets the year.

Parameters:
year - The year to set

getHourDifferential

public int getHourDifferential()
Returns the differential in hours from Zulu time.

Returns:
int

getMinuteDifferential

public int getMinuteDifferential()
Returns the differential in minutes from Zulu time.

Returns:
int

setHourDifferential

public void setHourDifferential(int hourDiff)
Sets the differential in hours from Zulu time.

Parameters:
hourDiff - The hourDiff to set

setMinuteDifferential

public void setMinuteDifferential(int minDiff)
Sets the differential in minutes from Zulu time.

Parameters:
minDiff - The minDiff to set

accept

public java.lang.Object accept(ValueVisitor visitor,
                               java.lang.Object object)
                        throws VisitorException
Accepts a visit from the ValueVisitor

Specified by:
accept in class ASN1Value
Parameters:
visitor - the function applicator (mapper), which knows how to process the given object type and apply appropriate operations to the elements of this type of object
object - an object to be visited
Returns:
a visit to the provided object
Throws:
VisitorException

getAsn1Type

public Type getAsn1Type()
Returns an ASN.1 GeneralizedTime type.

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.