01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.tools.ant.taskdefs.optional.extension;
19:
20: /**
21: * Enum used in (@link Extension) to indicate the compatibility
22: * of one extension to another. See (@link Extension) for instances
23: * of object.
24: *
25: * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
26: * This file is from excalibur.extension package. Dont edit this file
27: * directly as there is no unit tests to make sure it is operational
28: * in ant. Edit file in excalibur and run tests there before changing
29: * ants file.
30: * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
31: *
32: * @see Extension
33: */
34: public final class Compatibility {
35: /**
36: * A string representaiton of compatibility level.
37: */
38: private final String name;
39:
40: /**
41: * Create a compatibility enum with specified name.
42: *
43: * @param name the name of compatibility level
44: */
45: Compatibility(final String name) {
46: this .name = name;
47: }
48:
49: /**
50: * Return name of compatibility level.
51: *
52: * @return the name of compatibility level
53: */
54: public String toString() {
55: return name;
56: }
57: }
|