1. /*
  2. * Copyright 2002,2004 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. * Enum used in (@link Extension) to indicate the compatibility
  20. * of one extension to another. See (@link Extension) for instances
  21. * of object.
  22. *
  23. * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  24. * This file is from excalibur.extension package. Dont edit this file
  25. * directly as there is no unit tests to make sure it is operational
  26. * in ant. Edit file in excalibur and run tests there before changing
  27. * ants file.
  28. * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  29. *
  30. * @version $Revision: 1.4.2.4 $ $Date: 2004/03/09 17:01:45 $
  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. * Create a compatibility enum with specified name.
  40. *
  41. * @param name the name of compatibility level
  42. */
  43. Compatibility(final String name) {
  44. this.name = name;
  45. }
  46. /**
  47. * Return name of compatibility level.
  48. *
  49. * @return the name of compatibility level
  50. */
  51. public String toString() {
  52. return name;
  53. }
  54. }