1 /* 2 * ==================================================================== 3 * This software is subject to the terms of the Common Public License 4 * Agreement, available at the following URL: 5 * http://www.opensource.org/licenses/cpl.html . 6 * Copyright (C) 2003-2004 TONBELLER AG. 7 * All Rights Reserved. 8 * You must accept the terms of that agreement to use this software. 9 * ==================================================================== 10 * 11 * 12 */ 13 package com.tonbeller.wcf.component; 14 15 import org.w3c.dom.Document; 16 import org.w3c.dom.Element; 17 18 import com.tonbeller.wcf.controller.RequestContext; 19 20 21 /** 22 * A Component that may be nested inside another component. It creates an Element instead 23 * of a Document node, so multiple Element nodes may be combined in a Document. 24 */ 25 public interface NestableComponent extends Component { 26 27 // public Component getOwnerComponent(); 28 /** 29 * returns an Element with ownerDocument == <code>factory</code>. 30 */ 31 public Element render(RequestContext context, Document factory) throws Exception; 32 } 33