Class GmlSwitch

Object
GmlSwitch

public class GmlSwitch extends Object
The Switch for the model's inheritance hierarchy. It supports the call 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.
See Also:
  • Field Details

    • modelPackage

      protected static GmlPackage modelPackage
      The cached model package
  • Constructor Details

    • GmlSwitch

      public GmlSwitch()
      Creates an instance of the switch.
  • Method Details

    • doSwitch

      public Object doSwitch(EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Returns:
      the first non-null result returned by a caseXXX call.
    • doSwitch

      protected Object doSwitch(EClass theEClass, EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Returns:
      the first non-null result returned by a caseXXX call.
    • doSwitch

      protected Object doSwitch(int classifierID, EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseAbstractGeometricPrimitiveType

      public Object caseAbstractGeometricPrimitiveType(AbstractGeometricPrimitiveType object)
      Returns the result of interpreting the object as an instance of 'Abstract Geometric Primitive Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Geometric Primitive Type'.
      See Also:
    • caseAbstractGeometryBaseType

      public Object caseAbstractGeometryBaseType(AbstractGeometryBaseType object)
      Returns the result of interpreting the object as an instance of 'Abstract Geometry Base Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Geometry Base Type'.
      See Also:
    • caseAbstractGeometryType

      public Object caseAbstractGeometryType(AbstractGeometryType object)
      Returns the result of interpreting the object as an instance of 'Abstract Geometry Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Geometry Type'.
      See Also:
    • caseAbstractGMLType

      public Object caseAbstractGMLType(AbstractGMLType object)
      Returns the result of interpreting the object as an instance of 'Abstract GML Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract GML Type'.
      See Also:
    • caseAbstractMetaDataType

      public Object caseAbstractMetaDataType(AbstractMetaDataType object)
      Returns the result of interpreting the object as an instance of 'Abstract Meta Data Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Meta Data Type'.
      See Also:
    • caseAbstractRingPropertyType

      public Object caseAbstractRingPropertyType(AbstractRingPropertyType object)
      Returns the result of interpreting the object as an instance of 'Abstract Ring Property Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Ring Property Type'.
      See Also:
    • caseAbstractRingType

      public Object caseAbstractRingType(AbstractRingType object)
      Returns the result of interpreting the object as an instance of 'Abstract Ring Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Ring Type'.
      See Also:
    • caseAbstractSurfaceType

      public Object caseAbstractSurfaceType(AbstractSurfaceType object)
      Returns the result of interpreting the object as an instance of 'Abstract Surface Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Surface Type'.
      See Also:
    • caseBoundingShapeType

      public Object caseBoundingShapeType(BoundingShapeType object)
      Returns the result of interpreting the object as an instance of 'Bounding Shape Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Bounding Shape Type'.
      See Also:
    • caseCodeListType

      public Object caseCodeListType(CodeListType object)
      Returns the result of interpreting the object as an instance of 'Code List Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Code List Type'.
      See Also:
    • caseCodeType

      public Object caseCodeType(CodeType object)
      Returns the result of interpreting the object as an instance of 'Code Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Code Type'.
      See Also:
    • caseDirectPositionType

      public Object caseDirectPositionType(DirectPositionType object)
      Returns the result of interpreting the object as an instance of 'Direct Position Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Direct Position Type'.
      See Also:
    • caseDocumentRoot

      public Object caseDocumentRoot(DocumentRoot object)
      Returns the result of interpreting the object as an instance of 'Document Root'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Document Root'.
      See Also:
    • caseEnvelopeType

      public Object caseEnvelopeType(EnvelopeType object)
      Returns the result of interpreting the object as an instance of 'Envelope Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Envelope Type'.
      See Also:
    • caseEnvelopeWithTimePeriodType

      public Object caseEnvelopeWithTimePeriodType(EnvelopeWithTimePeriodType object)
      Returns the result of interpreting the object as an instance of 'Envelope With Time Period Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Envelope With Time Period Type'.
      See Also:
    • caseGridEnvelopeType

      public Object caseGridEnvelopeType(GridEnvelopeType object)
      Returns the result of interpreting the object as an instance of 'Grid Envelope Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Grid Envelope Type'.
      See Also:
    • caseGridLimitsType

      public Object caseGridLimitsType(GridLimitsType object)
      Returns the result of interpreting the object as an instance of 'Grid Limits Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Grid Limits Type'.
      See Also:
    • caseGridType

      public Object caseGridType(GridType object)
      Returns the result of interpreting the object as an instance of 'Grid Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Grid Type'.
      See Also:
    • caseLinearRingType

      public Object caseLinearRingType(LinearRingType object)
      Returns the result of interpreting the object as an instance of 'Linear Ring Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Linear Ring Type'.
      See Also:
    • caseMetaDataPropertyType

      public Object caseMetaDataPropertyType(MetaDataPropertyType object)
      Returns the result of interpreting the object as an instance of 'Meta Data Property Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Meta Data Property Type'.
      See Also:
    • casePointType

      public Object casePointType(PointType object)
      Returns the result of interpreting the object as an instance of 'Point Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Point Type'.
      See Also:
    • casePolygonType

      public Object casePolygonType(PolygonType object)
      Returns the result of interpreting the object as an instance of 'Polygon Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Polygon Type'.
      See Also:
    • caseRectifiedGridType

      public Object caseRectifiedGridType(RectifiedGridType object)
      Returns the result of interpreting the object as an instance of 'Rectified Grid Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Rectified Grid Type'.
      See Also:
    • caseReferenceType

      public Object caseReferenceType(ReferenceType object)
      Returns the result of interpreting the object as an instance of 'Reference Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Reference Type'.
      See Also:
    • caseStringOrRefType

      public Object caseStringOrRefType(StringOrRefType object)
      Returns the result of interpreting the object as an instance of 'String Or Ref Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'String Or Ref Type'.
      See Also:
    • caseTimePositionType

      public Object caseTimePositionType(TimePositionType object)
      Returns the result of interpreting the object as an instance of 'Time Position Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Time Position Type'.
      See Also:
    • caseVectorType

      public Object caseVectorType(VectorType object)
      Returns the result of interpreting the object as an instance of 'Vector Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Vector Type'.
      See Also:
    • defaultCase

      public Object defaultCase(EObject object)
      Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also: