KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > loom > extension > Compatability


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.loom.extension;
9
10 /**
11  * Enum used in {@link Extension} to indicate the compatability of one extension
12  * to another. See {@link Extension} for instances of object.
13  *
14  * @author Peter Donald
15  * @version $Revision: 1.1 $ $Date: 2004/04/19 21:40:38 $
16  * @see Extension
17  */

18 public final class Compatability
19 {
20     /** A string representaiton of compatability level. */
21     private final String JavaDoc m_name;
22
23     /**
24      * Create a compatability enum with specified name.
25      *
26      * @param name the name of compatability level
27      */

28     Compatability( final String JavaDoc name )
29     {
30         if( null == name )
31         {
32             throw new NullPointerException JavaDoc( "name" );
33         }
34         m_name = name;
35     }
36
37     /**
38      * Return name of compatability level.
39      *
40      * @return the name of compatability level
41      */

42     public String JavaDoc getName()
43     {
44         return m_name;
45     }
46
47     /**
48      * Return name of compatability level.
49      *
50      * @return the name of compatability level
51      */

52     public String JavaDoc toString()
53     {
54         return m_name;
55     }
56 }
57
Popular Tags