Class 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:
    GmlPackage
    • Field Detail

      • modelPackage

        protected static GmlPackage modelPackage
        The cached model package
    • Constructor Detail

      • GmlSwitch

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

      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(EObject)
      • 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:
        doSwitch(org.eclipse.emf.ecore.EObject)