2 *******************************************************************
4 * Copyright 2016 Samsung Electronics All Rights Reserved.
6 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 package org.iotivity.cloud.rdserver.resources;
24 import java.util.ArrayList;
26 public class LinksPayloadFormat {
27 /** This is the target relative URI. */
30 * Resource Type - A standard OIC specified or vendor defined resource type
31 * of the resource referenced by the target URI.
35 * Interface - The interfaces supported by the resource referenced by the
38 ArrayList<String> itf;
40 * The relation of the target URI referenced by the link to the context URI;
41 * The default value is null.
45 * Specifies if the resource referenced by the target URIis observable or
50 * A title for the link relation. Can be used by the UI to provide a
55 * This is used to override the context URI e.g. override the URI of the
56 * containing collection.
60 * The instance identifier for this web link in an array of web links - used
65 * A hint of the media type of the representation of the resource referenced
70 public LinksPayloadFormat() {
71 rt = new ArrayList<String>();
72 itf = new ArrayList<String>();
73 mt = new ArrayList<String>();
76 public String getHref() {
80 public void setHref(String href) {
84 public ArrayList<String> getRt() {
88 public void setRt(ArrayList<String> rt) {
92 public ArrayList<String> getItf() {
96 public void setItf(ArrayList<String> itf) {
100 public String getRel() {
104 public void setRel(String rel) {
108 public boolean isObs() {
112 public void setObs(boolean obs) {
116 public String getTitle() {
120 public void setTitle(String title) {
124 public String getUri() {
128 public void setUri(String uri) {
132 public int getIns() {
136 public void setIns(int ins) {
140 public ArrayList<String> getMt() {
144 public void setMt(ArrayList<String> mt) {