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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 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.doSwitch(EObject theEObject) CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.
- 
Field Details- 
modelPackageThe cached model package
 
- 
- 
Constructor Details- 
GmlSwitchpublic GmlSwitch()Creates an instance of the switch.
 
- 
- 
Method Details- 
doSwitchCallscaseXXXfor 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.
 
- 
doSwitchCallscaseXXXfor 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.
 
- 
doSwitchCallscaseXXXfor 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.
 
- 
caseAbstractGeometricPrimitiveTypeReturns 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:
 
- 
caseAbstractGeometryBaseTypeReturns 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:
 
- 
caseAbstractGeometryTypeReturns 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:
 
- 
caseAbstractGMLTypeReturns 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:
 
- 
caseAbstractMetaDataTypeReturns 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:
 
- 
caseAbstractRingPropertyTypeReturns 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:
 
- 
caseAbstractRingTypeReturns 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:
 
- 
caseAbstractSurfaceTypeReturns 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:
 
- 
caseBoundingShapeTypeReturns 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:
 
- 
caseCodeListTypeReturns 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:
 
- 
caseCodeTypeReturns 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:
 
- 
caseDirectPositionTypeReturns 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:
 
- 
caseDocumentRootReturns 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:
 
- 
caseEnvelopeTypeReturns 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:
 
- 
caseEnvelopeWithTimePeriodTypeReturns 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:
 
- 
caseGridEnvelopeTypeReturns 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:
 
- 
caseGridLimitsTypeReturns 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:
 
- 
caseGridTypeReturns 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:
 
- 
caseLinearRingTypeReturns 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:
 
- 
caseMetaDataPropertyTypeReturns 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:
 
- 
casePointTypeReturns 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:
 
- 
casePolygonTypeReturns 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:
 
- 
caseRectifiedGridTypeReturns 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:
 
- 
caseReferenceTypeReturns 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:
 
- 
caseStringOrRefTypeReturns 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:
 
- 
caseTimePositionTypeReturns 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:
 
- 
caseVectorTypeReturns 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:
 
- 
defaultCaseReturns 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:
 
 
-