org.eclipse.ocl.examples.xtext.markup.util
Class MarkupAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.ocl.examples.xtext.markup.util.MarkupAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class MarkupAdapterFactory
extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
MarkupPackage
Generated

Field Summary
protected static MarkupPackage modelPackage
          The cached model package.
protected  MarkupSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
MarkupAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
          Creates an adapter for the target.
 org.eclipse.emf.common.notify.Adapter createBulletElementAdapter()
          Creates a new adapter for an object of class 'Bullet Element'.
 org.eclipse.emf.common.notify.Adapter createCompoundElementAdapter()
          Creates a new adapter for an object of class 'Compound Element'.
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 org.eclipse.emf.common.notify.Adapter createFigureElementAdapter()
          Creates a new adapter for an object of class 'Figure Element'.
 org.eclipse.emf.common.notify.Adapter createFigureRefElementAdapter()
          Creates a new adapter for an object of class 'Figure Ref Element'.
 org.eclipse.emf.common.notify.Adapter createFontElementAdapter()
          Creates a new adapter for an object of class 'Font Element'.
 org.eclipse.emf.common.notify.Adapter createFootnoteElementAdapter()
          Creates a new adapter for an object of class 'Footnote Element'.
 org.eclipse.emf.common.notify.Adapter createHeadingElementAdapter()
          Creates a new adapter for an object of class 'Heading Element'.
 org.eclipse.emf.common.notify.Adapter createMarkupAdapter()
          Creates a new adapter for an object of class 'Markup'.
 org.eclipse.emf.common.notify.Adapter createMarkupElementAdapter()
          Creates a new adapter for an object of class 'Element'.
 org.eclipse.emf.common.notify.Adapter createNewLineElementAdapter()
          Creates a new adapter for an object of class 'New Line Element'.
 org.eclipse.emf.common.notify.Adapter createNullElementAdapter()
          Creates a new adapter for an object of class 'Null Element'.
 org.eclipse.emf.common.notify.Adapter createOCLCodeElementAdapter()
          Creates a new adapter for an object of class 'OCL Code Element'.
 org.eclipse.emf.common.notify.Adapter createOCLEvalElementAdapter()
          Creates a new adapter for an object of class 'OCL Eval Element'.
 org.eclipse.emf.common.notify.Adapter createOCLTextElementAdapter()
          Creates a new adapter for an object of class 'OCL Text Element'.
 org.eclipse.emf.common.notify.Adapter createTextElementAdapter()
          Creates a new adapter for an object of class 'Text Element'.
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object.
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static MarkupPackage modelPackage
The cached model package.

Generated

modelSwitch

protected MarkupSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Generated
Constructor Detail

MarkupAdapterFactory

public MarkupAdapterFactory()
Creates an instance of the adapter factory.

Generated
Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

Specified by:
isFactoryForType in interface org.eclipse.emf.common.notify.AdapterFactory
Overrides:
isFactoryForType in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
Generated

createAdapter

public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
Generated

createBulletElementAdapter

public org.eclipse.emf.common.notify.Adapter createBulletElementAdapter()
Creates a new adapter for an object of class 'Bullet Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
BulletElement
Generated

createCompoundElementAdapter

public org.eclipse.emf.common.notify.Adapter createCompoundElementAdapter()
Creates a new adapter for an object of class 'Compound Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
CompoundElement
Generated

createFigureElementAdapter

public org.eclipse.emf.common.notify.Adapter createFigureElementAdapter()
Creates a new adapter for an object of class 'Figure Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
FigureElement
Generated

createFigureRefElementAdapter

public org.eclipse.emf.common.notify.Adapter createFigureRefElementAdapter()
Creates a new adapter for an object of class 'Figure Ref Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
FigureRefElement
Generated

createFontElementAdapter

public org.eclipse.emf.common.notify.Adapter createFontElementAdapter()
Creates a new adapter for an object of class 'Font Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
FontElement
Generated

createFootnoteElementAdapter

public org.eclipse.emf.common.notify.Adapter createFootnoteElementAdapter()
Creates a new adapter for an object of class 'Footnote Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
FootnoteElement
Generated

createHeadingElementAdapter

public org.eclipse.emf.common.notify.Adapter createHeadingElementAdapter()
Creates a new adapter for an object of class 'Heading Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
HeadingElement
Generated

createMarkupAdapter

public org.eclipse.emf.common.notify.Adapter createMarkupAdapter()
Creates a new adapter for an object of class 'Markup'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Markup
Generated

createMarkupElementAdapter

public org.eclipse.emf.common.notify.Adapter createMarkupElementAdapter()
Creates a new adapter for an object of class 'Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
MarkupElement
Generated

createNewLineElementAdapter

public org.eclipse.emf.common.notify.Adapter createNewLineElementAdapter()
Creates a new adapter for an object of class 'New Line Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
NewLineElement
Generated

createNullElementAdapter

public org.eclipse.emf.common.notify.Adapter createNullElementAdapter()
Creates a new adapter for an object of class 'Null Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
NullElement
Generated

createOCLCodeElementAdapter

public org.eclipse.emf.common.notify.Adapter createOCLCodeElementAdapter()
Creates a new adapter for an object of class 'OCL Code Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
OCLCodeElement
Generated

createOCLEvalElementAdapter

public org.eclipse.emf.common.notify.Adapter createOCLEvalElementAdapter()
Creates a new adapter for an object of class 'OCL Eval Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
OCLEvalElement
Generated

createOCLTextElementAdapter

public org.eclipse.emf.common.notify.Adapter createOCLTextElementAdapter()
Creates a new adapter for an object of class 'OCL Text Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
OCLTextElement
Generated

createTextElementAdapter

public org.eclipse.emf.common.notify.Adapter createTextElementAdapter()
Creates a new adapter for an object of class 'Text Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
TextElement
Generated

createEObjectAdapter

public org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.
Generated