]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.api/src/org/argeo/slc/execution/AbstractSpecAttribute.java
Upgrade all classpaths to Java 11
[gpl/argeo-slc.git] / org.argeo.slc.api / src / org / argeo / slc / execution / AbstractSpecAttribute.java
1 package org.argeo.slc.execution;
2
3 import java.io.Serializable;
4
5 /** Canonical implementation of the execution spec attribute booleans. */
6 public abstract class AbstractSpecAttribute implements ExecutionSpecAttribute,
7 Serializable {
8 private static final long serialVersionUID = 6494963738891709440L;
9 private Boolean isImmutable = false;
10 private Boolean isConstant = false;
11 private Boolean isHidden = false;
12
13 private String description;
14
15 /** Has to be set at instantiation */
16 public Boolean getIsImmutable() {
17 return isImmutable;
18 }
19
20 public void setIsImmutable(Boolean isImmutable) {
21 this.isImmutable = isImmutable;
22 }
23
24 /** Cannot be overridden at runtime */
25 public Boolean getIsConstant() {
26 return isConstant;
27 }
28
29 public void setIsConstant(Boolean isConstant) {
30 this.isConstant = isConstant;
31 }
32
33 /** Should not be shown to the end user */
34 public Boolean getIsHidden() {
35 return isHidden;
36 }
37
38 public void setIsHidden(Boolean isHidden) {
39 this.isHidden = isHidden;
40 }
41
42 /*
43 * DEPRECATED
44 */
45 /** @deprecated use {@link #getIsImmutable()} instead */
46 public Boolean getIsParameter() {
47 return isImmutable;
48 }
49
50 /** @deprecated use {@link #getIsConstant()} instead */
51 public Boolean getIsFrozen() {
52 return isConstant;
53 }
54
55 /** @deprecated use {@link #setIsImmutable(Boolean)} instead */
56 public void setIsParameter(Boolean isParameter) {
57 this.isImmutable = isParameter;
58 }
59
60 /** @deprecated use {@link #setIsConstant(Boolean)} instead */
61 public void setIsFrozen(Boolean isFrozen) {
62 this.isConstant = isFrozen;
63 }
64
65 public void setDescription(String description) {
66 this.description = description;
67 }
68
69 public String getDescription() {
70 return description;
71 }
72
73 }