Package net.opengis.gml.util
Class GmlSwitch
Object
GmlSwitch
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Abstract Geometric Primitive Type'.Returns the result of interpreting the object as an instance of 'Abstract Geometry Base Type'.Returns the result of interpreting the object as an instance of 'Abstract Geometry Type'.caseAbstractGMLType
(AbstractGMLType object) Returns the result of interpreting the object as an instance of 'Abstract GML Type'.Returns the result of interpreting the object as an instance of 'Abstract Meta Data Type'.Returns the result of interpreting the object as an instance of 'Abstract Ring Property Type'.caseAbstractRingType
(AbstractRingType object) Returns the result of interpreting the object as an instance of 'Abstract Ring Type'.Returns the result of interpreting the object as an instance of 'Abstract Surface Type'.Returns the result of interpreting the object as an instance of 'Bounding Shape Type'.caseCodeListType
(CodeListType object) Returns the result of interpreting the object as an instance of 'Code List Type'.caseCodeType
(CodeType object) Returns the result of interpreting the object as an instance of 'Code Type'.Returns the result of interpreting the object as an instance of 'Direct Position Type'.caseDocumentRoot
(DocumentRoot object) Returns the result of interpreting the object as an instance of 'Document Root'.caseEnvelopeType
(EnvelopeType object) Returns the result of interpreting the object as an instance of 'Envelope Type'.Returns the result of interpreting the object as an instance of 'Envelope With Time Period Type'.caseGridEnvelopeType
(GridEnvelopeType object) Returns the result of interpreting the object as an instance of 'Grid Envelope Type'.caseGridLimitsType
(GridLimitsType object) Returns the result of interpreting the object as an instance of 'Grid Limits Type'.caseGridType
(GridType object) Returns the result of interpreting the object as an instance of 'Grid Type'.caseLinearRingType
(LinearRingType object) Returns the result of interpreting the object as an instance of 'Linear Ring Type'.Returns the result of interpreting the object as an instance of 'Meta Data Property Type'.casePointType
(PointType object) Returns the result of interpreting the object as an instance of 'Point Type'.casePolygonType
(PolygonType object) Returns the result of interpreting the object as an instance of 'Polygon Type'.Returns the result of interpreting the object as an instance of 'Rectified Grid Type'.caseReferenceType
(ReferenceType object) Returns the result of interpreting the object as an instance of 'Reference Type'.caseStringOrRefType
(StringOrRefType object) Returns the result of interpreting the object as an instance of 'String Or Ref Type'.caseTimePositionType
(TimePositionType object) Returns the result of interpreting the object as an instance of 'Time Position Type'.caseVectorType
(VectorType object) Returns the result of interpreting the object as an instance of 'Vector Type'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected Object
doSwitch
(int classifierID, EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected Object
doSwitch
(EClass theEClass, EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.doSwitch
(EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
GmlSwitch
public GmlSwitch()Creates an instance of the switch.
-
-
Method Details
-
doSwitch
CallscaseXXX
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
CallscaseXXX
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
CallscaseXXX
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
-