1 28 29 package com.idaremedia.antx.condition; 30 31 import java.util.Map ; 32 33 import org.apache.tools.ant.Project; 34 35 import com.idaremedia.antx.FlexString; 36 37 47 48 public final class ExternalPropertyDef extends FlexString 49 { 50 54 public ExternalPropertyDef() 55 { 56 super(); 57 setIsProperty(true); 58 } 59 60 61 67 public ExternalPropertyDef(Project P) 68 { 69 this(); 70 require_(P!=null,"ctor- nonzro proj"); 71 setProject(P); 72 } 73 74 75 79 public void set(Map.Entry definition) 80 { 81 require_(definition!=null,"set- nonzro defn"); 82 set(definition.getKey().toString()); 83 setTargetString(definition.getValue().toString()); 84 } 85 86 87 91 public void setTargetString(String value) 92 { 93 m_predefValue = value; 94 } 95 96 97 101 public String sourceString(Project P) 102 { 103 return get(); 104 } 105 106 107 111 public String targetString(Project P, String source) 112 { 113 return m_predefValue; 114 } 115 116 117 private String m_predefValue; 118 } 119 120 121 | Popular Tags |