1 //******************************************************************
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 package org.iotivity.resourcecontainer.bundle.api;
24 * This class holds the configuration parameters for a single resource instance provided
25 * by the resource bundle.
27 public class ResourceConfig {
28 private String m_name, m_uri, m_resourceType, m_address;
31 * Empty constructor for resoure config.
33 public ResourceConfig() {
38 * Creates a new resource config instance.
39 * @param params Resource parameters as array. 1. Name, 2. URI, 3. Resource Type, 4. Address
41 public ResourceConfig(String[] params) {
44 m_resourceType = params[2];
45 m_address = params[3];
49 * Returns the configured name
50 * @return name property
52 public String getName() {
58 * @param m_name Resource name
60 public void setName(String m_name) {
65 * Returns the configured URI
66 * @return Configured URI
68 public String getURI() {
73 * Sets the configured URI
74 * @param m_uri Configuration URI
76 public void setURI(String m_uri) {
81 * Returns the configured resource type
82 * @return configured resource type
84 public String getResourceType() {
85 return m_resourceType;
89 * Sets the configured resource type
90 * @param m_resourceType updates the configured resource type
92 public void setResourceType(String m_resourceType) {
93 this.m_resourceType = m_resourceType;
97 * Returns the configured address
98 * @return Configured address
100 public String getAddress() {
105 * Sets the configured address
106 * @param m_address Configured address
108 public void setAddress(String m_address) {
109 this.m_address = m_address;
113 public String toString() {
114 return "ResourceConfig [m_name=" + m_name + ", m_uri=" + m_uri
115 + ", m_resourceType=" + m_resourceType + ", m_address="