PageRenderTime 35ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-5-pre1/net/sourceforge/jarbundler/JavaProperty.java

#
Java | 64 lines | 23 code | 15 blank | 26 comment | 4 complexity | 03cb1110e059682b1bd25febb6a329a4 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. package net.sourceforge.jarbundler;
  2. public class JavaProperty {
  3. /** The JavaProperties' name and value */
  4. private String name = null;
  5. private String value = null;
  6. /**
  7. * Construct an empty JavaProperty
  8. */
  9. public JavaProperty() {
  10. }
  11. /**
  12. * Set the JavaProperties's name; required
  13. *
  14. * @param name
  15. * the JavaProperties' name
  16. */
  17. public void setName(String name) {
  18. this.name = name;
  19. }
  20. /**
  21. * Get the JavaProperties' name
  22. *
  23. * @return the JavaProperties' name.
  24. */
  25. public String getName() {
  26. if (this.name == null)
  27. return null;
  28. return this.name.trim();
  29. }
  30. /**
  31. * Set the JavaProperties' value; required
  32. *
  33. * @param value
  34. * the JavaProperties' value
  35. */
  36. public void setValue(String value) {
  37. this.value = value;
  38. }
  39. /**
  40. * Get the JavaProperties' value.
  41. *
  42. * @return the JavaProperties' value.
  43. */
  44. public String getValue() {
  45. if (this.value == null)
  46. return null;
  47. return this.value.trim();
  48. }
  49. }