org.semwebcentral.sweetrules.infrastructure
Interface ISweetCanonicalVersionNumber

All Superinterfaces:
java.lang.Cloneable, java.lang.Comparable
All Known Implementing Classes:
SweetVersionNumber

public interface ISweetCanonicalVersionNumber
extends java.lang.Comparable, java.lang.Cloneable

This is a generic interface to represent a version number Since it extends Comparable any implementation should implement compareTo

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Method Summary
 java.lang.Object clone()
          The clone method to clone this object
 java.lang.Object getNativeVersionNumber()
          Retrieves the version number in the native format
 void print()
          The print method to print the version number
 void setNativeVersionNumber(java.lang.Object versionNumber)
          Set the full version number including the major and the minor versions if any.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

setNativeVersionNumber

public void setNativeVersionNumber(java.lang.Object versionNumber)
Set the full version number including the major and the minor versions if any. The version number can be any object such as Integer, String etc which may or may not have an implementation of Comparable

Parameters:
versionNumber - The version number in the native format

getNativeVersionNumber

public java.lang.Object getNativeVersionNumber()
Retrieves the version number in the native format

Returns:
The version number in the native format

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone method to clone this object

Returns:
The cloned object
Throws:
java.lang.CloneNotSupportedException - if an error occurs

print

public void print()
The print method to print the version number