source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatability.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 1.8 KB
Line 
1/*
2 * Copyright 2002,2004-2005 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17package org.apache.tools.ant.taskdefs.optional.extension;
18
19/**
20 * Enum used in (@link Extension) to indicate the compatability
21 * of one extension to another. See (@link Extension) for instances
22 * of object.
23 *
24 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
25 * This file is from excalibur.extension package. Dont edit this file
26 * directly as there is no unit tests to make sure it is operational
27 * in ant. Edit file in excalibur and run tests there before changing
28 * ants file.
29 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
30 *
31 * @see Extension
32 */
33public final class Compatability {
34 /**
35 * A string representaiton of compatability level.
36 */
37 private final String name;
38
39 /**
40 * Create a compatability enum with specified name.
41 *
42 * @param name the name of compatability level
43 */
44 Compatability(final String name) {
45 this.name = name;
46 }
47
48 /**
49 * Return name of compatability level.
50 *
51 * @return the name of compatability level
52 */
53 public String toString() {
54 return name;
55 }
56}
Note: See TracBrowser for help on using the repository browser.