Class 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:
    SchemaPackage
    • Field Detail

      • modelPackage

        protected static SchemaPackage modelPackage
        The cached model package
    • Constructor Detail

      • SchemaSwitch

        public SchemaSwitch()
        Creates an instance of the switch.
    • Method Detail

      • isSwitchFor

        protected boolean isSwitchFor​(EPackage ePackage)
        Checks whether this is a switch for the given package.
        Specified by:
        isSwitchFor in class Switch<T>
        Parameters:
        ePackage - the package in question.
        Returns:
        whether this is a switch for the given package.
      • doSwitch

        protected T doSwitch​(int classifierID,
                             EObject theEObject)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Overrides:
        doSwitch in class Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
      • caseAll

        public T caseAll​(All object)
        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

        public T caseAnnotated​(Annotated object)
        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

        public T caseAnnotationType​(AnnotationType object)
        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

        public T caseAnyType​(AnyType object)
        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

        public T caseAppinfoType​(AppinfoType object)
        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

        public T caseAttribute​(Attribute object)
        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

        public T caseAttributeGroup​(AttributeGroup object)
        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

        public T caseAttributeGroupRef​(AttributeGroupRef object)
        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

        public T caseComplexContentType​(ComplexContentType object)
        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

        public T caseComplexRestrictionType​(ComplexRestrictionType object)
        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

        public T caseComplexType​(ComplexType object)
        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

        public T caseDocumentationType​(DocumentationType object)
        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

        public T 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)
      • caseElement

        public T caseElement​(Element object)
        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

        public T caseExplicitGroup​(ExplicitGroup object)
        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

        public T caseExtensionType​(ExtensionType object)
        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

        public T caseFacet​(Facet object)
        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

        public T caseFieldType​(FieldType object)
        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

        public T caseGroup​(Group object)
        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

        public T caseGroupRef​(GroupRef object)
        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

        public T caseImportType​(ImportType object)
        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

        public T caseIncludeType​(IncludeType object)
        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

        public T caseKeybase​(Keybase object)
        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

        public T caseKeyrefType​(KeyrefType object)
        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

        public T caseListType​(ListType object)
        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

        public T caseLocalComplexType​(LocalComplexType object)
        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

        public T caseLocalElement​(LocalElement object)
        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

        public T caseLocalSimpleType​(LocalSimpleType object)
        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

        public T caseNamedAttributeGroup​(NamedAttributeGroup object)
        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

        public T caseNamedGroup​(NamedGroup object)
        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

        public T caseNarrowMaxMin​(NarrowMaxMin object)
        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

        public T caseNoFixedFacet​(NoFixedFacet object)
        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

        public T caseNotationType​(NotationType object)
        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

        public T caseNumFacet​(NumFacet object)
        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

        public T caseOpenAttrs​(OpenAttrs object)
        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

        public T casePatternType​(PatternType object)
        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

        public T caseRealGroup​(RealGroup object)
        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

        public T caseRedefineType​(RedefineType object)
        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

        public T caseRestrictionType​(RestrictionType object)
        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

        public T caseRestrictionType1​(RestrictionType1 object)
        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

        public T caseSchemaType​(SchemaType object)
        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

        public T caseSelectorType​(SelectorType object)
        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

        public T caseSimpleContentType​(SimpleContentType object)
        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

        public T caseSimpleExplicitGroup​(SimpleExplicitGroup object)
        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

        public T caseSimpleExtensionType​(SimpleExtensionType object)
        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

        public T caseSimpleRestrictionType​(SimpleRestrictionType object)
        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

        public T caseSimpleType​(SimpleType object)
        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

        public T caseTopLevelAttribute​(TopLevelAttribute object)
        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

        public T caseTopLevelComplexType​(TopLevelComplexType object)
        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

        public T caseTopLevelElement​(TopLevelElement object)
        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

        public T caseTopLevelSimpleType​(TopLevelSimpleType object)
        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

        public T caseTotalDigitsType​(TotalDigitsType object)
        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

        public T caseUnionType​(UnionType object)
        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

        public T caseWhiteSpaceType​(WhiteSpaceType object)
        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

        public T caseWildcard​(Wildcard object)
        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

        public T 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.
        Overrides:
        defaultCase in class Switch<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)