/*******************************************************************************
* Copyright (c) 2010, 2011 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.docs.intent.markup.markup.util;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.mylyn.docs.intent.markup.markup.Annotations;
import org.eclipse.mylyn.docs.intent.markup.markup.Block;
import org.eclipse.mylyn.docs.intent.markup.markup.BlockContent;
import org.eclipse.mylyn.docs.intent.markup.markup.Code;
import org.eclipse.mylyn.docs.intent.markup.markup.Container;
import org.eclipse.mylyn.docs.intent.markup.markup.Div;
import org.eclipse.mylyn.docs.intent.markup.markup.Document;
import org.eclipse.mylyn.docs.intent.markup.markup.Entity;
import org.eclipse.mylyn.docs.intent.markup.markup.FootNote;
import org.eclipse.mylyn.docs.intent.markup.markup.HasAttributes;
import org.eclipse.mylyn.docs.intent.markup.markup.Image;
import org.eclipse.mylyn.docs.intent.markup.markup.Information;
import org.eclipse.mylyn.docs.intent.markup.markup.Link;
import org.eclipse.mylyn.docs.intent.markup.markup.ListItem;
import org.eclipse.mylyn.docs.intent.markup.markup.MarkupPackage;
import org.eclipse.mylyn.docs.intent.markup.markup.Note;
import org.eclipse.mylyn.docs.intent.markup.markup.Panel;
import org.eclipse.mylyn.docs.intent.markup.markup.Paragraph;
import org.eclipse.mylyn.docs.intent.markup.markup.Preformatted;
import org.eclipse.mylyn.docs.intent.markup.markup.Quote;
import org.eclipse.mylyn.docs.intent.markup.markup.Section;
import org.eclipse.mylyn.docs.intent.markup.markup.SimpleContainer;
import org.eclipse.mylyn.docs.intent.markup.markup.StructureElement;
import org.eclipse.mylyn.docs.intent.markup.markup.Table;
import org.eclipse.mylyn.docs.intent.markup.markup.TableCell;
import org.eclipse.mylyn.docs.intent.markup.markup.TableRow;
import org.eclipse.mylyn.docs.intent.markup.markup.Text;
import org.eclipse.mylyn.docs.intent.markup.markup.Tip;
import org.eclipse.mylyn.docs.intent.markup.markup.Warning;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> 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.
* <!-- end-user-doc -->
* @see org.eclipse.mylyn.docs.intent.markup.markup.MarkupPackage
* @generated
*/
public class MarkupSwitch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static MarkupPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MarkupSwitch() {
if (modelPackage == null) {
modelPackage = MarkupPackage.eINSTANCE;
}
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
public T doSwitch(EObject theEObject) {
return doSwitch(theEObject.eClass(), theEObject);
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
protected T doSwitch(EClass theEClass, EObject theEObject) {
if (theEClass.eContainer() == modelPackage) {
return doSwitch(theEClass.getClassifierID(), theEObject);
}
else {
List<EClass> eSuperTypes = theEClass.getESuperTypes();
return
eSuperTypes.isEmpty() ?
defaultCase(theEObject) :
doSwitch(eSuperTypes.get(0), theEObject);
}
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case MarkupPackage.DOCUMENT: {
Document document = (Document)theEObject;
T result = caseDocument(document);
if (result == null) result = caseContainer(document);
if (result == null) result = caseHasAttributes(document);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.SIMPLE_CONTAINER: {
SimpleContainer simpleContainer = (SimpleContainer)theEObject;
T result = caseSimpleContainer(simpleContainer);
if (result == null) result = caseContainer(simpleContainer);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.STRUCTURE_ELEMENT: {
StructureElement structureElement = (StructureElement)theEObject;
T result = caseStructureElement(structureElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.SECTION: {
Section section = (Section)theEObject;
T result = caseSection(section);
if (result == null) result = caseStructureElement(section);
if (result == null) result = caseContainer(section);
if (result == null) result = caseHasAttributes(section);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.CONTAINER: {
Container container = (Container)theEObject;
T result = caseContainer(container);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.IMAGE: {
Image image = (Image)theEObject;
T result = caseImage(image);
if (result == null) result = caseBlockContent(image);
if (result == null) result = caseHasAttributes(image);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.ENTITY: {
Entity entity = (Entity)theEObject;
T result = caseEntity(entity);
if (result == null) result = caseText(entity);
if (result == null) result = caseBlockContent(entity);
if (result == null) result = caseHasAttributes(entity);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.TEXT: {
Text text = (Text)theEObject;
T result = caseText(text);
if (result == null) result = caseBlockContent(text);
if (result == null) result = caseHasAttributes(text);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.LINK: {
Link link = (Link)theEObject;
T result = caseLink(link);
if (result == null) result = caseBlockContent(link);
if (result == null) result = caseHasAttributes(link);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.BLOCK: {
Block block = (Block)theEObject;
T result = caseBlock(block);
if (result == null) result = caseStructureElement(block);
if (result == null) result = caseHasAttributes(block);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.ANNOTATIONS: {
Annotations annotations = (Annotations)theEObject;
T result = caseAnnotations(annotations);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.HAS_ATTRIBUTES: {
HasAttributes hasAttributes = (HasAttributes)theEObject;
T result = caseHasAttributes(hasAttributes);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.BLOCK_CONTENT: {
BlockContent blockContent = (BlockContent)theEObject;
T result = caseBlockContent(blockContent);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.PARAGRAPH: {
Paragraph paragraph = (Paragraph)theEObject;
T result = caseParagraph(paragraph);
if (result == null) result = caseBlock(paragraph);
if (result == null) result = caseStructureElement(paragraph);
if (result == null) result = caseHasAttributes(paragraph);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.TIP: {
Tip tip = (Tip)theEObject;
T result = caseTip(tip);
if (result == null) result = caseBlock(tip);
if (result == null) result = caseStructureElement(tip);
if (result == null) result = caseHasAttributes(tip);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.WARNING: {
Warning warning = (Warning)theEObject;
T result = caseWarning(warning);
if (result == null) result = caseBlock(warning);
if (result == null) result = caseStructureElement(warning);
if (result == null) result = caseHasAttributes(warning);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.INFORMATION: {
Information information = (Information)theEObject;
T result = caseInformation(information);
if (result == null) result = caseBlock(information);
if (result == null) result = caseStructureElement(information);
if (result == null) result = caseHasAttributes(information);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.NOTE: {
Note note = (Note)theEObject;
T result = caseNote(note);
if (result == null) result = caseBlock(note);
if (result == null) result = caseStructureElement(note);
if (result == null) result = caseHasAttributes(note);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.PANEL: {
Panel panel = (Panel)theEObject;
T result = casePanel(panel);
if (result == null) result = caseBlock(panel);
if (result == null) result = caseStructureElement(panel);
if (result == null) result = caseHasAttributes(panel);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.DIV: {
Div div = (Div)theEObject;
T result = caseDiv(div);
if (result == null) result = caseBlock(div);
if (result == null) result = caseStructureElement(div);
if (result == null) result = caseHasAttributes(div);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.FOOT_NOTE: {
FootNote footNote = (FootNote)theEObject;
T result = caseFootNote(footNote);
if (result == null) result = caseBlock(footNote);
if (result == null) result = caseStructureElement(footNote);
if (result == null) result = caseHasAttributes(footNote);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.QUOTE: {
Quote quote = (Quote)theEObject;
T result = caseQuote(quote);
if (result == null) result = caseBlock(quote);
if (result == null) result = caseStructureElement(quote);
if (result == null) result = caseHasAttributes(quote);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.PREFORMATTED: {
Preformatted preformatted = (Preformatted)theEObject;
T result = casePreformatted(preformatted);
if (result == null) result = caseBlock(preformatted);
if (result == null) result = caseStructureElement(preformatted);
if (result == null) result = caseHasAttributes(preformatted);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.CODE: {
Code code = (Code)theEObject;
T result = caseCode(code);
if (result == null) result = caseBlock(code);
if (result == null) result = caseStructureElement(code);
if (result == null) result = caseHasAttributes(code);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.LIST: {
org.eclipse.mylyn.docs.intent.markup.markup.List list = (org.eclipse.mylyn.docs.intent.markup.markup.List)theEObject;
T result = caseList(list);
if (result == null) result = caseBlock(list);
if (result == null) result = caseStructureElement(list);
if (result == null) result = caseHasAttributes(list);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.LIST_ITEM: {
ListItem listItem = (ListItem)theEObject;
T result = caseListItem(listItem);
if (result == null) result = caseList(listItem);
if (result == null) result = caseBlockContent(listItem);
if (result == null) result = caseBlock(listItem);
if (result == null) result = caseStructureElement(listItem);
if (result == null) result = caseHasAttributes(listItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.TABLE: {
Table table = (Table)theEObject;
T result = caseTable(table);
if (result == null) result = caseBlock(table);
if (result == null) result = caseStructureElement(table);
if (result == null) result = caseHasAttributes(table);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.TABLE_ROW: {
TableRow tableRow = (TableRow)theEObject;
T result = caseTableRow(tableRow);
if (result == null) result = caseBlock(tableRow);
if (result == null) result = caseBlockContent(tableRow);
if (result == null) result = caseStructureElement(tableRow);
if (result == null) result = caseHasAttributes(tableRow);
if (result == null) result = defaultCase(theEObject);
return result;
}
case MarkupPackage.TABLE_CELL: {
TableCell tableCell = (TableCell)theEObject;
T result = caseTableCell(tableCell);
if (result == null) result = caseBlock(tableCell);
if (result == null) result = caseBlockContent(tableCell);
if (result == null) result = caseStructureElement(tableCell);
if (result == null) result = caseHasAttributes(tableCell);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Document</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Document</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDocument(Document object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Simple Container</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Simple Container</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSimpleContainer(SimpleContainer object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Structure Element</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Structure Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseStructureElement(StructureElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Section</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Section</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSection(Section object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Container</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Container</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseContainer(Container object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Image</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Image</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseImage(Image object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Entity</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Entity</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEntity(Entity object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Text</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Text</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseText(Text object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Link</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Link</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLink(Link object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBlock(Block object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Annotations</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Annotations</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAnnotations(Annotations object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Has Attributes</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Has Attributes</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseHasAttributes(HasAttributes object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Block Content</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Block Content</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBlockContent(BlockContent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Paragraph</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Paragraph</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseParagraph(Paragraph object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Tip</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Tip</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTip(Tip object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Warning</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Warning</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWarning(Warning object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Information</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Information</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInformation(Information object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Note</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Note</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseNote(Note object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Panel</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Panel</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePanel(Panel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Div</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Div</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDiv(Div object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Foot Note</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Foot Note</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFootNote(FootNote object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Quote</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Quote</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseQuote(Quote object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Preformatted</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Preformatted</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePreformatted(Preformatted object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Code</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Code</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCode(Code object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>List</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>List</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseList(org.eclipse.mylyn.docs.intent.markup.markup.List object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>List Item</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>List Item</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseListItem(ListItem object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Table</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Table</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTable(Table object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Table Row</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Table Row</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTableRow(TableRow object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Table Cell</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Table Cell</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTableCell(TableCell object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
public T defaultCase(EObject object) {
return null;
}
} //MarkupSwitch