]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/PrimitiveSpecAttribute.java
FlowNamespace extended (flows in flows, param in arg)
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / PrimitiveSpecAttribute.java
1 package org.argeo.slc.core.execution;
2
3 import org.argeo.slc.SlcException;
4
5 public class PrimitiveSpecAttribute extends AbstractSpecAttribute implements
6 PrimitiveAccessor {
7 private String type = "string";
8 private Object value = null;
9
10 public Object getValue() {
11 return value;
12 }
13
14 public void setValue(Object value) {
15 this.value = value;
16 }
17
18 public String getType() {
19 return type;
20 }
21
22 public void setType(String type) {
23 // check whether type is recognized.
24 if (PrimitiveUtils.typeAsClass(type) == null)
25 throw new SlcException("Unrecognized type " + type);
26 this.type = type;
27
28 }
29 }