ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package org.jbpm.pvm.internal.wire.descriptor;
 
import org.jbpm.pvm.internal.wire.Descriptor;
import org.jbpm.pvm.internal.wire.WireContext;
 
/**
 *
 * <p>This {@link Descriptor} creates a String.</p>
 *
 * @author Tom Baeyens
 * @author Guillaume Porcher (documentation)
 *
 * @see Descriptor
 */
public class StringDescriptor extends AbstractDescriptor implements Descriptor {
 
  private static final long serialVersionUID = 1L;
 
  String text;
 
  public StringDescriptor() {
  }
 
  public StringDescriptor(String value) {
    setValue(value);
  }
 
  public StringDescriptor(String name, String value) {
    setName(name);
    setValue(value);
  }
 
  public Object construct(WireContext factory) {
    return text;
  }
 
  public void setValue(String value) {
    this.text = value;
  }
}