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 class
ISODateComponent.AliasComponent
Defines an alias component.static class
ISODateComponent.AMPMComponent
Component handling AM/PM.static class
ISODateComponent.EpochComponent
Component handling a number of milliseconds since the epoch (january, 1st 1970).static class
ISODateComponent.FieldComponent
Defines a component associated with a field of a calendar.static class
ISODateComponent.NotImplementedComponent
Defines a not implemented component.static class
ISODateComponent.TextComponent
Defines a text component.static class
ISODateComponent.UTCOffsetComponent
Component 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 String
get(Calendar calendar)
Get a string representation of this component for a given calendar.String
getDirective()
Access to the directive name of the component.String
getReplacement()
Get the replacement value of this component.boolean
isAlias()
Return true if this component is an alias.abstract void
set(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.
-