org.graphstream.util.time
Class ISODateComponent.FieldComponent

java.lang.Object
  extended by org.graphstream.util.time.ISODateComponent
      extended by org.graphstream.util.time.ISODateComponent.FieldComponent
Enclosing class:
ISODateComponent

public static class ISODateComponent.FieldComponent
extends ISODateComponent

Defines a component associated with a field of a calendar. When a value is handled, component will try to set the associated field of the calendar.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.util.time.ISODateComponent
ISODateComponent.AliasComponent, ISODateComponent.AMPMComponent, ISODateComponent.EpochComponent, ISODateComponent.FieldComponent, ISODateComponent.NotImplementedComponent, ISODateComponent.TextComponent, ISODateComponent.UTCOffsetComponent
 
Field Summary
 
Fields inherited from class org.graphstream.util.time.ISODateComponent
ABBREVIATED_MONTH_NAME, ABBREVIATED_MONTH_NAME_ALIAS, ABBREVIATED_WEEKDAY_NAME, AM_PM, CENTURY, DATE, DATE_ISO8601, DAY_OF_MONTH, DAY_OF_MONTH_2_DIGITS, DAY_OF_WEEK_0_6, DAY_OF_WEEK_1_7, DAY_OF_YEAR, EPOCH, FULL_MONTH_NAME, FULL_WEEKDAY_NAME, HOUR, HOUR_AND_MINUTE, HOUR_OF_DAY, LOCALE_CLOCK_TIME_12_HOUR, LOCALE_DATE_AND_TIME, LOCALE_DATE_REPRESENTATION, LOCALE_TIME_REPRESENTATION, LOCALE_TIME_ZONE_NAME, MILLISECOND, MINUTE, MONTH, NEW_LINE, PERCENT, SECOND, TABULATION, TIME_ISO8601, UTC_OFFSET, WEEK_BASED_YEAR_2_DIGITS, WEEK_BASED_YEAR_4_DIGITS, WEEK_NUMBER_ISO8601, WEEK_OF_YEAR_FROM_MONDAY, WEEK_OF_YEAR_FROM_SUNDAY, YEAR_2_DIGITS, YEAR_4_DIGITS
 
Constructor Summary
ISODateComponent.FieldComponent(String shortcut, String replace, int field, int offset, String format)
           
ISODateComponent.FieldComponent(String shortcut, String replace, int field, String format)
           
 
Method Summary
 String get(Calendar calendar)
          Get a string representation of this component for a given calendar.
 void set(String value, Calendar calendar)
          Handle the value catched with the replacement value.
 
Methods inherited from class org.graphstream.util.time.ISODateComponent
getDirective, getReplacement, isAlias
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISODateComponent.FieldComponent

public ISODateComponent.FieldComponent(String shortcut,
                                       String replace,
                                       int field,
                                       String format)

ISODateComponent.FieldComponent

public ISODateComponent.FieldComponent(String shortcut,
                                       String replace,
                                       int field,
                                       int offset,
                                       String format)
Method Detail

set

public void set(String value,
                Calendar calendar)
Description copied from class: ISODateComponent
Handle the value catched with the replacement value.

Specified by:
set in class ISODateComponent
Parameters:
value - value matching the replacement string
calendar - calendar we are working on

get

public String get(Calendar calendar)
Description copied from class: ISODateComponent
Get a string representation of this component for a given calendar.

Specified by:
get in class ISODateComponent
Parameters:
calendar - the calendar
Returns:
string representation of this component.


Copyright © 2013. All Rights Reserved.