|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Compatability.java | 50% | 40% | 33.3% | 40% |
|
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.spice.extension;
|
|
9 |
/**
|
|
10 |
* Enum used in {@link Extension} to indicate the compatability
|
|
11 |
* of one extension to another. See {@link Extension} for instances
|
|
12 |
* of object.
|
|
13 |
*
|
|
14 |
* @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
|
|
15 |
* @version $Revision: 1.1 $ $Date: 2003/12/02 07:56:59 $
|
|
16 |
* @see Extension
|
|
17 |
*/
|
|
18 |
public final class Compatability |
|
19 |
{ |
|
20 |
/**
|
|
21 |
* A string representaiton of compatability level.
|
|
22 |
*/
|
|
23 |
private final String m_name;
|
|
24 |
/**
|
|
25 |
* Create a compatability enum with specified name.
|
|
26 |
*
|
|
27 |
* @param name the name of compatability level
|
|
28 |
*/
|
|
29 | 2 |
Compatability( final String name ) |
30 |
{ |
|
31 | 2 |
if( null == name ) |
32 |
{ |
|
33 | 0 |
throw new NullPointerException( "name" ); |
34 |
} |
|
35 | 2 |
m_name = name; |
36 |
} |
|
37 |
/**
|
|
38 |
* Return name of compatability level.
|
|
39 |
*
|
|
40 |
* @return the name of compatability level
|
|
41 |
*/
|
|
42 | 0 |
public String getName()
|
43 |
{ |
|
44 | 0 |
return m_name;
|
45 |
} |
|
46 |
/**
|
|
47 |
* Return name of compatability level.
|
|
48 |
*
|
|
49 |
* @return the name of compatability level
|
|
50 |
*/
|
|
51 | 0 |
public String toString()
|
52 |
{ |
|
53 | 0 |
return m_name;
|
54 |
} |
|
55 |
} |
|
56 |
|
|