Add missing license headers in alto-commons
[alto.git] / alto-commons / src / main / java / org / opendaylight / alto / commons / types / model150404 / ModelEndpointPropertyMap.java
1 /*
2  * Copyright (c) 2015 Yale University and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.alto.commons.types.model150404;
10
11 import java.util.LinkedList;
12 import java.util.List;
13
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404.EndpointPropertyMap;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404.endpoint.property.map.Meta;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404.endpoint.property.map.data.EndpointProperties;
17 import org.opendaylight.yangtools.yang.binding.DataContainer;
18
19 import com.fasterxml.jackson.annotation.JsonIgnore;
20 import com.fasterxml.jackson.annotation.JsonProperty;
21
22 public class ModelEndpointPropertyMap implements EndpointPropertyMap {
23
24   @JsonProperty("alto-service:meta")
25   public ModelEndpointPropertyMeta endpointPropertyMeta = new ModelEndpointPropertyMeta();
26
27   @JsonProperty("alto-service:endpoint-properties")
28   public List<ModelEndpointProperties> properties = new LinkedList<ModelEndpointProperties>();
29
30   @JsonIgnore
31   @Override
32   public Class<? extends DataContainer> getImplementedInterface() {
33     return EndpointPropertyMap.class;
34   }
35
36   @JsonIgnore
37   @Override
38   public List<EndpointProperties> getEndpointProperties() {
39     return new LinkedList<EndpointProperties>(properties);
40   }
41
42   @JsonIgnore
43   @Override
44   public Meta getMeta() {
45     return endpointPropertyMeta;
46   }
47 }