/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2015 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package com.sun.faces.test.javaee8.converter; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.OffsetDateTime; import java.time.OffsetTime; import java.time.ZonedDateTime; import java.util.Locale; import javax.enterprise.context.RequestScoped; import javax.inject.Named; @Named @RequestScoped public class BackingBean implements Serializable { private static final long serialVersionUID = 1544275452223321526L; private Locale locale = new Locale("en", "US"); public Locale getLocale() { return locale; } private LocalDateTime localDateTime; public LocalDateTime getLocalDateTime() { return localDateTime; } public void setLocalDateTime(LocalDateTime localDateTime) { this.localDateTime = localDateTime; } private LocalDate localDate; public LocalDate getLocalDate() { return localDate; } public void setLocalDate(LocalDate localDate) { this.localDate = localDate; } private LocalTime localTime; public LocalTime getLocalTime() { return localTime; } public void setLocalTime(LocalTime localTime) { this.localTime = localTime; } private OffsetTime offsetTime; public OffsetTime getOffsetTime() { return offsetTime; } public void setOffsetTime(OffsetTime offsetTime) { this.offsetTime = offsetTime; } private OffsetDateTime offsetDateTime; public OffsetDateTime getOffsetDateTime() { return offsetDateTime; } public void setOffsetDateTime(OffsetDateTime offsetDateTime) { this.offsetDateTime = offsetDateTime; } private ZonedDateTime zonedDateTime; public ZonedDateTime getZonedDateTime() { return zonedDateTime; } public void setZonedDateTime(ZonedDateTime zonedDateTime) { this.zonedDateTime = zonedDateTime; } private LocalDateTime localDateTime1; public LocalDateTime getLocalDateTime1() { return localDateTime1; } public void setLocalDateTime1(LocalDateTime localDateTime) { this.localDateTime1 = localDateTime; } private LocalDateTime localDateTime2; public LocalDateTime getLocalDateTime2() { return localDateTime2; } public void setLocalDateTime2(LocalDateTime localDateTime) { this.localDateTime2 = localDateTime; } private LocalTime localTime1; public LocalTime getLocalTime1() { return localTime1; } public void setLocalTime1(LocalTime localTime) { this.localTime1 = localTime; } private LocalTime localTime2; public LocalTime getLocalTime2() { return localTime2; } public void setLocalTime2(LocalTime localTime) { this.localTime2 = localTime; } }