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