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 | */
|
---|
17 | package org.apache.tools.ant.taskdefs.optional.extension;
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Enum used in (@link Extension) to indicate the compatibility
|
---|
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 | */
|
---|
33 | public final class Compatibility {
|
---|
34 | /**
|
---|
35 | * A string representaiton of compatibility level.
|
---|
36 | */
|
---|
37 | private final String name;
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * Create a compatibility enum with specified name.
|
---|
41 | *
|
---|
42 | * @param name the name of compatibility level
|
---|
43 | */
|
---|
44 | Compatibility(final String name) {
|
---|
45 | this.name = name;
|
---|
46 | }
|
---|
47 |
|
---|
48 | /**
|
---|
49 | * Return name of compatibility level.
|
---|
50 | *
|
---|
51 | * @return the name of compatibility level
|
---|
52 | */
|
---|
53 | public String toString() {
|
---|
54 | return name;
|
---|
55 | }
|
---|
56 | }
|
---|