1 54 package com.mullassery.act; 55 56 61 public class ACTTask { 62 private String description; 63 private String id; 64 private String name; 65 private Class taskClass; 66 67 public ACTTask(String id, Class taskClass) { 68 this(id, taskClass, null, null); 69 } 70 71 public ACTTask( 72 String id, 73 Class taskClass, 74 String name, 75 String description) { 76 this.id = id; 77 this.taskClass = taskClass; 78 this.name = name; 79 this.description = description; 80 } 81 82 public String getId() { 83 return this.id; 84 } 85 86 public void setId(String id) { 87 this.id = id; 88 } 89 90 public String getName() { 91 return this.name != null ? this.name : this.id; 92 } 93 94 public void setName(String name) { 95 this.name = name; 96 } 97 98 public String getDescription() { 99 if (this.description == null) 100 return this.getName() + " Task"; 101 return this.description; 102 } 103 104 public void setDescription(String description) { 105 this.description = description; 106 } 107 108 public Class getTaskClass() { 109 return this.taskClass; 110 } 111 112 public void setTaskClass(Class taskClass) { 113 this.taskClass = taskClass; 114 } 115 } 116 | Popular Tags |