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 Compatability( final String name )
30 {
31 if( null == name )
32 {
33 throw new NullPointerException( "name" );
34 }
35 m_name = name;
36 }
37 /***
38 * Return name of compatability level.
39 *
40 * @return the name of compatability level
41 */
42 public String getName()
43 {
44 return m_name;
45 }
46 /***
47 * Return name of compatability level.
48 *
49 * @return the name of compatability level
50 */
51 public String toString()
52 {
53 return m_name;
54 }
55 }
This page was automatically generated by Maven