Blame |
Last modification |
View Log
| RSS feed
package pt.estgp.estgweb.utils.documentBuilder;
import java.util.ArrayList;
import java.util.List;
/**
* Created by jorgemachado on 07/11/17.
*/
public class SectionContainer
extends ExtensibleDocObject
{
List
<DocumentSection
> sections =
new ArrayList
<DocumentSection
>();
public List
<DocumentSection
> getSections
() {
return sections
;
}
public void setSections
(List
<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;
}
}