java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.nasdanika.html.model.bootstrap.util.BootstrapSwitch<T>

public class BootstrapSwitch<T> extends Switch<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
    Modifier and Type
    Field
    Description
    protected static BootstrapPackage
    The cached model package
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of the switch.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the result of interpreting the object as an instance of 'Accordion'.
    Returns the result of interpreting the object as an instance of 'Action Group'.
    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'.
    caseAlert(Alert object)
    Returns the result of interpreting the object as an instance of 'Alert'.
    Returns the result of interpreting the object as an instance of 'Appearance'.
    Returns the result of interpreting the object as an instance of 'Appearance Entry'.
    caseBadge(Badge object)
    Returns the result of interpreting the object as an instance of 'Badge'.
    Returns the result of interpreting the object as an instance of 'Element'.
    Returns the result of interpreting the object as an instance of 'Border'.
    Returns the result of interpreting the object as an instance of 'Breadcrumb'.
    Returns the result of interpreting the object as an instance of 'Button'.
    Returns the result of interpreting the object as an instance of 'Button Group'.
    Returns the result of interpreting the object as an instance of 'Button Toolbar'.
    caseCard(Card object)
    Returns the result of interpreting the object as an instance of 'Card'.
    Returns the result of interpreting the object as an instance of 'Carousel'.
    Returns the result of interpreting the object as an instance of 'Collapse'.
    Returns the result of interpreting the object as an instance of 'Column'.
    Returns the result of interpreting the object as an instance of 'Column Width'.
    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'.
    caseDiv(Div object)
    Returns the result of interpreting the object as an instance of 'Div'.
    Returns the result of interpreting the object as an instance of 'Dropdown'.
    caseFloat(Float object)
    Returns the result of interpreting the object as an instance of 'Float'.
    caseForm(Form object)
    Returns the result of interpreting the object as an instance of 'Form'.
    Returns the result of interpreting the object as an instance of 'Form Group'.
    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'.
    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'.
    Returns the result of interpreting the object as an instance of 'Input Group'.
    caseItem(Item object)
    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'.
    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'.
    caseModal(Modal object)
    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'.
    Returns the result of interpreting the object as an instance of 'Navbar'.
    caseNavs(Navs object)
    Returns the result of interpreting the object as an instance of 'Navs'.
    casePage(Page object)
    Returns the result of interpreting the object as an instance of 'Page'.
    caseRow(Row object)
    Returns the result of interpreting the object as an instance of 'Row'.
    caseSlide(Slide object)
    Returns the result of interpreting the object as an instance of 'Slide'.
    Returns the result of interpreting the object as an instance of 'Spacing'.
    caseTable(Table object)
    Returns the result of interpreting the object as an instance of 'Table'.
    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'.
    Returns the result of interpreting the object as an instance of 'Table Header'.
    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'.
    Returns the result of interpreting the object as an instance of 'Table Section'.
    caseTag(Tag object)
    Returns the result of interpreting the object as an instance of 'Tag'.
    caseText(Text object)
    Returns the result of interpreting the object as an instance of 'Text'.
    Returns the result of interpreting the object as an instance of 'Tooltip'.
    Returns the result of interpreting the object as an instance of 'EObject'.
    protected T
    doSwitch(int classifierID, EObject theEObject)
    Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
    protected boolean
    Checks whether this is a switch for the given package.

    Methods inherited from class org.eclipse.emf.ecore.util.Switch

    doSwitch, doSwitch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BootstrapSwitch

      public BootstrapSwitch()
      Creates an instance of the switch.
  • Method Details

    • isSwitchFor

      protected boolean isSwitchFor(EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • doSwitch

      protected T doSwitch(int classifierID, EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Overrides:
      doSwitch in class Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • 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

      public T casePage(Page object)
      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

      public T caseAppearance(Appearance object)
      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

      public T caseBorder(Border object)
      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

      public T caseSpacing(Spacing object)
      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

      public T caseText(Text object)
      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

      public T caseFloat(Float object)
      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

      public T caseTag(Tag object)
      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

      public T caseDiv(Div object)
      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

      public T caseItem(Item object)
      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

      public T caseActionGroup(ActionGroup object)
      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

      public T caseContainer(Container object)
      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

      public T caseRow(Row object)
      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

      public T caseColumnWidth(ColumnWidth object)
      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

      public T caseColumn(Column object)
      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

      public T caseTableSection(TableSection object)
      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

      public T caseTableHeader(TableHeader object)
      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

      public T caseTable(Table object)
      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

      public T caseTableRow(TableRow object)
      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

      public T caseTableCell(TableCell object)
      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

      public T caseCard(Card object)
      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

      public T caseAlert(Alert object)
      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

      public T caseBadge(Badge object)
      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

      public T caseBreadcrumb(Breadcrumb object)
      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

      public T caseButton(Button object)
      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

      public T caseButtonGroup(ButtonGroup object)
      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

      public T caseDropdown(Dropdown object)
      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

      public T caseForm(Form object)
      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

      public T caseListGroup(ListGroup object)
      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:
    • caseNavs

      public T caseNavs(Navs object)
      Returns the result of interpreting the object as an instance of 'Navs'. 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 'Navs'.
      See Also:
    • caseNavbar

      public T caseNavbar(Navbar object)
      Returns the result of interpreting the object as an instance of 'Navbar'. 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 'Navbar'.
      See Also:
    • caseTooltip

      public T caseTooltip(Tooltip object)
      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

      public T caseInputGroup(InputGroup object)
      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

      public T caseFormGroup(FormGroup object)
      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

      public T caseCollapse(Collapse object)
      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

      public T caseModal(Modal object)
      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

      public T caseAccordion(Accordion object)
      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

      public T caseCarousel(Carousel object)
      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

      public T caseSlide(Slide object)
      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

      public T caseIMarked(org.nasdanika.persistence.Marked object)
      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

      public T caseMarked(org.nasdanika.ncore.Marked object)
      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

      public T caseAdaptable(org.nasdanika.common.Adaptable object)
      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

      public T caseModelElement(org.nasdanika.ncore.ModelElement object)
      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

      public T caseHtmlElement(HtmlElement object)
      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

      public T caseHtml_Page(Page object)
      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

      public T caseHtml_Tag(Tag object)
      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

      public T defaultCase(EObject object)
      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:
      defaultCase in class Switch<T>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also: