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_METADATA_NOTIFY
          This action is set when there is a MetadataNotification to be returned by getMetadataNotification() This signifies that a metadata 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, MetadataNotification metadataNotif)
           
 
Method Summary
 String getAction()
           
 org.eclipse.higgins.idas.api.IAttribute getAttr()
           
 AttributeValueNotification getAttributeValueNotification()
           
 MetadataNotification getMetadataNotification()
           
 
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_METADATA_NOTIFY

public static final String UPDATE_METADATA_NOTIFY
This action is set when there is a MetadataNotification to be returned by getMetadataNotification() This signifies that a metadata 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,
                             MetadataNotification metadataNotif)
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_METADATA_NOTIFY, UPDATE_VALUE_NOTIFY

getAttributeValueNotification

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

getMetadataNotification

public MetadataNotification getMetadataNotification()
Returns:
an MetadataNotification when the action is set to UPDATE_METADATA_NOTIFY.