/*
 * Copyright (c) OSGi Alliance (2013). All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.osgi.service.zigbee;

import org.osgi.service.zigbee.descriptions.ZigBeeDataTypeDescription;

/**
 * This interface represents a ZigBee Attribute
 * 
 * @version 1.0
 */
public interface ZigBeeAttribute {

	/**
	 * Property key for the optional attribute id. A ZigBee Event Listener
	 * service can announce for what ZigBee attributes it wants notifications.
	 */
	public final static String	ID	= "zigbee.attribute.id";

	/**
	 * Gets the current value of the attribute.
	 * 
	 * @return the attribute identifier
	 */
	public int getId();

	/**
	 * Gets the current value of the attribute. This method is used when the
	 * attribute data type is not provided.
	 * 
	 * @param handler the handler
	 * @throws ZigBeeException
	 */
	public void getValue(ZigBeeAttributesHandler handler) throws ZigBeeException;

	/**
	 * Sets the current value of the attribute.
	 * 
	 * @param value the Java value to set
	 * @param handler the handler
	 * @throws ZigBeeException
	 */
	public void setValue(Object value, ZigBeeAttributesHandler handler) throws ZigBeeException;

	/**
	 * @return the Attribute data type. It may be null if the data type is not
	 *         retrievable (issue with read attribute and discover attributes
	 *         commands).
	 */
	public ZigBeeDataTypeDescription getDataType();

}

@@ -890,19 +890,21 @@
 ibute id
-. A
+ of a
  ZigBee 
@@ -921,83 +921,8 @@
 ener
-%0A%09 * service can announce for what ZigBee attributes it wants notifications
 .%0A%09 
@@ -990,58 +990,8 @@
 /**%0A
-%09 * Gets the current value of the attribute.%0A%09 * %0A
 %09 * 
@@ -1022,16 +1022,26 @@
 entifier
+ (i.e. ID)
 %0A%09 */%0A%09p
@@ -1113,78 +1113,8 @@
 ute.
- This method is used when the%0A%09 * attribute data type is not provided.
 %0A%09 *
@@ -1403,32 +1403,99 @@
  ZigBeeException
+ when the data type is not known%0A%09 *         (%22Unknown data type%22).
 %0A%09 */%0A%09public vo

Update ZigBeeAttribute javadoc.