Subversion Repositories bacoAlunos

Rev

Rev 1848 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1848 jmachado 1
package pt.estgp.estgweb.utils.documentBuilder;
2
 
3
import java.util.ArrayList;
4
import java.util.List;
5
 
6
/**
7
 * Created by jorgemachado on 07/11/17.
8
 */
9
public class SectionContainer extends ExtensibleDocObject
10
{
11
    List<DocumentSection> sections = new ArrayList<DocumentSection>();
12
 
13
    public List<DocumentSection> getSections() {
14
        return sections;
15
    }
16
 
17
    public void setSections(List<DocumentSection> sections) {
18
        this.sections = sections;
19
    }
20
 
21
    public DocumentSection findSection(1.5.0/docs/api/java/lang/Class.html">Class sectionClass)
22
    {
23
        if(getSections() != null)
24
            for(DocumentSection section: getSections())
25
            {
26
                if(section.getClass().equals(sectionClass))
27
                {
28
                    return section;
29
                }
30
            }
31
        return null;
32
    }
33
 
34
 
35
 
36
}