1 package org.sapia.magnet.domain; 2 3 import org.sapia.magnet.render.AbstractRenderable; 6 import org.sapia.magnet.render.MagnetContext; 7 import org.sapia.magnet.render.RenderingException; 8 9 10 21 public class Include extends AbstractRenderable { 22 23 27 28 private String _thePattern; 29 30 34 37 public Include() { 38 } 39 40 45 public Include(String aPattern) { 46 _thePattern = aPattern; 47 } 48 49 53 58 public String getPattern() { 59 return _thePattern; 60 } 61 62 66 71 public void setPattern(String aPattern){ 72 _thePattern = aPattern; 73 } 74 75 79 85 public void render(MagnetContext aContext) throws RenderingException { 86 _thePattern = resolveValue(aContext, _thePattern); 87 } 88 89 94 public String toString() { 95 StringBuffer aBuffer = new StringBuffer (super.toString()); 96 aBuffer.append("[pattern=").append(_thePattern). 97 append("]"); 98 99 return aBuffer.toString(); 100 } 101 } 102 | Popular Tags |