Package net.opengis.gml.util
Class GmlSwitch
- Object
-
- GmlSwitch
-
public class GmlSwitch extends Object
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)to invoke thecaseXXXmethod 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 Summary
Fields Modifier and Type Field Description protected static GmlPackagemodelPackageThe cached model package
-
Constructor Summary
Constructors Constructor Description GmlSwitch()Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcaseAbstractGeometricPrimitiveType(AbstractGeometricPrimitiveType object)Returns the result of interpreting the object as an instance of 'Abstract Geometric Primitive Type'.ObjectcaseAbstractGeometryBaseType(AbstractGeometryBaseType object)Returns the result of interpreting the object as an instance of 'Abstract Geometry Base Type'.ObjectcaseAbstractGeometryType(AbstractGeometryType object)Returns the result of interpreting the object as an instance of 'Abstract Geometry Type'.ObjectcaseAbstractGMLType(AbstractGMLType object)Returns the result of interpreting the object as an instance of 'Abstract GML Type'.ObjectcaseAbstractMetaDataType(AbstractMetaDataType object)Returns the result of interpreting the object as an instance of 'Abstract Meta Data Type'.ObjectcaseAbstractRingPropertyType(AbstractRingPropertyType object)Returns the result of interpreting the object as an instance of 'Abstract Ring Property Type'.ObjectcaseAbstractRingType(AbstractRingType object)Returns the result of interpreting the object as an instance of 'Abstract Ring Type'.ObjectcaseAbstractSurfaceType(AbstractSurfaceType object)Returns the result of interpreting the object as an instance of 'Abstract Surface Type'.ObjectcaseBoundingShapeType(BoundingShapeType object)Returns the result of interpreting the object as an instance of 'Bounding Shape Type'.ObjectcaseCodeListType(CodeListType object)Returns the result of interpreting the object as an instance of 'Code List Type'.ObjectcaseCodeType(CodeType object)Returns the result of interpreting the object as an instance of 'Code Type'.ObjectcaseDirectPositionType(DirectPositionType object)Returns the result of interpreting the object as an instance of 'Direct Position Type'.ObjectcaseDocumentRoot(DocumentRoot object)Returns the result of interpreting the object as an instance of 'Document Root'.ObjectcaseEnvelopeType(EnvelopeType object)Returns the result of interpreting the object as an instance of 'Envelope Type'.ObjectcaseEnvelopeWithTimePeriodType(EnvelopeWithTimePeriodType object)Returns the result of interpreting the object as an instance of 'Envelope With Time Period Type'.ObjectcaseGridEnvelopeType(GridEnvelopeType object)Returns the result of interpreting the object as an instance of 'Grid Envelope Type'.ObjectcaseGridLimitsType(GridLimitsType object)Returns the result of interpreting the object as an instance of 'Grid Limits Type'.ObjectcaseGridType(GridType object)Returns the result of interpreting the object as an instance of 'Grid Type'.ObjectcaseLinearRingType(LinearRingType object)Returns the result of interpreting the object as an instance of 'Linear Ring Type'.ObjectcaseMetaDataPropertyType(MetaDataPropertyType object)Returns the result of interpreting the object as an instance of 'Meta Data Property Type'.ObjectcasePointType(PointType object)Returns the result of interpreting the object as an instance of 'Point Type'.ObjectcasePolygonType(PolygonType object)Returns the result of interpreting the object as an instance of 'Polygon Type'.ObjectcaseRectifiedGridType(RectifiedGridType object)Returns the result of interpreting the object as an instance of 'Rectified Grid Type'.ObjectcaseReferenceType(ReferenceType object)Returns the result of interpreting the object as an instance of 'Reference Type'.ObjectcaseStringOrRefType(StringOrRefType object)Returns the result of interpreting the object as an instance of 'String Or Ref Type'.ObjectcaseTimePositionType(TimePositionType object)Returns the result of interpreting the object as an instance of 'Time Position Type'.ObjectcaseVectorType(VectorType object)Returns the result of interpreting the object as an instance of 'Vector Type'.ObjectdefaultCase(EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected ObjectdoSwitch(int classifierID, EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected ObjectdoSwitch(EClass theEClass, EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.ObjectdoSwitch(EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.
-
-
-
Field Detail
-
modelPackage
protected static GmlPackage modelPackage
The cached model package
-
-
Method Detail
-
doSwitch
public Object doSwitch(EObject theEObject)
CallscaseXXXfor 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
caseXXXcall.
-
doSwitch
protected Object doSwitch(EClass theEClass, EObject theEObject)
CallscaseXXXfor 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
caseXXXcall.
-
doSwitch
protected Object doSwitch(int classifierID, EObject theEObject)
CallscaseXXXfor 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
caseXXXcall.
-
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)
-
-