|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.model.ASN1Value
schemajic.model.ASN1GeneralizedTime
public class ASN1GeneralizedTime
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.
| 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 |
|---|
public ASN1GeneralizedTime()
public ASN1GeneralizedTime(int year,
int month,
int day,
int hour,
int minute,
int second,
double fraction)
| Method Detail |
|---|
public int getDay()
public int getHour()
public double getFractionalSecond()
public int getMinute()
public int getMonth()
public int getSecond()
public int getYear()
public boolean hasDifferential()
public void setDay(int day)
day - The day to setpublic void setHour(int hour)
hour - The hour to setpublic void setFractionalSecond(double f)
f - the part of a second to setpublic void setMinute(int minute)
minute - The minute to setpublic void setMonth(int month)
month - The month to setpublic void setSecond(int second)
second - The second to setpublic void setYear(int year)
year - The year to setpublic int getHourDifferential()
public int getMinuteDifferential()
public void setHourDifferential(int hourDiff)
hourDiff - The hourDiff to setpublic void setMinuteDifferential(int minDiff)
minDiff - The minDiff to set
public java.lang.Object accept(ValueVisitor visitor,
java.lang.Object object)
throws VisitorException
visit from the ValueVisitor
accept in class ASN1Valuevisitor - the function applicator (mapper), which knows how to
process the given object type and apply appropriate operations to
the elements of this type of objectobject - an object to be visited
VisitorExceptionpublic Type getAsn1Type()
GeneralizedTime type.
getAsn1Type in class ASN1Value
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||