]>
git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/If.java
1 package org
.argeo
.slc
.core
.execution
.tasks
;
3 import org
.argeo
.slc
.SlcException
;
5 /** Conditional execution */
6 public class If
implements Runnable
{
13 if (is
== null && not
== null)
14 throw new SlcException("No condition set");
15 if (is
!= null && not
!= null)
16 throw new SlcException("Both is and not cannot be set");
18 boolean bool
= (is
!= null ? is
: !not
);
29 public void setIs(Boolean bool
) {
33 public void setThen(Runnable then
) {
37 public void setEls(Runnable els
) {
41 public Boolean
getNot() {
45 public void setNot(Boolean not
) {