public class RichtextSwitch<T>
extends java.lang.Object
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.
RichtextPackage
Modifier and Type | Field and Description |
---|---|
protected static RichtextPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
RichtextSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseAnchor(Anchor object)
Returns the result of interpreting the object as an instance of 'Anchor'.
|
T |
caseBlockContainer(BlockContainer object)
Returns the result of interpreting the object as an instance of 'Block Container'.
|
T |
caseBlockEntity(BlockEntity object)
Returns the result of interpreting the object as an instance of 'Block Entity'.
|
T |
caseBlockMixedContainer(BlockMixedContainer object)
Returns the result of interpreting the object as an instance of 'Block Mixed Container'.
|
T |
caseBlockQuote(BlockQuote object)
Returns the result of interpreting the object as an instance of 'Block Quote'.
|
T |
caseBody(Body object)
Returns the result of interpreting the object as an instance of 'Body'.
|
T |
caseBold(Bold object)
Returns the result of interpreting the object as an instance of 'Bold'.
|
T |
caseDocumentRoot(DocumentRoot object)
Returns the result of interpreting the object as an instance of 'Document Root'.
|
T |
caseElementContainer(ElementContainer object)
Returns the result of interpreting the object as an instance of 'Element Container'.
|
T |
caseFlowContainer(FlowContainer object)
Returns the result of interpreting the object as an instance of 'Flow Container'.
|
T |
caseFlowLeaf(FlowLeaf object)
Returns the result of interpreting the object as an instance of 'Flow Leaf'.
|
T |
caseFlowType(FlowType object)
Returns the result of interpreting the object as an instance of 'Flow Type'.
|
T |
caseHeading(Heading object)
Returns the result of interpreting the object as an instance of 'Heading'.
|
T |
caseHeading1(Heading1 object)
Returns the result of interpreting the object as an instance of 'Heading1'.
|
T |
caseHeading2(Heading2 object)
Returns the result of interpreting the object as an instance of 'Heading2'.
|
T |
caseHeading3(Heading3 object)
Returns the result of interpreting the object as an instance of 'Heading3'.
|
T |
caseHeading4(Heading4 object)
Returns the result of interpreting the object as an instance of 'Heading4'.
|
T |
caseHeading5(Heading5 object)
Returns the result of interpreting the object as an instance of 'Heading5'.
|
T |
caseHeading6(Heading6 object)
Returns the result of interpreting the object as an instance of 'Heading6'.
|
T |
caseHorizontalLine(HorizontalLine object)
Returns the result of interpreting the object as an instance of 'Horizontal Line'.
|
T |
caseHyperlink(Hyperlink object)
Returns the result of interpreting the object as an instance of 'Hyperlink'.
|
T |
caseImageType(ImageType object)
Returns the result of interpreting the object as an instance of 'Image Type'.
|
T |
caseInlineEntity(InlineEntity object)
Returns the result of interpreting the object as an instance of 'Inline Entity'.
|
T |
caseInlineMixedContainer(InlineMixedContainer object)
Returns the result of interpreting the object as an instance of 'Inline Mixed Container'.
|
T |
caseItalics(Italics object)
Returns the result of interpreting the object as an instance of 'Italics'.
|
T |
caseLineBreak(LineBreak object)
Returns the result of interpreting the object as an instance of 'Line Break'.
|
T |
caseLink(Link object)
Returns the result of interpreting the object as an instance of 'Link'.
|
T |
caseListEntity(ListEntity object)
Returns the result of interpreting the object as an instance of 'List Entity'.
|
T |
caseListItem(ListItem object)
Returns the result of interpreting the object as an instance of 'List Item'.
|
T |
caseMixedContainer(MixedContainer object)
Returns the result of interpreting the object as an instance of 'Mixed Container'.
|
T |
caseOrderedList(OrderedList object)
Returns the result of interpreting the object as an instance of 'Ordered List'.
|
T |
caseParagraph(Paragraph object)
Returns the result of interpreting the object as an instance of 'Paragraph'.
|
T |
caseRoot(Root object)
Returns the result of interpreting the object as an instance of 'Root'.
|
T |
caseSpan(Span object)
Returns the result of interpreting the object as an instance of 'Span'.
|
T |
caseStrikeThrough(StrikeThrough object)
Returns the result of interpreting the object as an instance of 'Strike Through'.
|
T |
caseStyle(Style object)
Returns the result of interpreting the object as an instance of 'Style'.
|
T |
caseSubscript(Subscript object)
Returns the result of interpreting the object as an instance of 'Subscript'.
|
T |
caseSuperscript(Superscript object)
Returns the result of interpreting the object as an instance of 'Superscript'.
|
T |
caseTable(Table object)
Returns the result of interpreting the object as an instance of 'Table'.
|
T |
caseTableColumn(TableColumn object)
Returns the result of interpreting the object as an instance of 'Table Column'.
|
T |
caseTableData(TableData object)
Returns the result of interpreting the object as an instance of 'Table Data'.
|
T |
caseTableRow(TableRow object)
Returns the result of interpreting the object as an instance of 'Table Row'.
|
T |
caseTextRun(TextRun object)
Returns the result of interpreting the object as an instance of 'Text Run'.
|
T |
caseUnderline(Underline object)
Returns the result of interpreting the object as an instance of 'Underline'.
|
T |
caseUnorderedList(UnorderedList object)
Returns the result of interpreting the object as an instance of 'Unordered List'.
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
doSwitch(org.eclipse.emf.ecore.EClass theEClass,
org.eclipse.emf.ecore.EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
T |
doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected T |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected static RichtextPackage modelPackage
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseAnchor(Anchor object)
object
- the target of the switch.doSwitch(EObject)
public T caseBlockContainer(BlockContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseBlockEntity(BlockEntity object)
object
- the target of the switch.doSwitch(EObject)
public T caseBlockMixedContainer(BlockMixedContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseBlockQuote(BlockQuote object)
object
- the target of the switch.doSwitch(EObject)
public T caseBody(Body object)
object
- the target of the switch.doSwitch(EObject)
public T caseBold(Bold object)
object
- the target of the switch.doSwitch(EObject)
public T caseDocumentRoot(DocumentRoot object)
object
- the target of the switch.doSwitch(EObject)
public T caseElementContainer(ElementContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseFlowContainer(FlowContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseFlowLeaf(FlowLeaf object)
object
- the target of the switch.doSwitch(EObject)
public T caseFlowType(FlowType object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading(Heading object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading1(Heading1 object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading2(Heading2 object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading3(Heading3 object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading4(Heading4 object)
object
- the target of the switch.doSwitch(EObject)
public T caseHyperlink(Hyperlink object)
object
- the target of the switch.doSwitch(EObject)
public T caseImageType(ImageType object)
object
- the target of the switch.doSwitch(EObject)
public T caseInlineEntity(InlineEntity object)
object
- the target of the switch.doSwitch(EObject)
public T caseInlineMixedContainer(InlineMixedContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseItalics(Italics object)
object
- the target of the switch.doSwitch(EObject)
public T caseLineBreak(LineBreak object)
object
- the target of the switch.doSwitch(EObject)
public T caseLink(Link object)
object
- the target of the switch.doSwitch(EObject)
public T caseListEntity(ListEntity object)
object
- the target of the switch.doSwitch(EObject)
public T caseListItem(ListItem object)
object
- the target of the switch.doSwitch(EObject)
public T caseMixedContainer(MixedContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseOrderedList(OrderedList object)
object
- the target of the switch.doSwitch(EObject)
public T caseParagraph(Paragraph object)
object
- the target of the switch.doSwitch(EObject)
public T caseRoot(Root object)
object
- the target of the switch.doSwitch(EObject)
public T caseSpan(Span object)
object
- the target of the switch.doSwitch(EObject)
public T caseStrikeThrough(StrikeThrough object)
object
- the target of the switch.doSwitch(EObject)
public T caseSubscript(Subscript object)
object
- the target of the switch.doSwitch(EObject)
public T caseSuperscript(Superscript object)
object
- the target of the switch.doSwitch(EObject)
public T caseTable(Table object)
object
- the target of the switch.doSwitch(EObject)
public T caseTableColumn(TableColumn object)
object
- the target of the switch.doSwitch(EObject)
public T caseTableData(TableData object)
object
- the target of the switch.doSwitch(EObject)
public T caseTableRow(TableRow object)
object
- the target of the switch.doSwitch(EObject)
public T caseTextRun(TextRun object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnderline(Underline object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnorderedList(UnorderedList object)
object
- the target of the switch.doSwitch(EObject)
public T caseStyle(Style object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading5(Heading5 object)
object
- the target of the switch.doSwitch(EObject)
public T caseHeading6(Heading6 object)
object
- the target of the switch.doSwitch(EObject)
public T caseHorizontalLine(HorizontalLine object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
object
- the target of the switch.doSwitch(org.eclipse.emf.ecore.EObject)