de.smartics.maven.plugin.buildmetadata.scm.maven
Class MavenRevision

Package class diagram package MavenRevision
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.scm.maven.StringRevision
      extended by de.smartics.maven.plugin.buildmetadata.scm.maven.MavenRevision
All Implemented Interfaces:
Revision, Serializable

public final class MavenRevision
     
     
extends StringRevision

The revision implementation for the Maven SCM.

Author:
Robert Reiner
See Also:
Serialized Form

Constructor Summary
MavenRevision(ScmVersion version, Date date)
          Default constructor.
 
Method Summary
 String getType()
          Returns the type of the revision.
 String toString()
          Returns the revision information as a String.
 
Methods inherited from class de.smartics.maven.plugin.buildmetadata.scm.maven.StringRevision
getDate, getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenRevision

public MavenRevision(ScmVersion version,
                     Date date)
Default constructor.

Parameters:
version - the SCM version provided by Maven.
date - the revision date.
See Also:
StringRevision.StringRevision(java.lang.String, java.util.Date)
Method Detail

getType

public String getType()
Returns the type of the revision. May be for instance trunk, branch or tag.

Returns:
the type of the revision.

toString

public String toString()
Returns the revision information as a String.

Specified by:
toString in interface Revision
Overrides:
toString in class StringRevision
Returns:
the string representation of the revision.


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.