Package org.w3._2001.schema.util
Class SchemaSwitch<T>
Object
Switch<T>
SchemaSwitch<T>
public class SchemaSwitch<T>
extends Switch<T>
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 'All'.caseAnnotated
(Annotated object) Returns the result of interpreting the object as an instance of 'Annotated'.caseAnnotationType
(AnnotationType object) Returns the result of interpreting the object as an instance of 'Annotation Type'.caseAnyType
(AnyType object) Returns the result of interpreting the object as an instance of 'Any Type'.caseAppinfoType
(AppinfoType object) Returns the result of interpreting the object as an instance of 'Appinfo Type'.caseAttribute
(Attribute object) Returns the result of interpreting the object as an instance of 'Attribute'.caseAttributeGroup
(AttributeGroup object) Returns the result of interpreting the object as an instance of 'Attribute Group'.Returns the result of interpreting the object as an instance of 'Attribute Group Ref'.Returns the result of interpreting the object as an instance of 'Complex Content Type'.Returns the result of interpreting the object as an instance of 'Complex Restriction Type'.caseComplexType
(ComplexType object) Returns the result of interpreting the object as an instance of 'Complex Type'.Returns the result of interpreting the object as an instance of 'Documentation Type'.caseDocumentRoot
(DocumentRoot object) Returns the result of interpreting the object as an instance of 'Document Root'.caseElement
(Element object) Returns the result of interpreting the object as an instance of 'Element'.caseExplicitGroup
(ExplicitGroup object) Returns the result of interpreting the object as an instance of 'Explicit Group'.caseExtensionType
(ExtensionType object) Returns the result of interpreting the object as an instance of 'Extension Type'.Returns the result of interpreting the object as an instance of 'Facet'.caseFieldType
(FieldType object) Returns the result of interpreting the object as an instance of 'Field Type'.Returns the result of interpreting the object as an instance of 'Group'.caseGroupRef
(GroupRef object) Returns the result of interpreting the object as an instance of 'Group Ref'.caseImportType
(ImportType object) Returns the result of interpreting the object as an instance of 'Import Type'.caseIncludeType
(IncludeType object) Returns the result of interpreting the object as an instance of 'Include Type'.caseKeybase
(Keybase object) Returns the result of interpreting the object as an instance of 'Keybase'.caseKeyrefType
(KeyrefType object) Returns the result of interpreting the object as an instance of 'Keyref Type'.caseListType
(ListType object) Returns the result of interpreting the object as an instance of 'List Type'.caseLocalComplexType
(LocalComplexType object) Returns the result of interpreting the object as an instance of 'Local Complex Type'.caseLocalElement
(LocalElement object) Returns the result of interpreting the object as an instance of 'Local Element'.caseLocalSimpleType
(LocalSimpleType object) Returns the result of interpreting the object as an instance of 'Local Simple Type'.Returns the result of interpreting the object as an instance of 'Named Attribute Group'.caseNamedGroup
(NamedGroup object) Returns the result of interpreting the object as an instance of 'Named Group'.caseNarrowMaxMin
(NarrowMaxMin object) Returns the result of interpreting the object as an instance of 'Narrow Max Min'.caseNoFixedFacet
(NoFixedFacet object) Returns the result of interpreting the object as an instance of 'No Fixed Facet'.caseNotationType
(NotationType object) Returns the result of interpreting the object as an instance of 'Notation Type'.caseNumFacet
(NumFacet object) Returns the result of interpreting the object as an instance of 'Num Facet'.caseOpenAttrs
(OpenAttrs object) Returns the result of interpreting the object as an instance of 'Open Attrs'.casePatternType
(PatternType object) Returns the result of interpreting the object as an instance of 'Pattern Type'.caseRealGroup
(RealGroup object) Returns the result of interpreting the object as an instance of 'Real Group'.caseRedefineType
(RedefineType object) Returns the result of interpreting the object as an instance of 'Redefine Type'.caseRestrictionType
(RestrictionType object) Returns the result of interpreting the object as an instance of 'Restriction Type'.caseRestrictionType1
(RestrictionType1 object) Returns the result of interpreting the object as an instance of 'Restriction Type1'.caseSchemaType
(SchemaType object) Returns the result of interpreting the object as an instance of 'Type'.caseSelectorType
(SelectorType object) Returns the result of interpreting the object as an instance of 'Selector Type'.Returns the result of interpreting the object as an instance of 'Simple Content Type'.Returns the result of interpreting the object as an instance of 'Simple Explicit Group'.Returns the result of interpreting the object as an instance of 'Simple Extension Type'.Returns the result of interpreting the object as an instance of 'Simple Restriction Type'.caseSimpleType
(SimpleType object) Returns the result of interpreting the object as an instance of 'Simple Type'.Returns the result of interpreting the object as an instance of 'Top Level Attribute'.Returns the result of interpreting the object as an instance of 'Top Level Complex Type'.caseTopLevelElement
(TopLevelElement object) Returns the result of interpreting the object as an instance of 'Top Level Element'.Returns the result of interpreting the object as an instance of 'Top Level Simple Type'.caseTotalDigitsType
(TotalDigitsType object) Returns the result of interpreting the object as an instance of 'Total Digits Type'.caseUnionType
(UnionType object) Returns the result of interpreting the object as an instance of 'Union Type'.caseWhiteSpaceType
(WhiteSpaceType object) Returns the result of interpreting the object as an instance of 'White Space Type'.caseWildcard
(Wildcard object) Returns the result of interpreting the object as an instance of 'Wildcard'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch
(int classifierID, EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(EPackage ePackage) Checks whether this is a switch for the given package.Methods inherited from class Switch
doSwitch, doSwitch
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
SchemaSwitch
public SchemaSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classSwitch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseAll
Returns the result of interpreting the object as an instance of 'All'. 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 'All'.
- See Also:
-
doSwitch(EObject)
-
caseAnnotated
Returns the result of interpreting the object as an instance of 'Annotated'. 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 'Annotated'.
- See Also:
-
doSwitch(EObject)
-
caseAnnotationType
Returns the result of interpreting the object as an instance of 'Annotation 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 'Annotation Type'.
- See Also:
-
doSwitch(EObject)
-
caseAnyType
Returns the result of interpreting the object as an instance of 'Any 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 'Any Type'.
- See Also:
-
doSwitch(EObject)
-
caseAppinfoType
Returns the result of interpreting the object as an instance of 'Appinfo 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 'Appinfo Type'.
- See Also:
-
doSwitch(EObject)
-
caseAttribute
Returns the result of interpreting the object as an instance of 'Attribute'. 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 'Attribute'.
- See Also:
-
doSwitch(EObject)
-
caseAttributeGroup
Returns the result of interpreting the object as an instance of 'Attribute Group'. 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 'Attribute Group'.
- See Also:
-
doSwitch(EObject)
-
caseAttributeGroupRef
Returns the result of interpreting the object as an instance of 'Attribute Group Ref'. 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 'Attribute Group Ref'.
- See Also:
-
doSwitch(EObject)
-
caseComplexContentType
Returns the result of interpreting the object as an instance of 'Complex Content 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 'Complex Content Type'.
- See Also:
-
doSwitch(EObject)
-
caseComplexRestrictionType
Returns the result of interpreting the object as an instance of 'Complex Restriction 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 'Complex Restriction Type'.
- See Also:
-
doSwitch(EObject)
-
caseComplexType
Returns the result of interpreting the object as an instance of 'Complex 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 'Complex Type'.
- See Also:
-
doSwitch(EObject)
-
caseDocumentationType
Returns the result of interpreting the object as an instance of 'Documentation 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 'Documentation Type'.
- See Also:
-
doSwitch(EObject)
-
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:
-
doSwitch(EObject)
-
caseElement
Returns the result of interpreting the object as an instance of 'Element'. 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 'Element'.
- See Also:
-
doSwitch(EObject)
-
caseExplicitGroup
Returns the result of interpreting the object as an instance of 'Explicit Group'. 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 'Explicit Group'.
- See Also:
-
doSwitch(EObject)
-
caseExtensionType
Returns the result of interpreting the object as an instance of 'Extension 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 'Extension Type'.
- See Also:
-
doSwitch(EObject)
-
caseFacet
Returns the result of interpreting the object as an instance of 'Facet'. 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 'Facet'.
- See Also:
-
doSwitch(EObject)
-
caseFieldType
Returns the result of interpreting the object as an instance of 'Field 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 'Field Type'.
- See Also:
-
doSwitch(EObject)
-
caseGroup
Returns the result of interpreting the object as an instance of 'Group'. 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 'Group'.
- See Also:
-
doSwitch(EObject)
-
caseGroupRef
Returns the result of interpreting the object as an instance of 'Group Ref'. 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 'Group Ref'.
- See Also:
-
doSwitch(EObject)
-
caseImportType
Returns the result of interpreting the object as an instance of 'Import 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 'Import Type'.
- See Also:
-
doSwitch(EObject)
-
caseIncludeType
Returns the result of interpreting the object as an instance of 'Include 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 'Include Type'.
- See Also:
-
doSwitch(EObject)
-
caseKeybase
Returns the result of interpreting the object as an instance of 'Keybase'. 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 'Keybase'.
- See Also:
-
doSwitch(EObject)
-
caseKeyrefType
Returns the result of interpreting the object as an instance of 'Keyref 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 'Keyref Type'.
- See Also:
-
doSwitch(EObject)
-
caseListType
Returns the result of interpreting the object as an instance of '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 'List Type'.
- See Also:
-
doSwitch(EObject)
-
caseLocalComplexType
Returns the result of interpreting the object as an instance of 'Local Complex 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 'Local Complex Type'.
- See Also:
-
doSwitch(EObject)
-
caseLocalElement
Returns the result of interpreting the object as an instance of 'Local Element'. 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 'Local Element'.
- See Also:
-
doSwitch(EObject)
-
caseLocalSimpleType
Returns the result of interpreting the object as an instance of 'Local Simple 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 'Local Simple Type'.
- See Also:
-
doSwitch(EObject)
-
caseNamedAttributeGroup
Returns the result of interpreting the object as an instance of 'Named Attribute Group'. 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 'Named Attribute Group'.
- See Also:
-
doSwitch(EObject)
-
caseNamedGroup
Returns the result of interpreting the object as an instance of 'Named Group'. 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 'Named Group'.
- See Also:
-
doSwitch(EObject)
-
caseNarrowMaxMin
Returns the result of interpreting the object as an instance of 'Narrow Max Min'. 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 'Narrow Max Min'.
- See Also:
-
doSwitch(EObject)
-
caseNoFixedFacet
Returns the result of interpreting the object as an instance of 'No Fixed Facet'. 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 'No Fixed Facet'.
- See Also:
-
doSwitch(EObject)
-
caseNotationType
Returns the result of interpreting the object as an instance of 'Notation 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 'Notation Type'.
- See Also:
-
doSwitch(EObject)
-
caseNumFacet
Returns the result of interpreting the object as an instance of 'Num Facet'. 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 'Num Facet'.
- See Also:
-
doSwitch(EObject)
-
caseOpenAttrs
Returns the result of interpreting the object as an instance of 'Open Attrs'. 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 'Open Attrs'.
- See Also:
-
doSwitch(EObject)
-
casePatternType
Returns the result of interpreting the object as an instance of 'Pattern 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 'Pattern Type'.
- See Also:
-
doSwitch(EObject)
-
caseRealGroup
Returns the result of interpreting the object as an instance of 'Real Group'. 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 'Real Group'.
- See Also:
-
doSwitch(EObject)
-
caseRedefineType
Returns the result of interpreting the object as an instance of 'Redefine 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 'Redefine Type'.
- See Also:
-
doSwitch(EObject)
-
caseRestrictionType
Returns the result of interpreting the object as an instance of 'Restriction 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 'Restriction Type'.
- See Also:
-
doSwitch(EObject)
-
caseRestrictionType1
Returns the result of interpreting the object as an instance of 'Restriction Type1'. 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 'Restriction Type1'.
- See Also:
-
doSwitch(EObject)
-
caseSchemaType
Returns the result of interpreting the object as an instance of '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 'Type'.
- See Also:
-
doSwitch(EObject)
-
caseSelectorType
Returns the result of interpreting the object as an instance of 'Selector 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 'Selector Type'.
- See Also:
-
doSwitch(EObject)
-
caseSimpleContentType
Returns the result of interpreting the object as an instance of 'Simple Content 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 'Simple Content Type'.
- See Also:
-
doSwitch(EObject)
-
caseSimpleExplicitGroup
Returns the result of interpreting the object as an instance of 'Simple Explicit Group'. 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 'Simple Explicit Group'.
- See Also:
-
doSwitch(EObject)
-
caseSimpleExtensionType
Returns the result of interpreting the object as an instance of 'Simple Extension 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 'Simple Extension Type'.
- See Also:
-
doSwitch(EObject)
-
caseSimpleRestrictionType
Returns the result of interpreting the object as an instance of 'Simple Restriction 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 'Simple Restriction Type'.
- See Also:
-
doSwitch(EObject)
-
caseSimpleType
Returns the result of interpreting the object as an instance of 'Simple 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 'Simple Type'.
- See Also:
-
doSwitch(EObject)
-
caseTopLevelAttribute
Returns the result of interpreting the object as an instance of 'Top Level Attribute'. 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 'Top Level Attribute'.
- See Also:
-
doSwitch(EObject)
-
caseTopLevelComplexType
Returns the result of interpreting the object as an instance of 'Top Level Complex 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 'Top Level Complex Type'.
- See Also:
-
doSwitch(EObject)
-
caseTopLevelElement
Returns the result of interpreting the object as an instance of 'Top Level Element'. 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 'Top Level Element'.
- See Also:
-
doSwitch(EObject)
-
caseTopLevelSimpleType
Returns the result of interpreting the object as an instance of 'Top Level Simple 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 'Top Level Simple Type'.
- See Also:
-
doSwitch(EObject)
-
caseTotalDigitsType
Returns the result of interpreting the object as an instance of 'Total Digits 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 'Total Digits Type'.
- See Also:
-
doSwitch(EObject)
-
caseUnionType
Returns the result of interpreting the object as an instance of 'Union 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 'Union Type'.
- See Also:
-
doSwitch(EObject)
-
caseWhiteSpaceType
Returns the result of interpreting the object as an instance of 'White Space 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 'White Space Type'.
- See Also:
-
doSwitch(EObject)
-
caseWildcard
Returns the result of interpreting the object as an instance of 'Wildcard'. 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 'Wildcard'.
- See Also:
-
doSwitch(EObject)
-
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.- Overrides:
defaultCase
in classSwitch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
-