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

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

public class StringRevision
     
     
extends Object
implements Revision, Serializable

Implementation for a simple revision string.

Author:
Robert Reiner
See Also:
Serialized Form

Constructor Summary
StringRevision(String id, Date date)
          Default constructor.
 
Method Summary
 Date getDate()
          Returns the revision date.
 String getId()
          Returns the ID of the revision.
 String toString()
          Returns the revision information as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringRevision

public StringRevision(String id,
                      Date date)
Default constructor.

Parameters:
id - the ID of the revision.
date - the revision date.
Method Detail

getId

public final String getId()
Returns the ID of the revision.

Specified by:
getId in interface Revision
Returns:
the ID of the revision.

getDate

public final Date getDate()
Returns the revision date.

Specified by:
getDate in interface Revision
Returns:
the revision date.

toString

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

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


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