1 package org.codehaus.plexus.maven.plugin.report;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 import java.util.List;
19
20 import org.codehaus.doxia.sink.Sink;
21 import org.jdom.Element;
22
23
24
25
26
27 public class ComponentSet
28 {
29 private Components components;
30
31 public ComponentSet( Element element )
32 {
33 List list = element.getChildren( "components" );
34
35 if ( list.size() > 1 )
36 {
37 throw new RuntimeException( "The component set can only contain a single <components> section." );
38 }
39
40 components = new Components( (Element) list.get( 0 ) );
41 }
42
43 public void print( Sink sink, String javaDocDestDir, String jxrDestDir )
44 {
45 components.print( sink, javaDocDestDir, jxrDestDir );
46 }
47 }