com.cisco.provisioning.cpe.events
Class NodeEventQualifier

java.lang.Object
  extended by com.cisco.provisioning.cpe.events.Qualifier
      extended by com.cisco.provisioning.cpe.events.NodeEventQualifier
All Implemented Interfaces:
Externalizable, Serializable

public class NodeEventQualifier
extends Qualifier

This implementation of the Qualifier class is to be used with the NodeEvent.

See Also:
Serialized Form

Constructor Summary
NodeEventQualifier()
          This constructor is needed for externalization
 
Method Summary
 void clearAll()
          Clears all options that have been set.
 boolean qualifies(ProvAPIEvent event)
          Returns true if the implementation has determined that this event satisfies the requirements to notify the associated listener.
 void readExternal(ObjectInput in)
          Externalizable interface.
 void setChangedNode()
          Sets the qualifies method to return true to all NodeEvent that are CHANGED_NODE sub-events.
 void setDeletedNode()
          Sets the qualifies method to return true to all NodeEvent that are DELETED_NODE sub-events.
 void setNewNode()
          Sets the qualifies method to return true to all NodeEvent that are NEW_NODE sub-events.
 void setRelateToIPDevice()
          Sets the qualifies method to return true to all NodeEvent that are RELATE_TO_IPDEVICE sub-events.
 void setRelateToNode()
          Sets the qualifies method to return true to all NodeEvent that are RELATE_TO_NODE sub-events.
 void setUnrelateFromIPDevice()
          Sets the qualifies method to return true to all NodeEvent that are UNRELATE_FROM_IPDEVICE sub-events.
 void setUnrelateFromNode()
          Sets the qualifies method to return true to all NodeEvent that are UNRELATE_FROM_NODE sub-events.
 void writeExternal(ObjectOutput out)
          Externalizable interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEventQualifier

public NodeEventQualifier()
This constructor is needed for externalization

Method Detail

clearAll

public void clearAll()
Clears all options that have been set.


qualifies

public boolean qualifies(ProvAPIEvent event)
Returns true if the implementation has determined that this event satisfies the requirements to notify the associated listener.

Specified by:
qualifies in class Qualifier
Parameters:
event - the object representing the event has occurred.
Returns:
true if the implementation has determined that this event satisfies the requirements to notify the associated listener.

setNewNode

public void setNewNode()
Sets the qualifies method to return true to all NodeEvent that are NEW_NODE sub-events.

See Also:
NodeListener.NEW_NODE

setDeletedNode

public void setDeletedNode()
Sets the qualifies method to return true to all NodeEvent that are DELETED_NODE sub-events.

See Also:
NodeListener.DELETED_NODE

setChangedNode

public void setChangedNode()
Sets the qualifies method to return true to all NodeEvent that are CHANGED_NODE sub-events.

See Also:
NodeListener.CHANGED_NODE

setRelateToNode

public void setRelateToNode()
Sets the qualifies method to return true to all NodeEvent that are RELATE_TO_NODE sub-events.

See Also:
NodeListener.RELATE_TO_NODE

setRelateToIPDevice

public void setRelateToIPDevice()
Sets the qualifies method to return true to all NodeEvent that are RELATE_TO_IPDEVICE sub-events.

See Also:
NodeListener.RELATE_TO_IPDEVICE

setUnrelateFromNode

public void setUnrelateFromNode()
Sets the qualifies method to return true to all NodeEvent that are UNRELATE_FROM_NODE sub-events.

See Also:
NodeListener.UNRELATE_FROM_NODE

setUnrelateFromIPDevice

public void setUnrelateFromIPDevice()
Sets the qualifies method to return true to all NodeEvent that are UNRELATE_FROM_IPDEVICE sub-events.

See Also:
NodeListener.UNRELATE_FROM_IPDEVICE

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Externalizable interface. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class Qualifier
Parameters:
in - the stream to read data from in order to restore the object
Throws:
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being restored cannot be found.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Externalizable interface. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class Qualifier
Parameters:
out - the stream to write the object to
Throws:
IOException - Includes any I/O exceptions that may occur