1 25 26 package org.snipsnap.render.filter.context; 27 28 import org.radeox.macro.parameter.MacroParameter; 29 import org.radeox.filter.context.BaseFilterContext; 30 import org.snipsnap.render.macro.parameter.SnipMacroParameter; 31 import org.snipsnap.render.context.SnipRenderContext; 32 import org.snipsnap.snip.Snip; 33 34 42 43 public class SnipFilterContext extends BaseFilterContext { 44 private Snip snip; 45 46 public SnipFilterContext(Snip snip) { 47 this.snip = snip; 48 } 49 50 public Snip getSnip() { 51 return snip; 52 } 53 54 public SnipRenderContext getSnipRenderContext() { 55 return (SnipRenderContext) this.context; 56 } 57 58 59 public MacroParameter getMacroParameter() { 60 return new SnipMacroParameter(this.context); 61 } 62 63 } 64 | Popular Tags |