Package org.alfresco.repo.module
Class ModuleVersionNumber
- java.lang.Object
-
- org.alfresco.repo.module.ModuleVersionNumber
-
- All Implemented Interfaces:
Externalizable,Serializable
public class ModuleVersionNumber extends Object implements Externalizable
The exising Alfresco VersionNumber can only be numeric. ModuleVersionNumber allows string literals in the version number. It follows maven conventions and actually uses the ComparableVersion class from the maven code base.- Author:
- Gethin James
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.artifact.versioning.ComparableVersiondelegatestatic ModuleVersionNumberVERSION_BIGstatic ModuleVersionNumberVERSION_ZERO
-
Constructor Summary
Constructors Constructor Description ModuleVersionNumber()ModuleVersionNumber(String versionString)ModuleVersionNumber(org.alfresco.util.VersionNumber versionCurrent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ModuleVersionNumber installingVersion)booleanequals(Object obj)inthashCode()voidreadExternal(ObjectInput in)StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Field Detail
-
VERSION_ZERO
public static final ModuleVersionNumber VERSION_ZERO
-
VERSION_BIG
public static final ModuleVersionNumber VERSION_BIG
-
delegate
protected org.apache.maven.artifact.versioning.ComparableVersion delegate
-
-
Constructor Detail
-
ModuleVersionNumber
public ModuleVersionNumber()
-
ModuleVersionNumber
public ModuleVersionNumber(String versionString)
-
ModuleVersionNumber
public ModuleVersionNumber(org.alfresco.util.VersionNumber versionCurrent)
-
-
Method Detail
-
compareTo
public int compareTo(ModuleVersionNumber installingVersion)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-