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.
  • Field Details

  • Constructor Details

    • ISODateComponent

      public ISODateComponent​(String directive, String replace)
      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

      public String 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

      public String getReplacement()
      Get the replacement value of this component.
      Returns:
      replacement value
    • set

      public abstract void set​(String value, Calendar calendar)
      Handle the value catched with the replacement value.
      Parameters:
      value - value matching the replacement string
      calendar - calendar we are working on
    • get

      public abstract String get​(Calendar calendar)
      Get a string representation of this component for a given calendar.
      Parameters:
      calendar - the calendar
      Returns:
      string representation of this component.