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 * <ul class='seealso'>
023 *    <li class='extlink'>{@source}
024 * </ul>
025 */
026public class PojoComplex {
027
028   private final String id;
029   private final Pojo innerPojo;
030   private final HashMap<String, List<Pojo>> values;
031
032   /**
033    * Constructor.
034    *
035    * @param id The <bc>id</bc> property value.
036    * @param innerPojo The <bc>innerPojo</bc> property value.
037    * @param values The <bc>values</bc> property value.
038    */
039   @BeanConstructor
040   public PojoComplex(@Name("id") String id, @Name("innerPojo") Pojo innerPojo, @Name("values") HashMap<String, List<Pojo>> values) {
041      this.id = id;
042      this.innerPojo = innerPojo;
043      this.values = values;
044   }
045
046   /**
047    * Bean property getter:  <property>id</property>.
048    *
049    * @return The value of the <property>id</property> property on this bean, or <jk>null</jk> if it is not set.
050    */
051   public String getId() {
052      return id;
053   }
054
055   /**
056    * Bean property getter:  <property>innerPojo</property>.
057    *
058    * @return The value of the <property>innerPojo</property> property on this bean, or <jk>null</jk> if it is not set.
059    */
060   public Pojo getInnerPojo() {
061      return innerPojo;
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}