View Javadoc
1   package io.guixer.lang.command;
2   
3   import static com.google.common.base.Preconditions.checkNotNull;
4   
5   import io.guixer.types.StepType;
6   
7   public class ExtCommand implements Command {
8   
9   	@Override
10  	public StepType getType() {
11  
12  		return StepType.EXT;
13  	}
14  
15  	public final String namespace;
16  	public final String text;
17  
18  	@Override
19  	public String toString() {
20  
21  		return "ExtCommand: " + namespace+ " " + text;
22  	}
23  
24  	public ExtCommand(
25  		final String namespace,
26  		final String text
27  	) {
28  
29  		this.namespace = checkNotNull(namespace, "namespace");
30  		this.text = checkNotNull(text, "value");
31  	}
32  }