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