1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.fatwire.gst.foundation.facade.runtag.asset;
18
19 import com.fatwire.gst.foundation.facade.runtag.AbstractTagRunner;
20
21
22
23
24
25
26
27 public final class Load extends AbstractTagRunner {
28
29 public Load() {
30 super("ASSET.LOAD");
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 setObjectId(String s) {
65
66 if (s == null || s.length() == 0) {
67 throw new IllegalArgumentException("Invalid objectid string: " + s);
68 }
69 this.set("OBJECTID", s);
70 }
71
72
73
74
75
76
77 public void setField(String s) {
78
79 if (s == null || s.length() == 0) {
80 throw new IllegalArgumentException("Invalid field string: " + s);
81 }
82 this.set("FIELD", s);
83 }
84
85
86
87
88
89
90 public void setValue(String s) {
91
92 if (s == null || s.length() == 0) {
93 throw new IllegalArgumentException("Invalid value string: " + s);
94 }
95 this.set("VALUE", s);
96 }
97
98
99
100
101
102
103 public void setSite(String s) {
104
105 if (s == null || s.length() == 0) {
106 throw new IllegalArgumentException("Invalid site string: " + s);
107 }
108 this.set("SITE", s);
109 }
110
111
112
113
114
115
116 public void setDepType(String s) {
117
118 if (s == null || s.length() == 0 || !s.equals("exact") && !s.equals("exists") && !s.equals("greater")
119 && !s.equals("none")) {
120 throw new IllegalArgumentException("Invalid escape string: " + s);
121 }
122 this.set("DEPTYPE", s);
123 }
124
125
126
127
128
129
130 public void setEditable(String s) {
131
132 if (s == null || s.length() == 0 || !s.equals("true") && !s.equals("false")) {
133 throw new IllegalArgumentException("Invalid editable string: " + s);
134 }
135 this.set("EDITABLE", s);
136 }
137
138
139
140
141
142
143 public void setOption(String s) {
144
145 if (s == null || s.length() == 0 || !s.equals("editable") && !s.equals("readonly")
146 && !s.equals("readonly_complete")) {
147 throw new IllegalArgumentException("Invalid option string: " + s);
148 }
149 this.set("OPTION", s);
150 }
151
152
153
154
155
156
157 public void setFlushOnVoid(String s) {
158
159 if (s == null || s.length() == 0 || !s.equals("true") && !s.equals("false")) {
160 throw new IllegalArgumentException("Invalid flushonvoid string: " + s);
161 }
162 this.set("FLUSHONVOID", s);
163 }
164 }