1 37 package org.webharvest.runtime.variables; 38 39 import java.util.ArrayList ; 40 import java.util.List ; 41 42 45 public class EmptyVariable implements IVariable { 46 47 public static final String EMPTY_VALUE_OBJECT = ""; 48 49 public EmptyVariable() { 50 } 51 52 public String getType() { 53 return Types.TYPE_EMPTY; 54 } 55 56 public String toString() { 57 return EMPTY_VALUE_OBJECT; 58 } 59 60 public byte[] toBinary() { 61 return new byte[] {}; 62 } 63 64 public List toList() { 65 return new ArrayList (); 66 } 67 68 public String toXml() { 69 return EMPTY_VALUE_OBJECT; 70 } 71 72 public String toText() { 73 return ""; 74 } 75 76 public boolean isEmpty() { 77 return true; 78 } 79 80 public Object getWrappedObject() { 81 return EMPTY_VALUE_OBJECT; 82 } 83 84 } | Popular Tags |