org.eclipse.higgins.idas.spi
Class AttributeNotification

java.lang.Object
  extended byorg.eclipse.higgins.idas.spi.AttributeNotification

public class AttributeNotification
extends Object


Field Summary
static String UPDATE_ADD
          This action is set when the IAttribute returned by getAttr() was added
static String UPDATE_ATTRIBUTE_NOTIFY
          This action is set when there is a AttributeNotification to be returned by getAttributeNotification() This signifies that a meta-attribute element on this attribute was updated.
static String UPDATE_REMOVE
          This action is set when the IAttribute returned by getAttr() was removed
static String UPDATE_VALUE_NOTIFY
          This action is set when there is a AttributeValueNotification to be returned by getAttributeValueNotification() This signifies that a value of this attribute was updated.
 
Constructor Summary
AttributeNotification(org.eclipse.higgins.idas.api.IAttribute attr, String action, AttributeValueNotification attrValNotif, AttributeNotification metaAttrNotif)
           
 
Method Summary
 String getAction()
           
 org.eclipse.higgins.idas.api.IAttribute getAttr()
           
 AttributeNotification getAttributeNotification()
           
 AttributeValueNotification getAttributeValueNotification()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_ADD

public static final String UPDATE_ADD
This action is set when the IAttribute returned by getAttr() was added

See Also:
Constant Field Values

UPDATE_REMOVE

public static final String UPDATE_REMOVE
This action is set when the IAttribute returned by getAttr() was removed

See Also:
Constant Field Values

UPDATE_VALUE_NOTIFY

public static final String UPDATE_VALUE_NOTIFY
This action is set when there is a AttributeValueNotification to be returned by getAttributeValueNotification() This signifies that a value of this attribute was updated.

See Also:
Constant Field Values

UPDATE_ATTRIBUTE_NOTIFY

public static final String UPDATE_ATTRIBUTE_NOTIFY
This action is set when there is a AttributeNotification to be returned by getAttributeNotification() This signifies that a meta-attribute element on this attribute was updated.

See Also:
Constant Field Values
Constructor Detail

AttributeNotification

public AttributeNotification(org.eclipse.higgins.idas.api.IAttribute attr,
                             String action,
                             AttributeValueNotification attrValNotif,
                             AttributeNotification metaAttrNotif)
Parameters:
attr -
action -
attrValNotif -
Method Detail

getAttr

public org.eclipse.higgins.idas.api.IAttribute getAttr()
Returns:
the IAttribute being added or removed when the action is set to UPDATE_ADD or UPDATE_REMOVE

getAction

public String getAction()
Returns:
one of: UPDATE_ADD, UPDATE_REMOVE, UPDATE_ATTRIBUTE_NOTIFY, UPDATE_VALUE_NOTIFY

getAttributeValueNotification

public AttributeValueNotification getAttributeValueNotification()
Returns:
an AttributeValueNotification when the action is set to UPDATE_VALUE_NOTIFY.

getAttributeNotification

public AttributeNotification getAttributeNotification()
Returns:
an AttributeNotification when the action is set to UPDATE_ATTRIBUTE_NOTIFY.