View Javadoc
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.realityforge.extension; 9 10 /*** 11 * Enum used in {@link Extension} to indicate the compatability 12 * of one extension to another. See {@link Extension} for instances 13 * of object. 14 * 15 * @author <a href="mailto:peter at realityforge.org">Peter Donald</a> 16 * @version $Revision: 1.1 $ $Date: 2003/07/28 13:30:46 $ 17 * @see Extension 18 */ 19 public final class Compatability 20 { 21 /*** 22 * A string representaiton of compatability level. 23 */ 24 private final String m_name; 25 26 /*** 27 * Create a compatability enum with specified name. 28 * 29 * @param name the name of compatability level 30 */ 31 Compatability( final String name ) 32 { 33 if( null == name ) 34 { 35 throw new NullPointerException( "name" ); 36 } 37 m_name = name; 38 } 39 40 /*** 41 * Return name of compatability level. 42 * 43 * @return the name of compatability level 44 */ 45 public String getName() 46 { 47 return m_name; 48 } 49 50 /*** 51 * Return name of compatability level. 52 * 53 * @return the name of compatability level 54 */ 55 public String toString() 56 { 57 return m_name; 58 } 59 }

This page was automatically generated by Maven