CollectingSCR.java :  » Web-Framework » RSF » uk » org » ponder » rsf » renderer » scr » Java Open Source

Java Open Source » Web Framework » RSF 
RSF » uk » org » ponder » rsf » renderer » scr » CollectingSCR.java
/*
 * Created on 18 Sep 2006
 */
package uk.org.ponder.rsf.renderer.scr;

import uk.org.ponder.rsf.template.XMLLump;
import uk.org.ponder.rsf.template.XMLLumpList;
import uk.org.ponder.xml.XMLWriter;

/** A static component renderer that can incorporate markup "collected" from
 * elsewhere in the template tree. 
 * @author Antranig Basman (antranig@caret.cam.ac.uk)
 *
 */
public interface CollectingSCR extends StaticComponentRenderer {
  /** Return an array of names of "contributing" SCRs,
   * consisting of the text following {@link XMLLump#SCR_CONTRIBUTE_PREFIX}
   * in the rsf:id of the contribution marker.
   * 
   */
  public String[] getCollectingNames();
  /** @see BasicSCR for details of behaviour.
   * @param collected The list of XMLLump items corresponding to the collected
   * markup that should be incorporated into the rendering of the peering tag.
   */
  public int render(XMLLump lump, XMLLumpList collected, XMLWriter xmlw);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.