Subversion Repositories bacoAlunos

Rev

Rev 1870 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.estgweb.utils.documentBuilder;

import java.util.ArrayList;

/**
 * Created by jorgemachado on 07/11/17.
 */

public class SectionContainer extends ExtensibleDocObject
{
    ArrayList<DocumentSection> sections = new ArrayList<DocumentSection>();

    public ArrayList<DocumentSection> getSections() {
        return sections;
    }

    public void setSections(ArrayList<DocumentSection> sections) {
        this.sections = sections;
    }

    public DocumentSection findSection(1.5.0/docs/api/java/lang/Class.html">Class sectionClass)
    {
        if(getSections() != null)
            for(DocumentSection section: getSections())
            {
                if(section.getClass().equals(sectionClass))
                {
                    return section;
                }
            }
        return null;
    }



}