Class ISODateComponent.AliasComponent

java.lang.Object
org.graphstream.util.time.ISODateComponent
org.graphstream.util.time.ISODateComponent.AliasComponent
Enclosing class:
ISODateComponent

public static class ISODateComponent.AliasComponent
extends ISODateComponent
Defines an alias component. Such component does nothing else that replace them directive by another string.
  • Constructor Details

  • Method Details

    • isAlias

      public boolean isAlias()
      Description copied from class: ISODateComponent
      Return true if this component is an alias. An alias can contain other directive name and its replacement should be parse again.
      Overrides:
      isAlias in class ISODateComponent
      Returns:
      true if component is an alias.
    • 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.