|
|
@@ -0,0 +1,45 @@ |
|
|
|
/* |
|
|
|
* Copyright (C) The Apache Software Foundation. All rights reserved. |
|
|
|
* |
|
|
|
* This software is published under the terms of the Apache Software License |
|
|
|
* version 1.1, a copy of which has been included with this distribution in |
|
|
|
* the LICENSE.txt file. |
|
|
|
*/ |
|
|
|
package org.apache.tools.ant.taskdefs.optional.extension; |
|
|
|
|
|
|
|
/** |
|
|
|
* Enum used in (@link Extension) to indicate the compatability |
|
|
|
* of one extension to another. See (@link Extension) for instances |
|
|
|
* of object. |
|
|
|
* |
|
|
|
* @author <a href="mailto:peter@apache.org">Peter Donald</a> |
|
|
|
* @version $Revision$ $Date$ |
|
|
|
* @see Extension |
|
|
|
*/ |
|
|
|
public final class Compatability |
|
|
|
{ |
|
|
|
/** |
|
|
|
* A string representaiton of compatability level. |
|
|
|
*/ |
|
|
|
private final String m_name; |
|
|
|
|
|
|
|
/** |
|
|
|
* Create a compatability enum with specified name. |
|
|
|
* |
|
|
|
* @param name the name of compatability level |
|
|
|
*/ |
|
|
|
Compatability( final String name ) |
|
|
|
{ |
|
|
|
m_name = name; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Return name of compatability level. |
|
|
|
* |
|
|
|
* @return the name of compatability level |
|
|
|
*/ |
|
|
|
public String toString() |
|
|
|
{ |
|
|
|
return m_name; |
|
|
|
} |
|
|
|
} |