Cleanup documentation warnings in RcsResourceObject.java
authorGeorge Nash <george.nash@intel.com>
Tue, 10 Jan 2017 19:14:54 +0000 (11:14 -0800)
committerRick Bell <richard.s.bell@intel.com>
Tue, 10 Jan 2017 22:32:19 +0000 (22:32 +0000)
Change-Id: I3a27baf1d01b7edff871371982a6a1dc0917171e
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16287
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/server/RcsResourceObject.java

index 8734653..a64f9ff 100644 (file)
@@ -106,7 +106,7 @@ public final class RcsResourceObject extends RcsObject {
          *
          * @param isDiscoverable
          *            whether to be discoverable or not
-         *
+         * @return the Builder
          */
         public Builder setDiscoverable(boolean isDiscoverable) {
             mIsDiscovervable = isDiscoverable;
@@ -118,6 +118,7 @@ public final class RcsResourceObject extends RcsObject {
          *
          * @param isObservable
          *            whether to be observable or not
+         * @return the Builder
          *
          */
         public Builder setObservable(boolean isObservable) {
@@ -126,8 +127,9 @@ public final class RcsResourceObject extends RcsObject {
         }
 
         /**
-         * Sets attributes foe the resource.
-         *
+         * Sets attributes for the resource.
+         * @param attributes the attributes to set for the resource
+         * @return the Builder
          */
         public Builder setAttributes(RcsResourceAttributes attributes) {
             mAttributes = attributes;
@@ -135,7 +137,9 @@ public final class RcsResourceObject extends RcsObject {
         }
 
         /**
-         * Register a resource and returns a RCSResourceObject.
+         * Register a resource
+         * 
+         * @return a RCSResourceObject.
          *
          * throws RcsPlatformException
          *             If registering a resource is failed.
@@ -490,9 +494,11 @@ public final class RcsResourceObject extends RcsObject {
     }
 
     /**
-     * Returns a copied attributes of the RCSResourceObject.
+     * Returns a copied attributes of the RcsResourceObject.
      * To modify the attributes, use {@link AttributesLock}.
      *
+     * @return copied attributes of the RcsResourceObject
+     *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
      *
@@ -505,7 +511,9 @@ public final class RcsResourceObject extends RcsObject {
     }
 
     /**
-     * Returns an AttributesLock for this RcsResourceObject.
+     * Get AttributesLock for this RcsResourceObject.
+     *
+     * @return an AttributesLock for this RcsResourceObject.
      *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
@@ -519,6 +527,8 @@ public final class RcsResourceObject extends RcsObject {
     /**
      * Checks whether the resource is observable or not.
      *
+     * @return true if the resource is observable.
+     *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
      */
@@ -531,6 +541,8 @@ public final class RcsResourceObject extends RcsObject {
     /**
      * Checks whether the resource is discoverable or not.
      *
+     * @return true is the resource is discoverable.
+     *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
      */
@@ -545,6 +557,7 @@ public final class RcsResourceObject extends RcsObject {
      *
      * Default behavior is {@link RcsGetResponse#defaultAction()}.
      *
+     * @param handler the GetRequestHandler. Pass null to remove handler.
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
      */
@@ -560,6 +573,8 @@ public final class RcsResourceObject extends RcsObject {
      *
      * Default behavior is {@link RcsSetResponse#defaultAction()}.
      *
+     * @param handler the SetRequestHandler. Pass null to remove handler.
+     *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
      *
@@ -652,7 +667,9 @@ public final class RcsResourceObject extends RcsObject {
     }
 
     /**
-     * Returns the current policy
+     * Get the current policy
+     *
+     * @return the current policy
      *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
@@ -685,6 +702,8 @@ public final class RcsResourceObject extends RcsObject {
     /**
      * Returns the current policy.
      *
+     * @return the current request handler policy
+     *
      * @throws RcsDestroyedObjectException
      *             if the object is destroyed
      */