net.ogdf.ogml.util
Class OgmlAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by net.ogdf.ogml.util.OgmlAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class OgmlAdapterFactory
extends AdapterFactoryImpl

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

See Also:
OgmlPackage
Rating red
Generated:
This code was automatically generated.

Field Summary
protected static OgmlPackage modelPackage
          The cached model package.
protected  OgmlSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
OgmlAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createBooleanTypeAdapter()
          Creates a new adapter for an object of class 'Boolean Type'.
 Adapter createBoolTypeAdapter()
          Creates a new adapter for an object of class 'Bool Type'.
 Adapter createComposedTypeAdapter()
          Creates a new adapter for an object of class 'Composed Type'.
 Adapter createConstraintsTypeAdapter()
          Creates a new adapter for an object of class 'Constraints Type'.
 Adapter createDataTypeAdapter()
          Creates a new adapter for an object of class 'Data Type'.
 Adapter createDocumentRootAdapter()
          Creates a new adapter for an object of class 'Document Root'.
 Adapter createEdgeConstraintTypeAdapter()
          Creates a new adapter for an object of class 'Edge Constraint Type'.
 Adapter createEdgeLayoutTypeAdapter()
          Creates a new adapter for an object of class 'Edge Layout Type'.
 Adapter createEdgeStyleTemplateTypeAdapter()
          Creates a new adapter for an object of class 'Edge Style Template Type'.
 Adapter createEdgeTypeAdapter()
          Creates a new adapter for an object of class 'Edge Type'.
 Adapter createEndpointTypeAdapter()
          Creates a new adapter for an object of class 'Endpoint Type'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createFillTypeAdapter()
          Creates a new adapter for an object of class 'Fill Type'.
 Adapter createFontTypeAdapter()
          Creates a new adapter for an object of class 'Font Type'.
 Adapter createGraphStyleTypeAdapter()
          Creates a new adapter for an object of class 'Graph Style Type'.
 Adapter createGraphTypeAdapter()
          Creates a new adapter for an object of class 'Graph Type'.
 Adapter createIntTypeAdapter()
          Creates a new adapter for an object of class 'Int Type'.
 Adapter createKeysTypeAdapter()
          Creates a new adapter for an object of class 'Keys Type'.
 Adapter createKeyTypeAdapter()
          Creates a new adapter for an object of class 'Key Type'.
 Adapter createKeyValueTypeAdapter()
          Creates a new adapter for an object of class 'Key Value Type'.
 Adapter createLabelConstraintTypeAdapter()
          Creates a new adapter for an object of class 'Label Constraint Type'.
 Adapter createLabelLayoutTypeAdapter()
          Creates a new adapter for an object of class 'Label Layout Type'.
 Adapter createLabelStyleTemplateTypeAdapter()
          Creates a new adapter for an object of class 'Label Style Template Type'.
 Adapter createLabelTypeAdapter()
          Creates a new adapter for an object of class 'Label Type'.
 Adapter createLayoutTypeAdapter()
          Creates a new adapter for an object of class 'Layout Type'.
 Adapter createLineStyleTypeAdapter()
          Creates a new adapter for an object of class 'Line Style Type'.
 Adapter createLineTypeAdapter()
          Creates a new adapter for an object of class 'Line Type'.
 Adapter createLocationTypeAdapter()
          Creates a new adapter for an object of class 'Location Type'.
 Adapter createNodeConstraintTypeAdapter()
          Creates a new adapter for an object of class 'Node Constraint Type'.
 Adapter createNodeLayoutTypeAdapter()
          Creates a new adapter for an object of class 'Node Layout Type'.
 Adapter createNodeStyleTemplateTypeAdapter()
          Creates a new adapter for an object of class 'Node Style Template Type'.
 Adapter createNodeTypeAdapter()
          Creates a new adapter for an object of class 'Node Type'.
 Adapter createNumberTypeAdapter()
          Creates a new adapter for an object of class 'Number Type'.
 Adapter createOgmlTypeAdapter()
          Creates a new adapter for an object of class 'Type'.
 Adapter createPointTypeAdapter()
          Creates a new adapter for an object of class 'Point Type'.
 Adapter createSegmentTypeAdapter()
          Creates a new adapter for an object of class 'Segment Type'.
 Adapter createShapeType1Adapter()
          Creates a new adapter for an object of class 'Shape Type1'.
 Adapter createSourceStyleTypeAdapter()
          Creates a new adapter for an object of class 'Source Style Type'.
 Adapter createSourceTargetTypeAdapter()
          Creates a new adapter for an object of class 'Source Target Type'.
 Adapter createStructureTypeAdapter()
          Creates a new adapter for an object of class 'Structure Type'.
 Adapter createStylesTypeAdapter()
          Creates a new adapter for an object of class 'Styles Type'.
 Adapter createStyleTemplatesTypeAdapter()
          Creates a new adapter for an object of class 'Style Templates Type'.
 Adapter createTargetStyleTypeAdapter()
          Creates a new adapter for an object of class 'Target Style Type'.
 Adapter createTemplateTypeAdapter()
          Creates a new adapter for an object of class 'Template Type'.
 Adapter createTextTypeAdapter()
          Creates a new adapter for an object of class 'Text Type'.
 Adapter createUriTypeAdapter()
          Creates a new adapter for an object of class 'Uri Type'.
 boolean isFactoryForType(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 OgmlPackage modelPackage
The cached model package.

Generated:
This code was automatically generated.

modelSwitch

protected OgmlSwitch<Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Generated:
This code was automatically generated.
Constructor Detail

OgmlAdapterFactory

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

Generated:
This code was automatically generated.
Method Detail

isFactoryForType

public boolean isFactoryForType(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 AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
Generated:
This code was automatically generated.

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
Generated:
This code was automatically generated.

createBooleanTypeAdapter

public Adapter createBooleanTypeAdapter()
Creates a new adapter for an object of class 'Boolean Type'. 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:
BooleanType
Generated:
This code was automatically generated.

createBoolTypeAdapter

public Adapter createBoolTypeAdapter()
Creates a new adapter for an object of class 'Bool Type'. 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:
BoolType
Generated:
This code was automatically generated.

createComposedTypeAdapter

public Adapter createComposedTypeAdapter()
Creates a new adapter for an object of class 'Composed Type'. 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:
ComposedType
Generated:
This code was automatically generated.

createConstraintsTypeAdapter

public Adapter createConstraintsTypeAdapter()
Creates a new adapter for an object of class 'Constraints Type'. 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:
ConstraintsType
Generated:
This code was automatically generated.

createDataTypeAdapter

public Adapter createDataTypeAdapter()
Creates a new adapter for an object of class 'Data Type'. 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:
DataType
Generated:
This code was automatically generated.

createDocumentRootAdapter

public Adapter createDocumentRootAdapter()
Creates a new adapter for an object of class 'Document Root'. 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:
DocumentRoot
Generated:
This code was automatically generated.

createEdgeConstraintTypeAdapter

public Adapter createEdgeConstraintTypeAdapter()
Creates a new adapter for an object of class 'Edge Constraint Type'. 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:
EdgeConstraintType
Generated:
This code was automatically generated.

createEdgeLayoutTypeAdapter

public Adapter createEdgeLayoutTypeAdapter()
Creates a new adapter for an object of class 'Edge Layout Type'. 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:
EdgeLayoutType
Generated:
This code was automatically generated.

createEdgeStyleTemplateTypeAdapter

public Adapter createEdgeStyleTemplateTypeAdapter()
Creates a new adapter for an object of class 'Edge Style Template Type'. 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:
EdgeStyleTemplateType
Generated:
This code was automatically generated.

createEdgeTypeAdapter

public Adapter createEdgeTypeAdapter()
Creates a new adapter for an object of class 'Edge Type'. 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:
EdgeType
Generated:
This code was automatically generated.

createEndpointTypeAdapter

public Adapter createEndpointTypeAdapter()
Creates a new adapter for an object of class 'Endpoint Type'. 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:
EndpointType
Generated:
This code was automatically generated.

createFillTypeAdapter

public Adapter createFillTypeAdapter()
Creates a new adapter for an object of class 'Fill Type'. 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:
FillType
Generated:
This code was automatically generated.

createFontTypeAdapter

public Adapter createFontTypeAdapter()
Creates a new adapter for an object of class 'Font Type'. 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:
FontType
Generated:
This code was automatically generated.

createGraphStyleTypeAdapter

public Adapter createGraphStyleTypeAdapter()
Creates a new adapter for an object of class 'Graph Style Type'. 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:
GraphStyleType
Generated:
This code was automatically generated.

createGraphTypeAdapter

public Adapter createGraphTypeAdapter()
Creates a new adapter for an object of class 'Graph Type'. 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:
GraphType
Generated:
This code was automatically generated.

createIntTypeAdapter

public Adapter createIntTypeAdapter()
Creates a new adapter for an object of class 'Int Type'. 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:
IntType
Generated:
This code was automatically generated.

createKeysTypeAdapter

public Adapter createKeysTypeAdapter()
Creates a new adapter for an object of class 'Keys Type'. 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:
KeysType
Generated:
This code was automatically generated.

createKeyTypeAdapter

public Adapter createKeyTypeAdapter()
Creates a new adapter for an object of class 'Key Type'. 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:
KeyType
Generated:
This code was automatically generated.

createKeyValueTypeAdapter

public Adapter createKeyValueTypeAdapter()
Creates a new adapter for an object of class 'Key Value Type'. 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:
KeyValueType
Generated:
This code was automatically generated.

createLabelConstraintTypeAdapter

public Adapter createLabelConstraintTypeAdapter()
Creates a new adapter for an object of class 'Label Constraint Type'. 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:
LabelConstraintType
Generated:
This code was automatically generated.

createLabelLayoutTypeAdapter

public Adapter createLabelLayoutTypeAdapter()
Creates a new adapter for an object of class 'Label Layout Type'. 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:
LabelLayoutType
Generated:
This code was automatically generated.

createLabelStyleTemplateTypeAdapter

public Adapter createLabelStyleTemplateTypeAdapter()
Creates a new adapter for an object of class 'Label Style Template Type'. 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:
LabelStyleTemplateType
Generated:
This code was automatically generated.

createLabelTypeAdapter

public Adapter createLabelTypeAdapter()
Creates a new adapter for an object of class 'Label Type'. 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:
LabelType
Generated:
This code was automatically generated.

createLayoutTypeAdapter

public Adapter createLayoutTypeAdapter()
Creates a new adapter for an object of class 'Layout Type'. 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:
LayoutType
Generated:
This code was automatically generated.

createLineStyleTypeAdapter

public Adapter createLineStyleTypeAdapter()
Creates a new adapter for an object of class 'Line Style Type'. 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:
LineStyleType
Generated:
This code was automatically generated.

createLineTypeAdapter

public Adapter createLineTypeAdapter()
Creates a new adapter for an object of class 'Line Type'. 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:
LineType
Generated:
This code was automatically generated.

createLocationTypeAdapter

public Adapter createLocationTypeAdapter()
Creates a new adapter for an object of class 'Location Type'. 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:
LocationType
Generated:
This code was automatically generated.

createNodeConstraintTypeAdapter

public Adapter createNodeConstraintTypeAdapter()
Creates a new adapter for an object of class 'Node Constraint Type'. 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:
NodeConstraintType
Generated:
This code was automatically generated.

createNodeLayoutTypeAdapter

public Adapter createNodeLayoutTypeAdapter()
Creates a new adapter for an object of class 'Node Layout Type'. 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:
NodeLayoutType
Generated:
This code was automatically generated.

createNodeStyleTemplateTypeAdapter

public Adapter createNodeStyleTemplateTypeAdapter()
Creates a new adapter for an object of class 'Node Style Template Type'. 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:
NodeStyleTemplateType
Generated:
This code was automatically generated.

createNodeTypeAdapter

public Adapter createNodeTypeAdapter()
Creates a new adapter for an object of class 'Node Type'. 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:
NodeType
Generated:
This code was automatically generated.

createNumberTypeAdapter

public Adapter createNumberTypeAdapter()
Creates a new adapter for an object of class 'Number Type'. 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:
NumberType
Generated:
This code was automatically generated.

createOgmlTypeAdapter

public Adapter createOgmlTypeAdapter()
Creates a new adapter for an object of class 'Type'. 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:
OgmlType
Generated:
This code was automatically generated.

createPointTypeAdapter

public Adapter createPointTypeAdapter()
Creates a new adapter for an object of class 'Point Type'. 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:
PointType
Generated:
This code was automatically generated.

createSegmentTypeAdapter

public Adapter createSegmentTypeAdapter()
Creates a new adapter for an object of class 'Segment Type'. 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:
SegmentType
Generated:
This code was automatically generated.

createShapeType1Adapter

public Adapter createShapeType1Adapter()
Creates a new adapter for an object of class 'Shape Type1'. 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:
ShapeType1
Generated:
This code was automatically generated.

createSourceStyleTypeAdapter

public Adapter createSourceStyleTypeAdapter()
Creates a new adapter for an object of class 'Source Style Type'. 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:
SourceStyleType
Generated:
This code was automatically generated.

createSourceTargetTypeAdapter

public Adapter createSourceTargetTypeAdapter()
Creates a new adapter for an object of class 'Source Target Type'. 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:
SourceTargetType
Generated:
This code was automatically generated.

createStructureTypeAdapter

public Adapter createStructureTypeAdapter()
Creates a new adapter for an object of class 'Structure Type'. 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:
StructureType
Generated:
This code was automatically generated.

createStylesTypeAdapter

public Adapter createStylesTypeAdapter()
Creates a new adapter for an object of class 'Styles Type'. 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:
StylesType
Generated:
This code was automatically generated.

createStyleTemplatesTypeAdapter

public Adapter createStyleTemplatesTypeAdapter()
Creates a new adapter for an object of class 'Style Templates Type'. 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:
StyleTemplatesType
Generated:
This code was automatically generated.

createTargetStyleTypeAdapter

public Adapter createTargetStyleTypeAdapter()
Creates a new adapter for an object of class 'Target Style Type'. 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:
TargetStyleType
Generated:
This code was automatically generated.

createTemplateTypeAdapter

public Adapter createTemplateTypeAdapter()
Creates a new adapter for an object of class 'Template Type'. 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:
TemplateType
Generated:
This code was automatically generated.

createTextTypeAdapter

public Adapter createTextTypeAdapter()
Creates a new adapter for an object of class 'Text Type'. 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:
TextType
Generated:
This code was automatically generated.

createUriTypeAdapter

public Adapter createUriTypeAdapter()
Creates a new adapter for an object of class 'Uri Type'. 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:
UriType
Generated:
This code was automatically generated.

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.
Generated:
This code was automatically generated.