/*
 * 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";

	/**
	 * @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();

}

@@ -1051,32 +1051,82 @@
 bute.id%22;%0A%0A%09/**%0A
+%09 * Gets the current value of the attribute.%0A%09 * %0A
 %09 * @return the 

Update javadoc.