|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Switch<T>
org.eclipse.ocl.examples.xtext.markup.util.MarkupSwitch<HTMLBuffer>
org.eclipse.ocl.examples.xtext.markup.MarkupToHTML
public class MarkupToHTML
MarkupToHTML gives an HTML presentation of the markup.
Nested Class Summary | |
---|---|
static class |
MarkupToHTML.InvalidMarkupException
|
Field Summary | |
---|---|
protected java.lang.Object |
context
|
protected HTMLBuffer |
s
|
Fields inherited from class org.eclipse.ocl.examples.xtext.markup.util.MarkupSwitch |
---|
modelPackage |
Constructor Summary | |
---|---|
MarkupToHTML(MetaModelManager metaModelManager,
java.lang.Object context)
|
Method Summary | |
---|---|
HTMLBuffer |
caseBulletElement(BulletElement object)
Returns the result of interpreting the object as an instance of 'Bullet Element'. |
HTMLBuffer |
caseCompoundElement(CompoundElement object)
Returns the result of interpreting the object as an instance of 'Compound Element'. |
HTMLBuffer |
caseFigureElement(FigureElement object)
Returns the result of interpreting the object as an instance of 'Figure Element'. |
HTMLBuffer |
caseFigureRefElement(FigureRefElement object)
Returns the result of interpreting the object as an instance of 'Figure Ref Element'. |
HTMLBuffer |
caseFontElement(FontElement object)
Returns the result of interpreting the object as an instance of 'Font Element'. |
HTMLBuffer |
caseFootnoteElement(FootnoteElement object)
Returns the result of interpreting the object as an instance of 'Footnote Element'. |
HTMLBuffer |
caseHeadingElement(HeadingElement object)
Returns the result of interpreting the object as an instance of 'Heading Element'. |
HTMLBuffer |
caseNewLineElement(NewLineElement object)
Returns the result of interpreting the object as an instance of 'New Line Element'. |
HTMLBuffer |
caseNullElement(NullElement object)
Returns the result of interpreting the object as an instance of 'Null Element'. |
HTMLBuffer |
caseOCLCodeElement(OCLCodeElement object)
Returns the result of interpreting the object as an instance of 'OCL Code Element'. |
HTMLBuffer |
caseOCLEvalElement(OCLEvalElement object)
Returns the result of interpreting the object as an instance of 'OCL Eval Element'. |
HTMLBuffer |
caseOCLTextElement(OCLTextElement object)
Returns the result of interpreting the object as an instance of 'OCL Text Element'. |
HTMLBuffer |
caseTextElement(TextElement object)
Returns the result of interpreting the object as an instance of 'Text Element'. |
protected ExpressionInOCL |
createQuery(java.lang.String oclString)
|
HTMLBuffer |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected OCL |
getOCL()
|
java.lang.String |
toString()
|
static java.lang.String |
toString(MetaModelManager metaModelManager,
java.lang.Object context,
MarkupElement element)
|
Methods inherited from class org.eclipse.ocl.examples.xtext.markup.util.MarkupSwitch |
---|
caseMarkup, caseMarkupElement, doSwitch, isSwitchFor |
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, wait, wait, wait |
Field Detail |
---|
@Nullable protected final java.lang.Object context
@NonNull protected final HTMLBuffer s
Constructor Detail |
---|
public MarkupToHTML(@NonNull MetaModelManager metaModelManager, @Nullable java.lang.Object context)
Method Detail |
---|
public static java.lang.String toString(@NonNull MetaModelManager metaModelManager, @Nullable java.lang.Object context, @NonNull MarkupElement element) throws java.lang.Exception
java.lang.Exception
public HTMLBuffer caseBulletElement(BulletElement object)
MarkupSwitch
caseBulletElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseCompoundElement(CompoundElement object)
MarkupSwitch
caseCompoundElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseFigureElement(FigureElement object)
MarkupSwitch
caseFigureElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseFigureRefElement(FigureRefElement object)
MarkupSwitch
caseFigureRefElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseFontElement(FontElement object)
MarkupSwitch
caseFontElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseFootnoteElement(FootnoteElement object)
MarkupSwitch
caseFootnoteElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseHeadingElement(HeadingElement object)
MarkupSwitch
caseHeadingElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseNewLineElement(NewLineElement object)
MarkupSwitch
caseNewLineElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseNullElement(NullElement object)
MarkupSwitch
caseNullElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseOCLCodeElement(OCLCodeElement object)
MarkupSwitch
caseOCLCodeElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseOCLEvalElement(OCLEvalElement object)
MarkupSwitch
caseOCLEvalElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseOCLTextElement(OCLTextElement object)
MarkupSwitch
caseOCLTextElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
public HTMLBuffer caseTextElement(TextElement object)
MarkupSwitch
caseTextElement
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
doSwitch(EObject)
@NonNull protected ExpressionInOCL createQuery(@NonNull java.lang.String oclString) throws ParserException
ParserException
public HTMLBuffer defaultCase(org.eclipse.emf.ecore.EObject object)
MarkupSwitch
defaultCase
in class MarkupSwitch<HTMLBuffer>
object
- the target of the switch.
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
@NonNull protected OCL getOCL()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |