Class ZoneIdConverter


  • public class ZoneIdConverter
    extends java.lang.Object
    Validates and converts a zone ID.
    • Constructor Summary

      Constructors 
      Constructor Description
      ZoneIdConverter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.time.ZoneId convert​(Token referenceToken, java.lang.String zoneIdString)
      Converts a zone ID string to a ZoneId.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZoneIdConverter

        public ZoneIdConverter()
    • Method Detail

      • convert

        public static java.time.ZoneId convert​(Token referenceToken,
                                               java.lang.String zoneIdString)
                                        throws EvaluationException
        Converts a zone ID string to a ZoneId. Throws an EvaluationException if conversion fails.
        Parameters:
        referenceToken - The token for the error message, usually the function token.
        zoneIdString - The zone IDS string to convert.
        Returns:
        The converted ZoneId.
        Throws:
        EvaluationException - In case the zone ID can't be converted.