Class HtmlAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.nasdanika.html.model.html.util.HtmlAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
public class HtmlAdapterFactory extends AdapterFactoryImpl
The Adapter Factory for the model. It provides an adaptercreateXXXmethod for each class of the model.- See Also:
HtmlPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static HtmlPackagemodelPackageThe cached model package.protected HtmlSwitch<Adapter>modelSwitchThe switch that delegates to thecreateXXXmethods.
-
Constructor Summary
Constructors Constructor Description HtmlAdapterFactory()Creates an instance of the adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdaptercreateAdaptableAdapter()Creates a new adapter for an object of class 'Adaptable'.AdaptercreateAdapter(Notifier target)Creates an adapter for thetarget.AdaptercreateEObjectAdapter()Creates a new adapter for the default case.AdaptercreateFilterAdapter()Creates a new adapter for an object of class 'Filter'.AdaptercreateHtmlElementAdapter()Creates a new adapter for an object of class 'Element'.AdaptercreateIMarkedAdapter()Creates a new adapter for an object of class 'IMarked'.AdaptercreateMarkedAdapter()Creates a new adapter for an object of class 'Marked'.AdaptercreateModelElementAdapter()Creates a new adapter for an object of class 'Model Element'.AdaptercreatePageAdapter()Creates a new adapter for an object of class 'Page'.AdaptercreateScriptAdapter()Creates a new adapter for an object of class 'Script'.AdaptercreateScriptReferenceAdapter()Creates a new adapter for an object of class 'Script Reference'.AdaptercreateStylesheetAdapter()Creates a new adapter for an object of class 'Stylesheet'.AdaptercreateStylesheetReferenceAdapter()Creates a new adapter for an object of class 'Stylesheet Reference'.AdaptercreateTagAdapter()Creates a new adapter for an object of class 'Tag'.booleanisFactoryForType(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
-
-
-
-
Field Detail
-
modelPackage
protected static HtmlPackage modelPackage
The cached model package.
-
modelSwitch
protected HtmlSwitch<Adapter> modelSwitch
The switch that delegates to thecreateXXXmethods.
-
-
Constructor Detail
-
HtmlAdapterFactory
public HtmlAdapterFactory()
Creates an instance of the adapter factory.
-
-
Method Detail
-
isFactoryForType
public boolean isFactoryForType(Object object)
Returns whether this factory is applicable for the type of the object. This implementation returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceAdapterFactory- Overrides:
isFactoryForTypein classAdapterFactoryImpl- Returns:
- whether this factory is applicable for the type of the object.
-
createAdapter
public Adapter createAdapter(Notifier target)
Creates an adapter for thetarget.- Overrides:
createAdapterin classAdapterFactoryImpl- Parameters:
target- the object to adapt.- Returns:
- the adapter for the
target.
-
createHtmlElementAdapter
public Adapter createHtmlElementAdapter()
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:
HtmlElement
-
createTagAdapter
public Adapter createTagAdapter()
Creates a new adapter for an object of class 'Tag'. 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:
Tag
-
createPageAdapter
public Adapter createPageAdapter()
Creates a new adapter for an object of class 'Page'. 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:
Page
-
createStylesheetAdapter
public Adapter createStylesheetAdapter()
Creates a new adapter for an object of class 'Stylesheet'. 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:
Stylesheet
-
createStylesheetReferenceAdapter
public Adapter createStylesheetReferenceAdapter()
Creates a new adapter for an object of class 'Stylesheet Reference'. 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:
StylesheetReference
-
createScriptAdapter
public Adapter createScriptAdapter()
Creates a new adapter for an object of class 'Script'. 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:
Script
-
createScriptReferenceAdapter
public Adapter createScriptReferenceAdapter()
Creates a new adapter for an object of class 'Script Reference'. 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:
ScriptReference
-
createIMarkedAdapter
public Adapter createIMarkedAdapter()
Creates a new adapter for an object of class 'IMarked'. 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:
Marked
-
createMarkedAdapter
public Adapter createMarkedAdapter()
Creates a new adapter for an object of class 'Marked'. 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:
Marked
-
createAdaptableAdapter
public Adapter createAdaptableAdapter()
Creates a new adapter for an object of class 'Adaptable'. 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:
Adaptable
-
createModelElementAdapter
public Adapter createModelElementAdapter()
Creates a new adapter for an object of class 'Model 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:
ModelElement
-
createFilterAdapter
public Adapter createFilterAdapter()
Creates a new adapter for an object of class 'Filter'. 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:
Filter
-
createEObjectAdapter
public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
-
-