Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mrbook.utils
Class CvsId  view CvsId download CvsId.java

java.lang.Object
  extended byorg.mrbook.utils.CvsId

public class CvsId
extends java.lang.Object

This class is a helper class to analyse classes with a CVSID attribute defined. The CVSID attribute ( as defined as well in the this class) allows dynamic discovery of the revision of a class.


Nested Class Summary
 class CvsId.NoCvsIdException
           
 class CvsId.NotACvsIdException
           
 
Field Summary
 java.lang.String author
           
static java.lang.String CVSID
           
 java.lang.String date
           
 java.lang.String filename
           
static java.util.regex.Pattern pattern
           
 java.lang.String revision
           
 java.lang.String tag
           
 
Constructor Summary
CvsId(java.lang.Class classe)
           
CvsId(java.lang.Object obj)
           
CvsId(java.lang.String cvsid)
           
 
Method Summary
static java.lang.String forClass(java.lang.Class classe)
           
static java.lang.String forClass(java.lang.String classname)
           
static void main(java.lang.String[] args)
           
 void setCvsId(java.lang.String cvsid)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVSID

public static final java.lang.String CVSID
See Also:
Constant Field Values

pattern

public static java.util.regex.Pattern pattern

filename

public java.lang.String filename

revision

public java.lang.String revision

date

public java.lang.String date

author

public java.lang.String author

tag

public java.lang.String tag
Constructor Detail

CvsId

public CvsId(java.lang.String cvsid)
      throws CvsId.NotACvsIdException

CvsId

public CvsId(java.lang.Class classe)
      throws CvsId.NotACvsIdException,
             CvsId.NoCvsIdException

CvsId

public CvsId(java.lang.Object obj)
      throws CvsId.NotACvsIdException,
             CvsId.NoCvsIdException
Method Detail

setCvsId

public void setCvsId(java.lang.String cvsid)
              throws CvsId.NotACvsIdException

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


usage

public static void usage()

forClass

public static java.lang.String forClass(java.lang.Class classe)

forClass

public static java.lang.String forClass(java.lang.String classname)
                                 throws java.lang.ClassNotFoundException

main

public static void main(java.lang.String[] args)