cf05b1b162ee7cad3072e73b3d0064b803acc735
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 [ZTE] and others.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.openo.commontosca.catalog.model.externalservice.entity.container;
18
19 import java.util.List;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlElement;
24 import javax.xml.bind.annotation.XmlElementWrapper;
25 import javax.xml.bind.annotation.XmlRootElement;
26
27 @XmlAccessorType(XmlAccessType.FIELD)
28 @XmlRootElement(name = "Application", namespace = ContainerSelfService.NAMESPACE_OF_SELFSERVICE)
29 public class ContainerSelfService {
30   public static final String NAMESPACE_OF_SELFSERVICE =
31       "http://www.eclipse.org/winery/model/selfservice";
32
33   @XmlElement(namespace = NAMESPACE_OF_SELFSERVICE)
34   private String displayName;
35
36   @XmlElement(namespace = NAMESPACE_OF_SELFSERVICE)
37   private String description;
38
39   @XmlElement(namespace = NAMESPACE_OF_SELFSERVICE)
40   private String iconUrl;
41
42   @XmlElement(namespace = NAMESPACE_OF_SELFSERVICE)
43   private String imageUrl;
44
45   @XmlElementWrapper(name = "options", namespace = NAMESPACE_OF_SELFSERVICE)
46   @XmlElement(name = "option", namespace = NAMESPACE_OF_SELFSERVICE)
47   private List<ContainerSelfServiceOption> optionList;
48
49   public String getDisplayName() {
50     return displayName;
51   }
52
53   public void setDisplayName(String displayName) {
54     this.displayName = displayName;
55   }
56
57   public String getDescription() {
58     return description;
59   }
60
61   public void setDescription(String description) {
62     this.description = description;
63   }
64
65   public String getIconUrl() {
66     return iconUrl;
67   }
68
69   public void setIconUrl(String iconUrl) {
70     this.iconUrl = iconUrl;
71   }
72
73   public String getImageUrl() {
74     return imageUrl;
75   }
76
77   public void setImageUrl(String imageUrl) {
78     this.imageUrl = imageUrl;
79   }
80
81   public List<ContainerSelfServiceOption> getOptionList() {
82     return optionList;
83   }
84
85   public void setOptionList(List<ContainerSelfServiceOption> optionList) {
86     this.optionList = optionList;
87   }
88 }