View Javadoc

1   /*
2    * Copyright 2008 FatWire Corporation. All Rights Reserved.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package com.fatwire.gst.foundation.facade.runtag.asset;
18  
19  import com.fatwire.gst.foundation.facade.runtag.AbstractTagRunner;
20  
21  public abstract class AbstractAssetLoad extends AbstractTagRunner {
22  
23      public static final String DEPTYPE_EXACT = "exact";
24      public static final String DEPTYPE_EXISTS = "exists";
25      public static final String DEPTYPE_GREATER = "greater";
26      public static final String DEPTYPE_NONE = "none";
27  
28      public static final String OPTION_EDITABLE = "editable";
29      public static final String OPTION_READ_ONLY = "readonly";
30      public static final String OPTION_READ_ONLY_COMPLETE = "readonly_complete";
31  
32      public AbstractAssetLoad() {
33          super("asset.load");
34      }
35  
36      public void setName(final String name) {
37          this.set("NAME", name);
38      }
39  
40      public void setAssetType(final String type) {
41          this.set("TYPE", type);
42      }
43  
44      public void setSite(final String site) {
45          this.set("SITE", site);
46      }
47  
48      public void setDepType(final String type) {
49          this.set("DEPTYPE", type);
50      }
51  
52      public void setEditable(final boolean value) {
53          this.set("EDITABLE", value);
54      }
55  
56      public void setOption(final String option) {
57          this.set("OPTION", option);
58      }
59  
60      public void setFlushOnVoid(final boolean flush) {
61          this.set("FLUSHONVOID", flush);
62      }
63  
64  }