Java API added to change the attribute name after creation.
Change-Id: I94a29031aeb9ad9441430eaf5ef7cb8041e550f6
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5275
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
return mProperty;
}
+ /**
+ * API to set the name of attribute.
+ *
+ * @param name
+ * Name of the attribute.
+ */
+ public void setName(String name) {
+ this.mName = name;
+ }
+
/**
* API to set the value of attribute.
*
/**
* API to start observing the resource.
*
- * @param type
- * Type of observation.
* @param onObserveListener
* The handler method which will be invoked with a map of
* attribute names and values whenever there is a change in
/**
* API to start observing the resource.
*
- * @param type
- * Type of observation.
* @param queryParams
* Map which can have the query parameter names and values.
* @param onObserveListener
* resource.
*
* @return True if the resource is collection, otherwise false.
- *
- * @throws SimulatorException
- * This exception will be thrown if the native resource object
- * does not exist or for some general errors.
*/
public boolean isCollection() {
return (this instanceof SimulatorCollectionResource);
* collection resource.
*
* @return Type of resource.
- *
- * @throws SimulatorException
- * This exception will be thrown if the native resource object
- * does not exist or for some general errors.
*/
public Type getType() {
if (this instanceof SimulatorSingleResource) {
* @throws InvalidArgsException
* This exception will be thrown if the interface type is
* invalid.
+ * @throws NoSupportException
+ * This exception will be thrown if the interface type is
+ * not supported by the resource.
* @throws SimulatorException
* This exception will be thrown if the native resource object
* does not exist or for some general errors.
* @param attribute
* Attribute to be added to resource's representation model.
*
+ * @return True if the attribute is added properly.
+ *
* @throws InvalidArgsException
* This exception will be thrown on invalid input.
* @throws SimulatorException
* @param attrName
* Name of the attribute to be deleted.
*
+ * @return True if the attribute is removed properly.
+ *
* @throws InvalidArgsException
* This exception will be thrown on invalid input.
* @throws SimulatorException
* @param value
* New value of the attribute.
*
+ * @return True if the attribute's value is updated properly.
+ *
* @throws InvalidArgsException
* This exception will be thrown on invalid input.
* @throws SimulatorException