1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.fatwire.gst.foundation.facade.runtag.assetset;
18
19 import com.fatwire.gst.foundation.facade.runtag.AbstractTagRunner;
20
21
22
23
24
25
26
27 public final class SetAsset extends AbstractTagRunner {
28
29 public SetAsset() {
30 super("ASSETSET.SETASSET");
31 }
32
33
34
35
36
37
38 public void setName(String s) {
39
40 if (s == null || s.length() == 0) {
41 throw new IllegalArgumentException("Invalid name string: " + s);
42 }
43 this.set("NAME", s);
44 }
45
46
47
48
49
50
51 public void setType(String s) {
52
53 if (s == null || s.length() == 0) {
54 throw new IllegalArgumentException("Invalid type string: " + s);
55 }
56 this.set("TYPE", s);
57 }
58
59
60
61
62
63
64 public void setId(String s) {
65
66 if (s == null || s.length() == 0) {
67 throw new IllegalArgumentException("Invalid Id string: " + s);
68 }
69 this.set("ID", s);
70 }
71
72
73
74
75
76
77 public void setLocale(String s) {
78
79 if (s == null || s.length() == 0) {
80 throw new IllegalArgumentException("Invalid locale string: " + s);
81 }
82 this.set("LOCALE", s);
83 }
84
85
86
87
88
89
90 public void setDeptype(String s) {
91
92 if (s == null || s.length() == 0 || !s.equals("exact") && !s.equals("exists") && !s.equals("none")) {
93 throw new IllegalArgumentException("Invalid deptype string: " + s);
94 }
95 this.set("DEPTYPE", s);
96 }
97
98 }