001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.examples.core.pojo; 014 015import java.util.*; 016 017import org.apache.juneau.annotation.*; 018 019/** 020 * Complex Pojo class. 021 */ 022public class PojoComplex { 023 024 private final String id; 025 private final Pojo innerPojo; 026 private final HashMap<String, List<Pojo>> values; 027 028 029 /** 030 * TODO 031 * 032 * @param id 033 * @param innerPojo 034 * @param values 035 */ 036 @BeanConstructor(properties = "id,innerPojo,values") 037 public PojoComplex(String id, Pojo innerPojo, HashMap<String, List<Pojo>> values) { 038 this.id = id; 039 this.innerPojo = innerPojo; 040 this.values = values; 041 } 042 043 044 /** 045 * Bean property getter: <property>id</property>. 046 * 047 * @return The value of the <property>id</property> property on this bean, or <jk>null</jk> if it is not set. 048 */ 049 public String getId() { 050 return id; 051 } 052 053 054 /** 055 * Bean property getter: <property>innerPojo</property>. 056 * 057 * @return The value of the <property>innerPojo</property> property on this bean, or <jk>null</jk> if it is not set. 058 */ 059 public Pojo getInnerPojo() { 060 return innerPojo; 061 } 062 063 064 /** 065 * Bean property getter: <property>values</property>. 066 * 067 * @return The value of the <property>values</property> property on this bean, or <jk>null</jk> if it is not set. 068 */ 069 public HashMap<String,List<Pojo>> getValues() { 070 return values; 071 } 072 073 074}