Packagetwaver
Interfacepublic interface IClient
Implementors DataBox

This interface defines a client property mechanism. Client property is a concept in TWaver that can carry any property with any type data and can be installed on any classes implements this interface. As the subclass of this interface, Element and Alarm are all able to carry client properties.



Public Properties
 PropertyDefined By
  clientProperties : ICollection
[read-only] Get a ICollection that contians all client proerty name.
IClient
Public Methods
 MethodDefined By
  
getClient(clientProp:String):*
Get the specified client property.
IClient
  
setClient(clientProp:String, newValue:*):IClient
Set a client property by specified property name and property value.
IClient
Property Detail
clientPropertiesproperty
clientProperties:ICollection  [read-only]

Get a ICollection that contians all client proerty name.


Implementation
    public function get clientProperties():ICollection
Method Detail
getClient()method
public function getClient(clientProp:String):*

Get the specified client property.

Parameters

clientProp:String — name of the client property want to get.

Returns
* — the client property value.
setClient()method 
public function setClient(clientProp:String, newValue:*):IClient

Set a client property by specified property name and property value.

Parameters

clientProp:String — the name of client property
 
newValue:* — value of the client property

Returns
IClient — the IClient itself. So we can write code in a way like: client.setClient("a", a).setClient("b", b).setClient("c", c);