1 16 package org.apache.cocoon.forms.formmodel; 17 18 import org.apache.cocoon.forms.util.DomHelper; 19 import org.w3c.dom.Element ; 20 21 26 public final class UnionDefinitionBuilder extends AbstractContainerDefinitionBuilder { 27 28 public WidgetDefinition buildWidgetDefinition(Element element) throws Exception { 29 UnionDefinition definition = new UnionDefinition(); 30 super.setupDefinition(element, definition); 31 definition.setCaseWidgetId(DomHelper.getAttribute(element, "case")); 32 setDisplayData(element, definition); 33 34 setupContainer(element,"widgets",definition); 35 36 definition.makeImmutable(); 37 return definition; 38 } 39 } 41 42 | Popular Tags |