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 SummaryFields Modifier and Type Field Description protected static GmlPackagemodelPackageThe cached model package
 - 
Constructor SummaryConstructors Constructor Description GmlSwitch()Creates an instance of the switch.
 - 
Method SummaryAll 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- 
modelPackageprotected static GmlPackage modelPackage The cached model package
 
- 
 - 
Method Detail- 
doSwitchpublic 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.
 
 - 
doSwitchprotected 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.
 
 - 
doSwitchprotected 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.
 
 - 
caseAbstractGeometricPrimitiveTypepublic 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)
 
 - 
caseAbstractGeometryBaseTypepublic 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)
 
 - 
caseAbstractGeometryTypepublic 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)
 
 - 
caseAbstractGMLTypepublic 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)
 
 - 
caseAbstractMetaDataTypepublic 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)
 
 - 
caseAbstractRingPropertyTypepublic 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)
 
 - 
caseAbstractRingTypepublic 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)
 
 - 
caseAbstractSurfaceTypepublic 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)
 
 - 
caseBoundingShapeTypepublic 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)
 
 - 
caseCodeListTypepublic 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)
 
 - 
caseCodeTypepublic 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)
 
 - 
caseDirectPositionTypepublic 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)
 
 - 
caseDocumentRootpublic 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)
 
 - 
caseEnvelopeTypepublic 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)
 
 - 
caseEnvelopeWithTimePeriodTypepublic 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)
 
 - 
caseGridEnvelopeTypepublic 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)
 
 - 
caseGridLimitsTypepublic 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)
 
 - 
caseGridTypepublic 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)
 
 - 
caseLinearRingTypepublic 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)
 
 - 
caseMetaDataPropertyTypepublic 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)
 
 - 
casePointTypepublic 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)
 
 - 
casePolygonTypepublic 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)
 
 - 
caseRectifiedGridTypepublic 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)
 
 - 
caseReferenceTypepublic 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)
 
 - 
caseStringOrRefTypepublic 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)
 
 - 
caseTimePositionTypepublic 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)
 
 - 
caseVectorTypepublic 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)
 
 - 
defaultCasepublic 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)
 
 
- 
 
-