/* * ----------------------------------------------------------------------- * Copyright © 2013-2016 Meno Hochschild, <http://www.menodata.de/> * ----------------------------------------------------------------------- * This file (IsoDateStyle.java) is part of project Time4J. * * Time4J is free software: You can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 2.1 of the License, or * (at your option) any later version. * * Time4J is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Time4J. If not, see <http://www.gnu.org/licenses/>. * ----------------------------------------------------------------------- */ package net.time4j.format.expert; /** * <p>Determines a suitable style in ISO-format for printing gregorian calendar dates. </p> * * @author Meno Hochschild * @since 4.18 */ /*[deutsch] * <p>Legt den Stil im ISO-Format für die Ausgabe eines gregorianischen Kalenderdatums fest. </p> * * @author Meno Hochschild * @since 4.18 */ public enum IsoDateStyle { //~ Statische Felder/Initialisierungen -------------------------------- /** * <p>Style "20160425". </p> */ /*[deutsch] * <p>Stil "20160425". </p> */ BASIC_CALENDAR_DATE, /** * <p>Style "2016116". </p> */ /*[deutsch] * <p>Stil "2016116". </p> */ BASIC_ORDINAL_DATE, /** * <p>Style "2016W171". </p> */ /*[deutsch] * <p>Stil "2016W171". </p> */ BASIC_WEEK_DATE, /** * <p>Style "2016-04-25". </p> */ /*[deutsch] * <p>Stil "2016-04-25". </p> */ EXTENDED_CALENDAR_DATE, /** * <p>Style "2016-116". </p> */ /*[deutsch] * <p>Stil "2016-116". </p> */ EXTENDED_ORDINAL_DATE, /** * <p>Style "2016-W17-1". </p> */ /*[deutsch] * <p>Stil "2016-W17-1". </p> */ EXTENDED_WEEK_DATE; //~ Methoden ---------------------------------------------------------- /** * <p>Determines, if this style describes the basic or extended iso-format. </p> * * @return {@code true} if extended else {@code false} */ /*[deutsch] * <p>Ermittelt, ob dieser Stil das <i>basic</i>- oder das <i>extended</i>-ISO-Format beschreibt. </p> * * @return {@code true} if extended else {@code false} */ public boolean isExtended() { return (this.compareTo(EXTENDED_CALENDAR_DATE) >= 0); } }