/** * Copyright 2010-2016 Ralph Schaer <ralphschaer@gmail.com> * * Licensed 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 ch.ralscha.extdirectspring.provider; import java.math.BigDecimal; import java.util.Date; import java.util.HashMap; import java.util.Map; import javax.validation.constraints.NotNull; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class FormInfo { @NotNull private String name; private int age; private boolean admin; private Date birthday; private BigDecimal salary; private double back; private String result; private final Map<String, Object> any = new HashMap<String, Object>(); @JsonAnyGetter public Map<String, Object> any() { return this.any; } @JsonAnySetter public void set(String name, Object value) { this.any.put(name, value); } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public int getAge() { return this.age; } public void setAge(int age) { this.age = age; } public boolean isAdmin() { return this.admin; } public void setAdmin(boolean admin) { this.admin = admin; } public Date getBirthday() { return this.birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public BigDecimal getSalary() { return this.salary; } public void setSalary(BigDecimal salary) { this.salary = salary; } public double getBack() { return this.back; } public void setBack(double back) { this.back = back; } public String getResult() { return this.result; } public void setResult(String result) { this.result = result; } public FormInfo() { } public FormInfo(String name, int age, boolean admin, BigDecimal salary, String result) { super(); this.name = name; this.age = age; this.admin = admin; this.salary = salary; this.result = result; } }