SECTIONTYPE
- Type of the SectionEvent
implementationREPORTTYPE
- Type of Report
that is the default payload of the eventPARENTSECTIONTYPE
- Type of the SectionEvent
implementation that represents a parental section this section belongs topublic abstract class SectionEvent<SECTIONTYPE extends SectionEvent<SECTIONTYPE,REPORTTYPE,PARENTSECTIONTYPE>,REPORTTYPE extends Report,PARENTSECTIONTYPE extends SectionEvent> extends Object
Constructor and Description |
---|
SectionEvent()
Creates an instance of
SectionEvent |
SectionEvent(REPORTTYPE report)
Creates an instance of
SectionEvent with the given Report |
SectionEvent(REPORTTYPE report,
String sectionId)
Creates an instance of
SectionEvent with the given Report and sets the sectionId as an id of the section. |
SectionEvent(String sectionId)
Creates an instance of
SectionEvent and sets the sectionId as an id of the section |
Modifier and Type | Method and Description |
---|---|
abstract PARENTSECTIONTYPE |
getParentSectionThisSectionBelongsTo()
Based on information that are set, creates and returns an instance of
SectionEvent implementation
that represents a parent section this section belongs to |
REPORTTYPE |
getReport()
Returns the
Report set in this SectionEvent as its payload |
abstract Class<REPORTTYPE> |
getReportTypeClass()
Returns a
Report class that is default payload of this SectionEvent |
String |
getSectionId()
Returns the id of this
SectionEvent |
Identifier<SECTIONTYPE> |
identifyYourself()
Based on information that are set, creates and returns an
Identifier that identifies this SectionEvent |
boolean |
isContainsSubReport()
Returns whether the attached
Report will be added into the list of sub-reports of a report that is associated
with this section + id |
void |
setContainsSubReport(boolean containsSubReport)
Sets whether the attached
Report will be added into the list of sub-reports of a report that is associated
with this section + id |
void |
setReport(REPORTTYPE report)
Sets the given
Report in this SectionEvent as its payload |
void |
setSectionId(String sectionId)
Sets the given unique id to this
SectionEvent |
public SectionEvent()
SectionEvent
public SectionEvent(REPORTTYPE report)
SectionEvent
with the given Report
report
- A Report
to be set as its payloadpublic SectionEvent(String sectionId)
SectionEvent
and sets the sectionId as an id of the sectionsectionId
- An id to be used as an identifierpublic SectionEvent(REPORTTYPE report, String sectionId)
SectionEvent
with the given Report
and sets the sectionId as an id of the section.report
- A Report
to be set as its payloadsectionId
- An id to be used as an identifierpublic REPORTTYPE getReport()
Report
set in this SectionEvent
as its payloadReport
set in this SectionEvent
public void setReport(REPORTTYPE report)
Report
in this SectionEvent
as its payloadreport
- A Report
to be setpublic String getSectionId()
SectionEvent
SectionEvent
public void setSectionId(String sectionId)
SectionEvent
sectionId
- The id to be setpublic boolean isContainsSubReport()
Report
will be added into the list of sub-reports of a report that is associated
with this section + idReport
will be added into the list of sub-reports of a report that is associated
with this section + idpublic void setContainsSubReport(boolean containsSubReport)
Report
will be added into the list of sub-reports of a report that is associated
with this section + idcontainsSubReport
- Whether the attached Report
will be added into the list of sub-reports of a report
that is associated with this section + idpublic abstract PARENTSECTIONTYPE getParentSectionThisSectionBelongsTo()
SectionEvent
implementation
that represents a parent section this section belongs toSectionEvent
implementation that represents a parent section this section belongs topublic abstract Class<REPORTTYPE> getReportTypeClass()
Report
class that is default payload of this SectionEvent
Report
class that is default payload of this SectionEvent
public Identifier<SECTIONTYPE> identifyYourself()
Identifier
that identifies this SectionEvent
Identifier
that identifies this SectionEvent
Copyright © 2017 JBoss by Red Hat. All rights reserved.