You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ActionInfo.java 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright 1999-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. /* $Id$ */
  17. package org.apache.fop.plan;
  18. import java.util.Date;
  19. public class ActionInfo {
  20. public static final int TASK = 1;
  21. public static final int MILESTONE = 2;
  22. public static final int GROUPING = 3;
  23. private Date startDate;
  24. private Date endDate;
  25. private String owner;
  26. private String label;
  27. private int type = TASK;
  28. private String dependant = "";
  29. public void setType(int t) {
  30. type = t;
  31. }
  32. public int getType() {
  33. return type;
  34. }
  35. public void setLabel(String str) {
  36. label = str;
  37. }
  38. public void setOwner(String str) {
  39. owner = str;
  40. }
  41. public void setStartDate(Date sd) {
  42. startDate = sd;
  43. if (endDate == null) {
  44. endDate = startDate;
  45. }
  46. }
  47. public void setEndDate(Date ed) {
  48. endDate = ed;
  49. }
  50. public String getLabel() {
  51. return label;
  52. }
  53. public String getOwner() {
  54. return owner;
  55. }
  56. public Date getStartDate() {
  57. return startDate;
  58. }
  59. public Date getEndDate() {
  60. return endDate;
  61. }
  62. }