View Javadoc

1   package net.sf.msplice.model;
2   
3   import java.util.ArrayList;
4   import java.util.Enumeration;
5   import java.util.List;
6   
7   import net.sf.msplice.SpliceException;
8   import net.sf.msplice.visitor.IVisitor;
9   
10  import org.apache.commons.logging.Log;
11  import org.apache.commons.logging.LogFactory;
12  
13  public class SpliceConfig extends CompositeElement {
14  
15  	private Log LOG = LogFactory.getLog(SpliceConfig.class);
16  
17  	// --------------------------------------------------------------------------------
18  	// ctors
19  	// --------------------------------------------------------------------------------
20  
21  	// --------------------------------------------------------------------------------
22  	// visitable implementation
23  	// --------------------------------------------------------------------------------
24  
25  	public Object accept(IVisitor visitor) throws SpliceException {
26  		List<Object> resultList = new ArrayList<Object>();
27  
28  		for (Enumeration<BusinessProperty> enumeration = childBusinessProps
29  				.elements(); enumeration.hasMoreElements();) {
30  			
31  			Object result = enumeration.nextElement().accept(visitor); 
32  			resultList.add(result);
33  
34  			LOG.debug("Result of the BusinessElement visit: " + result);
35  		}
36  
37  		return resultList;
38  	}
39  
40  	// --------------------------------------------------------------------------------
41  	//  
42  	// --------------------------------------------------------------------------------
43  
44  	// --------------------------------------------------------------------------------
45  	// getters and setters
46  	// --------------------------------------------------------------------------------
47  
48  	// --------------------------------------------------------------------------------
49  	// private helpers
50  	// --------------------------------------------------------------------------------
51  
52  }