com.microsoft.tfs.core.checkinpolicies.events
Class PolicyStateChangedEvent

java.lang.Object
  extended by com.microsoft.tfs.core.clients.CoreClientEvent
      extended by com.microsoft.tfs.core.checkinpolicies.events.PolicyStateChangedEvent

public final class PolicyStateChangedEvent
extends CoreClientEvent

Event fired when the state of a PolicyInstance object has changed because of initialization or evaluation.

Since:
TEE-SDK-10.1
Thread-safety:
immutable

Constructor Summary
PolicyStateChangedEvent(EventSource source, PolicyFailure[] failures, PolicyInstance policy)
          Describes the policy state change.
 
Method Summary
 PolicyFailure[] getFailures()
           
 PolicyInstance getPolicy()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.CoreClientEvent
getEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyStateChangedEvent

public PolicyStateChangedEvent(EventSource source,
                               PolicyFailure[] failures,
                               PolicyInstance policy)
Describes the policy state change.

Parameters:
source - the source of the change (must not be null)
failures - the failures that accompany the change (may be null).
policy - the policy that changed (must not be null)
Method Detail

getFailures

public PolicyFailure[] getFailures()
Returns:
the set of failures that now exist, after this change. An emtpy array signifies no failures.

getPolicy

public PolicyInstance getPolicy()
Returns:
the policy that changed.


© 2015 Microsoft. All rights reserved.