X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FAbstractSpecAttribute.java;h=abe0451148edf725a0713a3892ee425a6de3d0d5;hb=32f9566efa0d0ce29b31ee0779faf2b42f46321a;hp=cf13507cf668c24c47a8d30373e4b598bf554cf8;hpb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/AbstractSpecAttribute.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/AbstractSpecAttribute.java index cf13507cf..abe045114 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/AbstractSpecAttribute.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/AbstractSpecAttribute.java @@ -16,29 +16,34 @@ package org.argeo.slc.core.execution; +import java.io.Serializable; + import org.argeo.slc.execution.ExecutionSpecAttribute; -public abstract class AbstractSpecAttribute implements ExecutionSpecAttribute { - private Boolean isParameter = false; - private Boolean isFrozen = false; +/** Canonical implementation of the execution spec attribute booleans. */ +public abstract class AbstractSpecAttribute implements ExecutionSpecAttribute, + Serializable { + private static final long serialVersionUID = 6494963738891709440L; + private Boolean isImmutable = false; + private Boolean isConstant = false; private Boolean isHidden = false; /** Has to be set at instantiation */ - public Boolean getIsParameter() { - return isParameter; + public Boolean getIsImmutable() { + return isImmutable; } - public void setIsParameter(Boolean isParameter) { - this.isParameter = isParameter; + public void setIsImmutable(Boolean isImmutable) { + this.isImmutable = isImmutable; } /** Cannot be overridden at runtime */ - public Boolean getIsFrozen() { - return isFrozen; + public Boolean getIsConstant() { + return isConstant; } - public void setIsFrozen(Boolean isFinal) { - this.isFrozen = isFinal; + public void setIsConstant(Boolean isConstant) { + this.isConstant = isConstant; } /** Should not be shown to the end user */ @@ -50,4 +55,27 @@ public abstract class AbstractSpecAttribute implements ExecutionSpecAttribute { this.isHidden = isHidden; } + /* + * DEPRECATED + */ + /** @deprecated use {@link #getIsImmutable()} instead */ + public Boolean getIsParameter() { + return isImmutable; + } + + /** @deprecated use {@link #getIsConstant()} instead */ + public Boolean getIsFrozen() { + return isConstant; + } + + /** @deprecated use {@link #setIsImmutable(Boolean)} instead */ + public void setIsParameter(Boolean isParameter) { + this.isImmutable = isParameter; + } + + /** @deprecated use {@link #setIsConstant(Boolean)} instead */ + public void setIsFrozen(Boolean isFrozen) { + this.isConstant = isFrozen; + } + }