Imported Upstream version 1.1.1
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / OicSecResr.java
1 /*
2  *******************************************************************
3  *
4  * Copyright 2016 Samsung Electronics All Rights Reserved.
5  *
6  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21  */
22
23 package org.iotivity.base;
24
25 import java.util.List;
26 public class OicSecResr {
27
28         private String href;
29         private String rel;
30         private List<String> types;
31         private int typeLen;
32         private List<String> interfaces;
33         private int interfaceLen;
34
35         public OicSecResr(String href, String rel, List<String> types, int typeLen,
36                 List<String> interfaces, int interfaceLen) {
37             super();
38             this.href = href;
39             this.rel = rel;
40             this.types = types;
41             this.typeLen = typeLen;
42             this.interfaces = interfaces;
43             this.interfaceLen = interfaceLen;
44         }
45
46         public String getHref() {
47             return href;
48         }
49
50         public void setHref(String href) {
51             this.href = href;
52         }
53
54         public String getRel() {
55             return rel;
56         }
57
58         public void setRel(String rel) {
59             this.rel = rel;
60         }
61
62         public List<String> getTypesList() {
63             return types;
64         }
65
66         public void setTypes(List<String> types) {
67             this.types = types;
68         }
69
70         public int getTypeLen() {
71             return typeLen;
72         }
73
74         public void setTypeLen(int typeLen) {
75             this.typeLen = typeLen;
76         }
77
78         public List<String> getInterfacesList() {
79             return interfaces;
80         }
81
82         public String getInterfaces(int i) {
83             return this.interfaces.get(i);
84         }
85
86         public String getTypes(int i) {
87             return this.types.get(i);
88         }
89
90         public void setInterfaces(List<String> interfaces) {
91             this.interfaces = interfaces;
92         }
93
94         public int getInterfaceLen() {
95             return interfaceLen;
96         }
97
98         public void setInterfaceLen(int interfaceLen) {
99             this.interfaceLen = interfaceLen;
100         }
101
102 }