]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org/argeo/slc/execution/AbstractSpecAttribute.java
1 package org
.argeo
.slc
.execution
;
3 import java
.io
.Serializable
;
5 /** Canonical implementation of the execution spec attribute booleans. */
6 public abstract class AbstractSpecAttribute
implements ExecutionSpecAttribute
,
8 private static final long serialVersionUID
= 6494963738891709440L;
9 private Boolean isImmutable
= false;
10 private Boolean isConstant
= false;
11 private Boolean isHidden
= false;
13 private String description
;
15 /** Has to be set at instantiation */
16 public Boolean
getIsImmutable() {
20 public void setIsImmutable(Boolean isImmutable
) {
21 this.isImmutable
= isImmutable
;
24 /** Cannot be overridden at runtime */
25 public Boolean
getIsConstant() {
29 public void setIsConstant(Boolean isConstant
) {
30 this.isConstant
= isConstant
;
33 /** Should not be shown to the end user */
34 public Boolean
getIsHidden() {
38 public void setIsHidden(Boolean isHidden
) {
39 this.isHidden
= isHidden
;
45 /** @deprecated use {@link #getIsImmutable()} instead */
46 public Boolean
getIsParameter() {
50 /** @deprecated use {@link #getIsConstant()} instead */
51 public Boolean
getIsFrozen() {
55 /** @deprecated use {@link #setIsImmutable(Boolean)} instead */
56 public void setIsParameter(Boolean isParameter
) {
57 this.isImmutable
= isParameter
;
60 /** @deprecated use {@link #setIsConstant(Boolean)} instead */
61 public void setIsFrozen(Boolean isFrozen
) {
62 this.isConstant
= isFrozen
;
65 public void setDescription(String description
) {
66 this.description
= description
;
69 public String
getDescription() {