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