com.ibm.datapower.wamt.clientAPI
Interface Versionable

All Known Implementing Classes:
DeploymentPolicy, Domain, Firmware

public interface Versionable

An object which can have multiple Versions. Please see the list of known implementing classes.

In general, the data associated with a version instance will be attached to the classes that implements the Version interface, not this interface. Classes that implement this interface should have a collection of references to the versions, and a way to navigate those versions.

See Also:
Version

Field Summary
static java.lang.String COPYRIGHT_2009_2010
           
static java.lang.String SCM_REVISION
           
 
Method Summary
 Version getVersion(int versionNumber)
          Get the specified Version of this Versionable object.
 Version[] getVersions()
          Get all the versions that exist of this Versionable object.
 

Field Detail

COPYRIGHT_2009_2010

static final java.lang.String COPYRIGHT_2009_2010
See Also:
Constant Field Values

SCM_REVISION

static final java.lang.String SCM_REVISION
See Also:
Constant Field Values
Method Detail

getVersions

Version[] getVersions()
                      throws DeletedException
Get all the versions that exist of this Versionable object.

This object should implement the Versionable interface, and versions of this object should implement the Version interface.

Returns:
an array of objects which describe all the versions of this object.
See Also:
getVersion(int)

getVersion

Version getVersion(int versionNumber)
                   throws DeletedException
Get the specified Version of this Versionable object. Versions are specified by a version number, which is a monotomically increasing integer that should be unique across this Versionable object.

Parameters:
versionNumber - the specified version to get of this object.
Returns:
the specified version of this object. May return null if no version of the specified number exists.
See Also:
getVersions()


© Copyright IBM Corp. 2006, 2010 All Rights Reserved.