Class BootstrapSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.nasdanika.html.model.bootstrap.util.BootstrapSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call
doSwitch(object)
to invoke the caseXXX method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAccordion(Accordion object) Returns the result of interpreting the object as an instance of 'Accordion'.caseActionGroup(ActionGroup object) Returns the result of interpreting the object as an instance of 'Action Group'.caseActionGroupItem(ActionGroupItem object) Returns the result of interpreting the object as an instance of 'Action Group Item'.caseAdaptable(org.nasdanika.common.Adaptable object) Returns the result of interpreting the object as an instance of 'Adaptable'.Returns the result of interpreting the object as an instance of 'Alert'.caseAppearance(Appearance object) Returns the result of interpreting the object as an instance of 'Appearance'.caseAppearanceEntry(Map.Entry<String, Appearance> object) Returns the result of interpreting the object as an instance of 'Appearance Entry'.Returns the result of interpreting the object as an instance of 'Badge'.caseBootstrapElement(BootstrapElement object) Returns the result of interpreting the object as an instance of 'Element'.caseBorder(Border object) Returns the result of interpreting the object as an instance of 'Border'.caseBreadcrumb(Breadcrumb object) Returns the result of interpreting the object as an instance of 'Breadcrumb'.caseButton(Button object) Returns the result of interpreting the object as an instance of 'Button'.caseButtonGroup(ButtonGroup object) Returns the result of interpreting the object as an instance of 'Button Group'.caseButtonToolbar(ButtonToolbar object) Returns the result of interpreting the object as an instance of 'Button Toolbar'.Returns the result of interpreting the object as an instance of 'Card'.caseCarousel(Carousel object) Returns the result of interpreting the object as an instance of 'Carousel'.caseCollapse(Collapse object) Returns the result of interpreting the object as an instance of 'Collapse'.caseColumn(Column object) Returns the result of interpreting the object as an instance of 'Column'.caseColumnWidth(ColumnWidth object) Returns the result of interpreting the object as an instance of 'Column Width'.caseContainer(Container object) Returns the result of interpreting the object as an instance of 'Container'.Returns the result of interpreting the object as an instance of 'Content Action Group Item'.Returns the result of interpreting the object as an instance of 'Div'.caseDropdown(Dropdown object) Returns the result of interpreting the object as an instance of 'Dropdown'.Returns the result of interpreting the object as an instance of 'Float'.Returns the result of interpreting the object as an instance of 'Form'.caseFormGroup(FormGroup object) Returns the result of interpreting the object as an instance of 'Form Group'.caseHtml_Page(Page object) Returns the result of interpreting the object as an instance of 'Page'.caseHtml_Tag(Tag object) Returns the result of interpreting the object as an instance of 'Tag'.caseHtmlElement(HtmlElement object) Returns the result of interpreting the object as an instance of 'Element'.caseIMarked(org.nasdanika.persistence.Marked object) Returns the result of interpreting the object as an instance of 'IMarked'.caseInputGroup(InputGroup object) Returns the result of interpreting the object as an instance of 'Input Group'.Returns the result of interpreting the object as an instance of 'Item'.Returns the result of interpreting the object as an instance of 'Link Action Group Item'.caseListGroup(ListGroup object) Returns the result of interpreting the object as an instance of 'List Group'.caseMarked(org.nasdanika.ncore.Marked object) Returns the result of interpreting the object as an instance of 'Marked'.Returns the result of interpreting the object as an instance of 'Modal'.caseModelElement(org.nasdanika.ncore.ModelElement object) Returns the result of interpreting the object as an instance of 'Model Element'.caseNavbar(Navbar object) Returns the result of interpreting the object as an instance of 'Navbar'.Returns the result of interpreting the object as an instance of 'Navs'.Returns the result of interpreting the object as an instance of 'Page'.Returns the result of interpreting the object as an instance of 'Row'.Returns the result of interpreting the object as an instance of 'Slide'.caseSpacing(Spacing object) Returns the result of interpreting the object as an instance of 'Spacing'.Returns the result of interpreting the object as an instance of 'Table'.caseTableCell(TableCell object) Returns the result of interpreting the object as an instance of 'Table Cell'.Returns the result of interpreting the object as an instance of 'Table Configuration'.caseTableHeader(TableHeader object) Returns the result of interpreting the object as an instance of 'Table Header'.caseTableRow(TableRow object) Returns the result of interpreting the object as an instance of 'Table Row'.Returns the result of interpreting the object as an instance of 'Table Row Container'.caseTableSection(TableSection object) Returns the result of interpreting the object as an instance of 'Table Section'.Returns the result of interpreting the object as an instance of 'Tag'.Returns the result of interpreting the object as an instance of 'Text'.caseTooltip(Tooltip object) Returns the result of interpreting the object as an instance of 'Tooltip'.defaultCase(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected TCallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(EPackage ePackage) Checks whether this is a switch for the given package.
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
BootstrapSwitch
public BootstrapSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
Checks whether this is a switch for the given package.- Specified by:
isSwitchForin classSwitch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result. -
caseBootstrapElement
Returns the result of interpreting the object as an instance of 'Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Element'.
- See Also:
-
casePage
Returns the result of interpreting the object as an instance of 'Page'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Page'.
- See Also:
-
caseAppearance
Returns the result of interpreting the object as an instance of 'Appearance'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Appearance'.
- See Also:
-
caseAppearanceEntry
Returns the result of interpreting the object as an instance of 'Appearance Entry'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Appearance Entry'.
- See Also:
-
caseBorder
Returns the result of interpreting the object as an instance of 'Border'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Border'.
- See Also:
-
caseSpacing
Returns the result of interpreting the object as an instance of 'Spacing'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Spacing'.
- See Also:
-
caseText
Returns the result of interpreting the object as an instance of 'Text'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Text'.
- See Also:
-
caseFloat
Returns the result of interpreting the object as an instance of 'Float'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Float'.
- See Also:
-
caseTag
Returns the result of interpreting the object as an instance of 'Tag'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tag'.
- See Also:
-
caseDiv
Returns the result of interpreting the object as an instance of 'Div'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Div'.
- See Also:
-
caseItem
Returns the result of interpreting the object as an instance of 'Item'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Item'.
- See Also:
-
caseActionGroupItem
Returns the result of interpreting the object as an instance of 'Action Group Item'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action Group Item'.
- See Also:
-
caseLinkActionGroupItem
Returns the result of interpreting the object as an instance of 'Link Action Group Item'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Link Action Group Item'.
- See Also:
-
caseContentActionGroupItem
Returns the result of interpreting the object as an instance of 'Content Action Group Item'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Content Action Group Item'.
- See Also:
-
caseActionGroup
Returns the result of interpreting the object as an instance of 'Action Group'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action Group'.
- See Also:
-
caseContainer
Returns the result of interpreting the object as an instance of 'Container'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Container'.
- See Also:
-
caseRow
Returns the result of interpreting the object as an instance of 'Row'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Row'.
- See Also:
-
caseColumnWidth
Returns the result of interpreting the object as an instance of 'Column Width'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Column Width'.
- See Also:
-
caseColumn
Returns the result of interpreting the object as an instance of 'Column'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Column'.
- See Also:
-
caseTableRowContainer
Returns the result of interpreting the object as an instance of 'Table Row Container'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table Row Container'.
- See Also:
-
caseTableSection
Returns the result of interpreting the object as an instance of 'Table Section'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table Section'.
- See Also:
-
caseTableHeader
Returns the result of interpreting the object as an instance of 'Table Header'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table Header'.
- See Also:
-
caseTableConfiguration
Returns the result of interpreting the object as an instance of 'Table Configuration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table Configuration'.
- See Also:
-
caseTable
Returns the result of interpreting the object as an instance of 'Table'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table'.
- See Also:
-
caseTableRow
Returns the result of interpreting the object as an instance of 'Table Row'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table Row'.
- See Also:
-
caseTableCell
Returns the result of interpreting the object as an instance of 'Table Cell'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Table Cell'.
- See Also:
-
caseCard
Returns the result of interpreting the object as an instance of 'Card'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Card'.
- See Also:
-
caseAlert
Returns the result of interpreting the object as an instance of 'Alert'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Alert'.
- See Also:
-
caseBadge
Returns the result of interpreting the object as an instance of 'Badge'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Badge'.
- See Also:
-
caseBreadcrumb
Returns the result of interpreting the object as an instance of 'Breadcrumb'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Breadcrumb'.
- See Also:
-
caseButton
Returns the result of interpreting the object as an instance of 'Button'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Button'.
- See Also:
-
caseButtonGroup
Returns the result of interpreting the object as an instance of 'Button Group'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Button Group'.
- See Also:
-
caseButtonToolbar
Returns the result of interpreting the object as an instance of 'Button Toolbar'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Button Toolbar'.
- See Also:
-
caseDropdown
Returns the result of interpreting the object as an instance of 'Dropdown'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Dropdown'.
- See Also:
-
caseForm
Returns the result of interpreting the object as an instance of 'Form'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Form'.
- See Also:
-
caseListGroup
Returns the result of interpreting the object as an instance of 'List Group'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'List Group'.
- See Also:
-
caseTooltip
Returns the result of interpreting the object as an instance of 'Tooltip'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tooltip'.
- See Also:
-
caseInputGroup
Returns the result of interpreting the object as an instance of 'Input Group'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Input Group'.
- See Also:
-
caseFormGroup
Returns the result of interpreting the object as an instance of 'Form Group'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Form Group'.
- See Also:
-
caseCollapse
Returns the result of interpreting the object as an instance of 'Collapse'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Collapse'.
- See Also:
-
caseModal
Returns the result of interpreting the object as an instance of 'Modal'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Modal'.
- See Also:
-
caseAccordion
Returns the result of interpreting the object as an instance of 'Accordion'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Accordion'.
- See Also:
-
caseCarousel
Returns the result of interpreting the object as an instance of 'Carousel'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Carousel'.
- See Also:
-
caseSlide
Returns the result of interpreting the object as an instance of 'Slide'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Slide'.
- See Also:
-
caseIMarked
Returns the result of interpreting the object as an instance of 'IMarked'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'IMarked'.
- See Also:
-
caseMarked
Returns the result of interpreting the object as an instance of 'Marked'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Marked'.
- See Also:
-
caseAdaptable
Returns the result of interpreting the object as an instance of 'Adaptable'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Adaptable'.
- See Also:
-
caseModelElement
Returns the result of interpreting the object as an instance of 'Model Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Model Element'.
- See Also:
-
caseHtmlElement
Returns the result of interpreting the object as an instance of 'Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Element'.
- See Also:
-
caseHtml_Page
Returns the result of interpreting the object as an instance of 'Page'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Page'.
- See Also:
-
caseHtml_Tag
Returns the result of interpreting the object as an instance of 'Tag'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tag'.
- See Also:
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCasein classSwitch<T>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-