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 * 022 * <h5 class='section'>See Also:</h5><ul> 023 * </ul> 024 */ 025public class PojoComplex { 026 027 private final String id; 028 private final Pojo innerPojo; 029 private final HashMap<String, List<Pojo>> values; 030 031 /** 032 * Constructor. 033 * 034 * @param id The <bc>id</bc> property value. 035 * @param innerPojo The <bc>innerPojo</bc> property value. 036 * @param values The <bc>values</bc> property value. 037 */ 038 @Beanc 039 public PojoComplex(@Name("id") String id, @Name("innerPojo") Pojo innerPojo, @Name("values") HashMap<String, List<Pojo>> values) { 040 this.id = id; 041 this.innerPojo = innerPojo; 042 this.values = values; 043 } 044 045 /** 046 * Bean property getter: <property>id</property>. 047 * 048 * @return The value of the <property>id</property> property on this bean, or <jk>null</jk> if it is not set. 049 */ 050 public String getId() { 051 return id; 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 * Bean property getter: <property>values</property>. 065 * 066 * @return The value of the <property>values</property> property on this bean, or <jk>null</jk> if it is not set. 067 */ 068 public HashMap<String,List<Pojo>> getValues() { 069 return values; 070 } 071}