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.vdm;
18  
19  import com.fatwire.gst.foundation.facade.runtag.AbstractTagRunner;
20  
21  import org.apache.commons.logging.Log;
22  import org.apache.commons.logging.LogFactory;
23  
24  /**
25   * <VDM.GETALIAS KEY="keyvalue" VARNAME="varname"/>
26   * 
27   * @author Tony Field
28   * @since Sep 29, 2008
29   */
30  public class GetAlias extends AbstractTagRunner {
31  
32      protected static final Log log = LogFactory.getLog(GetAlias.class);
33  
34      public GetAlias() {
35          super("VDM.GETALIAS");
36      }
37  
38      public GetAlias(String key, String varname) {
39          this();
40          setKey(key);
41          setVarname(varname);
42      }
43  
44      public void setKey(String key) {
45          set("KEY", key);
46      }
47  
48      public void setVarname(String varname) {
49          set("VARNAME", varname);
50      }
51  }