2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.northbound.commons.query;
10 import java.util.List;
12 import javax.xml.bind.annotation.XmlElement;
13 import javax.xml.bind.annotation.XmlElementWrapper;
14 import javax.xml.bind.annotation.XmlRootElement;
16 @XmlRootElement(name="person")
18 public class PersonBean {
21 public String firstName;
23 public String lastName;
29 @XmlElementWrapper(name="emails") // ElementWrapper iteratable type
31 public List<String> email;
34 public PersonBean(int n, String f, String l, String c) {
41 public void setEmail(List<String> emails){
45 public String toString() {
46 return "PersonBean [firstName=" + firstName + ", lastName=" + lastName
47 + ", city=" + city + ", id=" + id + "]";