pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.model
Class AbstractVersion<T>

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.component.statistics.model.AbstractVersion<T>
Type Parameters:
T - the type of the match; see: AbstractVersion<T>.isMatch(T)
All Implemented Interfaces:
java.io.Serializable, INamed
Direct Known Subclasses:
RegexVersion

@MappedSuperclass
public abstract class AbstractVersion<T>
extends AbstractNamedEntity

An abstract base class to derive a statistical entity from, which represents a version.

To be removed if no further sub-classes are to be derived from AbstractVersion.

Version:
$Revision: 1548 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
AbstractVersion()
           
 
Method Summary
abstract  boolean isMatch(T match)
           
 void setName(java.lang.String n)
          Sets the display name.
 java.lang.String toString()
          Returns a string representation of the Version.
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity
getName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractVersion

public AbstractVersion()
Method Detail

setName

public final void setName(java.lang.String n)
Sets the display name.

Overrides:
setName in class AbstractNamedEntity
Parameters:
n - the name
Throws:
java.lang.IllegalArgumentException - if the given name is null or empty string
See Also:
INameable.setName(java.lang.String)

isMatch

public abstract boolean isMatch(T match)
Parameters:
match - the <T> to match
Returns:
true if and only if the given >T< matches, false otherwise

toString

public java.lang.String toString()
Returns a string representation of the Version.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the Version