com.xebialabs.deployit
Interface Change<T extends java.io.Serializable>

Type Parameters:
T - the class of the configuration item being changed.

public interface Change<T extends java.io.Serializable>

A changes on the repository to either add, modify or delete a configuration item.


Method Summary
 java.lang.Class<T> getConfigurationItemClass()
          The class of the CI that is being changed.
 T getNewRevision()
          Returns the configuration item as it will be after the change.
 T getOldRevision()
          Returns the configuration item as it was before the change.
 boolean isAddition()
          Returns true iff this change is an addition
 boolean isDeletion()
          Returns true iff this change is a deletion.
 boolean isModification()
          Return true iff this change is a modication.
 

Method Detail

getConfigurationItemClass

java.lang.Class<T> getConfigurationItemClass()
The class of the CI that is being changed.

Returns:
the class object of the CI under change.

isAddition

boolean isAddition()
Returns true iff this change is an addition


isModification

boolean isModification()
Return true iff this change is a modication.


isDeletion

boolean isDeletion()
Returns true iff this change is a deletion.


getOldRevision

T getOldRevision()
Returns the configuration item as it was before the change.

Returns:
the CI before the change or null if this change is an addition.

getNewRevision

T getNewRevision()
Returns the configuration item as it will be after the change.

Returns:
the CI after the change or null if this change is a deletion.


Copyright © 2010. All Rights Reserved.