1 37 package org.webharvest.definition; 38 39 import org.webharvest.utils.CommonUtil; 40 41 44 public class FileDef extends BaseElementDef { 45 46 private String action; 47 private String path; 48 private String type; 49 private String charset; 50 51 public FileDef(XmlNode xmlNode) { 52 super(xmlNode); 53 54 this.action = (String ) xmlNode.get("action"); 55 this.path = CommonUtil.adaptFilename( (String ) xmlNode.get("path") ); 56 this.type = (String ) xmlNode.get("type"); 57 this.charset = (String ) xmlNode.get("charset"); 58 } 59 60 public String getAction() { 61 return action; 62 } 63 64 public String getPath() { 65 return CommonUtil.adaptFilename(path); 66 } 67 68 public String getType() { 69 return type; 70 } 71 72 public String getCharset() { 73 return charset; 74 } 75 76 } 77 | Popular Tags |