Package org.graphstream.util.time
Class ISODateComponent
java.lang.Object
org.graphstream.util.time.ISODateComponent
- Direct Known Subclasses:
ISODateComponent.AliasComponent,ISODateComponent.AMPMComponent,ISODateComponent.EpochComponent,ISODateComponent.FieldComponent,ISODateComponent.NotImplementedComponent,ISODateComponent.TextComponent,ISODateComponent.UTCOffsetComponent
public abstract class ISODateComponent extends Object
Defines components of
ISODateIO.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classISODateComponent.AliasComponentDefines an alias component.static classISODateComponent.AMPMComponentComponent handling AM/PM.static classISODateComponent.EpochComponentComponent handling a number of milliseconds since the epoch (january, 1st 1970).static classISODateComponent.FieldComponentDefines a component associated with a field of a calendar.static classISODateComponent.NotImplementedComponentDefines a not implemented component.static classISODateComponent.TextComponentDefines a text component.static classISODateComponent.UTCOffsetComponentComponent handling utc offset (+/- 0000). -
Field Summary
-
Constructor Summary
Constructors Constructor Description ISODateComponent(String directive, String replace)Build a new component composed of a directive name ("%.") and a replacement value. -
Method Summary
Modifier and Type Method Description abstract Stringget(Calendar calendar)Get a string representation of this component for a given calendar.StringgetDirective()Access to the directive name of the component.StringgetReplacement()Get the replacement value of this component.booleanisAlias()Return true if this component is an alias.abstract voidset(String value, Calendar calendar)Handle the value catched with the replacement value.
-
Field Details
-
ABBREVIATED_WEEKDAY_NAME
-
FULL_WEEKDAY_NAME
-
ABBREVIATED_MONTH_NAME
-
FULL_MONTH_NAME
-
LOCALE_DATE_AND_TIME
-
CENTURY
-
DAY_OF_MONTH_2_DIGITS
-
DATE
-
DAY_OF_MONTH
-
DATE_ISO8601
-
WEEK_BASED_YEAR_2_DIGITS
-
WEEK_BASED_YEAR_4_DIGITS
-
ABBREVIATED_MONTH_NAME_ALIAS
-
HOUR_OF_DAY
-
HOUR
-
DAY_OF_YEAR
-
MILLISECOND
-
EPOCH
-
MONTH
-
MINUTE
-
NEW_LINE
-
AM_PM
-
LOCALE_CLOCK_TIME_12_HOUR
-
HOUR_AND_MINUTE
-
SECOND
-
TABULATION
-
TIME_ISO8601
-
DAY_OF_WEEK_1_7
-
WEEK_OF_YEAR_FROM_SUNDAY
-
WEEK_NUMBER_ISO8601
-
DAY_OF_WEEK_0_6
-
WEEK_OF_YEAR_FROM_MONDAY
-
LOCALE_DATE_REPRESENTATION
-
LOCALE_TIME_REPRESENTATION
-
YEAR_2_DIGITS
-
YEAR_4_DIGITS
-
UTC_OFFSET
-
LOCALE_TIME_ZONE_NAME
-
PERCENT
-
-
Constructor Details
-
ISODateComponent
Build a new component composed of a directive name ("%.") and a replacement value.- Parameters:
directive- directive name, should start with a leading '%'.replace- replace the directive with the value given here.
-
-
Method Details
-
getDirective
Access to the directive name of the component.- Returns:
- directive of the component.
-
isAlias
public boolean isAlias()Return true if this component is an alias. An alias can contain other directive name and its replacement should be parse again.- Returns:
- true if component is an alias.
-
getReplacement
Get the replacement value of this component.- Returns:
- replacement value
-
set
Handle the value catched with the replacement value.- Parameters:
value- value matching the replacement stringcalendar- calendar we are working on
-
get
Get a string representation of this component for a given calendar.- Parameters:
calendar- the calendar- Returns:
- string representation of this component.
-