/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.formio.domain; import java.io.Serializable; import net.formio.validation.constraints.NotEmpty; public class Car implements Serializable { private static final long serialVersionUID = -4971576602203269772L; private Long carId; private String brand; private Engine engine; private int maxSpeed; private int productionYear; @NotEmpty private int color; private String description; private CarDimensions dimensions; public Long getCarId() { return carId; } public void setCarId(Long carId) { this.carId = carId; } public String getBrand() { return brand; } public void setBrand(String brand) { this.brand = brand; } public Engine getEngine() { return engine; } public void setEngine(Engine engine) { this.engine = engine; } public int getMaxSpeed() { return maxSpeed; } public void setMaxSpeed(int maxSpeed) { this.maxSpeed = maxSpeed; } public int getProductionYear() { return productionYear; } public void setProductionYear(int productionYear) { this.productionYear = productionYear; } public int getColor() { return color; } public void setColor(int color) { this.color = color; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public CarDimensions getDimensions() { return dimensions; } public void setDimensions(CarDimensions dimensions) { this.dimensions = dimensions; } }