public class XSDSwitch<T> extends Switch<T>
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.
XSDPackage
Modifier and Type | Field and Description |
---|---|
protected static XSDPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
XSDSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseXSDAnnotation(XSDAnnotation object)
Returns the result of interpreting the object as an instance of 'Annotation'.
|
T |
caseXSDAttributeDeclaration(XSDAttributeDeclaration object)
Returns the result of interpreting the object as an instance of 'Attribute Declaration'.
|
T |
caseXSDAttributeGroupContent(XSDAttributeGroupContent object)
Returns the result of interpreting the object as an instance of 'Attribute Group Content'.
|
T |
caseXSDAttributeGroupDefinition(XSDAttributeGroupDefinition object)
Returns the result of interpreting the object as an instance of 'Attribute Group Definition'.
|
T |
caseXSDAttributeUse(XSDAttributeUse object)
Returns the result of interpreting the object as an instance of 'Attribute Use'.
|
T |
caseXSDBoundedFacet(XSDBoundedFacet object)
Returns the result of interpreting the object as an instance of 'Bounded Facet'.
|
T |
caseXSDCardinalityFacet(XSDCardinalityFacet object)
Returns the result of interpreting the object as an instance of 'Cardinality Facet'.
|
T |
caseXSDComplexTypeContent(XSDComplexTypeContent object)
Returns the result of interpreting the object as an instance of 'Complex Type Content'.
|
T |
caseXSDComplexTypeDefinition(XSDComplexTypeDefinition object)
Returns the result of interpreting the object as an instance of 'Complex Type Definition'.
|
T |
caseXSDComponent(XSDComponent object)
Returns the result of interpreting the object as an instance of 'Component'.
|
T |
caseXSDConcreteComponent(XSDConcreteComponent object)
Returns the result of interpreting the object as an instance of 'Concrete Component'.
|
T |
caseXSDConstrainingFacet(XSDConstrainingFacet object)
Returns the result of interpreting the object as an instance of 'Constraining Facet'.
|
T |
caseXSDDiagnostic(XSDDiagnostic object)
Returns the result of interpreting the object as an instance of 'Diagnostic'.
|
T |
caseXSDElementDeclaration(XSDElementDeclaration object)
Returns the result of interpreting the object as an instance of 'Element Declaration'.
|
T |
caseXSDEnumerationFacet(XSDEnumerationFacet object)
Returns the result of interpreting the object as an instance of 'Enumeration Facet'.
|
T |
caseXSDFacet(XSDFacet object)
Returns the result of interpreting the object as an instance of 'Facet'.
|
T |
caseXSDFeature(XSDFeature object)
Returns the result of interpreting the object as an instance of 'Feature'.
|
T |
caseXSDFixedFacet(XSDFixedFacet object)
Returns the result of interpreting the object as an instance of 'Fixed Facet'.
|
T |
caseXSDFractionDigitsFacet(XSDFractionDigitsFacet object)
Returns the result of interpreting the object as an instance of 'Fraction Digits Facet'.
|
T |
caseXSDFundamentalFacet(XSDFundamentalFacet object)
Returns the result of interpreting the object as an instance of 'Fundamental Facet'.
|
T |
caseXSDIdentityConstraintDefinition(XSDIdentityConstraintDefinition object)
Returns the result of interpreting the object as an instance of 'Identity Constraint Definition'.
|
T |
caseXSDImport(XSDImport object)
Returns the result of interpreting the object as an instance of 'Import'.
|
T |
caseXSDInclude(XSDInclude object)
Returns the result of interpreting the object as an instance of 'Include'.
|
T |
caseXSDLengthFacet(XSDLengthFacet object)
Returns the result of interpreting the object as an instance of 'Length Facet'.
|
T |
caseXSDMaxExclusiveFacet(XSDMaxExclusiveFacet object)
Returns the result of interpreting the object as an instance of 'Max Exclusive Facet'.
|
T |
caseXSDMaxFacet(XSDMaxFacet object)
Returns the result of interpreting the object as an instance of 'Max Facet'.
|
T |
caseXSDMaxInclusiveFacet(XSDMaxInclusiveFacet object)
Returns the result of interpreting the object as an instance of 'Max Inclusive Facet'.
|
T |
caseXSDMaxLengthFacet(XSDMaxLengthFacet object)
Returns the result of interpreting the object as an instance of 'Max Length Facet'.
|
T |
caseXSDMinExclusiveFacet(XSDMinExclusiveFacet object)
Returns the result of interpreting the object as an instance of 'Min Exclusive Facet'.
|
T |
caseXSDMinFacet(XSDMinFacet object)
Returns the result of interpreting the object as an instance of 'Min Facet'.
|
T |
caseXSDMinInclusiveFacet(XSDMinInclusiveFacet object)
Returns the result of interpreting the object as an instance of 'Min Inclusive Facet'.
|
T |
caseXSDMinLengthFacet(XSDMinLengthFacet object)
Returns the result of interpreting the object as an instance of 'Min Length Facet'.
|
T |
caseXSDModelGroup(XSDModelGroup object)
Returns the result of interpreting the object as an instance of 'Model Group'.
|
T |
caseXSDModelGroupDefinition(XSDModelGroupDefinition object)
Returns the result of interpreting the object as an instance of 'Model Group Definition'.
|
T |
caseXSDNamedComponent(XSDNamedComponent object)
Returns the result of interpreting the object as an instance of 'Named Component'.
|
T |
caseXSDNotationDeclaration(XSDNotationDeclaration object)
Returns the result of interpreting the object as an instance of 'Notation Declaration'.
|
T |
caseXSDNumericFacet(XSDNumericFacet object)
Returns the result of interpreting the object as an instance of 'Numeric Facet'.
|
T |
caseXSDOrderedFacet(XSDOrderedFacet object)
Returns the result of interpreting the object as an instance of 'Ordered Facet'.
|
T |
caseXSDParticle(XSDParticle object)
Returns the result of interpreting the object as an instance of 'Particle'.
|
T |
caseXSDParticleContent(XSDParticleContent object)
Returns the result of interpreting the object as an instance of 'Particle Content'.
|
T |
caseXSDPatternFacet(XSDPatternFacet object)
Returns the result of interpreting the object as an instance of 'Pattern Facet'.
|
T |
caseXSDRedefinableComponent(XSDRedefinableComponent object)
Returns the result of interpreting the object as an instance of 'Redefinable Component'.
|
T |
caseXSDRedefine(XSDRedefine object)
Returns the result of interpreting the object as an instance of 'Redefine'.
|
T |
caseXSDRedefineContent(XSDRedefineContent object)
Returns the result of interpreting the object as an instance of 'Redefine Content'.
|
T |
caseXSDRepeatableFacet(XSDRepeatableFacet object)
Returns the result of interpreting the object as an instance of 'Repeatable Facet'.
|
T |
caseXSDSchema(XSDSchema object)
Returns the result of interpreting the object as an instance of 'Schema'.
|
T |
caseXSDSchemaCompositor(XSDSchemaCompositor object)
Returns the result of interpreting the object as an instance of 'Schema Compositor'.
|
T |
caseXSDSchemaContent(XSDSchemaContent object)
Returns the result of interpreting the object as an instance of 'Schema Content'.
|
T |
caseXSDSchemaDirective(XSDSchemaDirective object)
Returns the result of interpreting the object as an instance of 'Schema Directive'.
|
T |
caseXSDScope(XSDScope object)
Returns the result of interpreting the object as an instance of 'Scope'.
|
T |
caseXSDSimpleTypeDefinition(XSDSimpleTypeDefinition object)
Returns the result of interpreting the object as an instance of 'Simple Type Definition'.
|
T |
caseXSDTerm(XSDTerm object)
Returns the result of interpreting the object as an instance of 'Term'.
|
T |
caseXSDTotalDigitsFacet(XSDTotalDigitsFacet object)
Returns the result of interpreting the object as an instance of 'Total Digits Facet'.
|
T |
caseXSDTypeDefinition(XSDTypeDefinition object)
Returns the result of interpreting the object as an instance of 'Type Definition'.
|
T |
caseXSDWhiteSpaceFacet(XSDWhiteSpaceFacet object)
Returns the result of interpreting the object as an instance of 'White Space Facet'.
|
T |
caseXSDWildcard(XSDWildcard object)
Returns the result of interpreting the object as an instance of 'Wildcard'.
|
T |
caseXSDXPathDefinition(XSDXPathDefinition object)
Returns the result of interpreting the object as an instance of 'XPath Definition'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
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. |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static XSDPackage modelPackage
protected boolean isSwitchFor(EPackage ePackage)
isSwitchFor
in class Switch<T>
ePackage
- the package of interest.protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class Switch<T>
classifierID
- the classifier ID
of the (super-)class of eObject
relative to its defining EPackage
.theEObject
- the model object to pass to the appropriate caseXXX
method.caseXXX
call.public T caseXSDAnnotation(XSDAnnotation object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDAttributeDeclaration(XSDAttributeDeclaration object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDAttributeGroupContent(XSDAttributeGroupContent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDAttributeGroupDefinition(XSDAttributeGroupDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDAttributeUse(XSDAttributeUse object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDBoundedFacet(XSDBoundedFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDCardinalityFacet(XSDCardinalityFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDComplexTypeContent(XSDComplexTypeContent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDComplexTypeDefinition(XSDComplexTypeDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDComponent(XSDComponent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDConcreteComponent(XSDConcreteComponent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDConstrainingFacet(XSDConstrainingFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDDiagnostic(XSDDiagnostic object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDElementDeclaration(XSDElementDeclaration object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDEnumerationFacet(XSDEnumerationFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDFacet(XSDFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDFeature(XSDFeature object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDFixedFacet(XSDFixedFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDFractionDigitsFacet(XSDFractionDigitsFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDFundamentalFacet(XSDFundamentalFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDIdentityConstraintDefinition(XSDIdentityConstraintDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDImport(XSDImport object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDInclude(XSDInclude object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDLengthFacet(XSDLengthFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMaxExclusiveFacet(XSDMaxExclusiveFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMaxFacet(XSDMaxFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMaxInclusiveFacet(XSDMaxInclusiveFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMaxLengthFacet(XSDMaxLengthFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMinExclusiveFacet(XSDMinExclusiveFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMinFacet(XSDMinFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMinInclusiveFacet(XSDMinInclusiveFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDMinLengthFacet(XSDMinLengthFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDModelGroup(XSDModelGroup object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDModelGroupDefinition(XSDModelGroupDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDNamedComponent(XSDNamedComponent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDNotationDeclaration(XSDNotationDeclaration object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDNumericFacet(XSDNumericFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDOrderedFacet(XSDOrderedFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDParticle(XSDParticle object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDParticleContent(XSDParticleContent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDPatternFacet(XSDPatternFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDRedefinableComponent(XSDRedefinableComponent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDRedefineContent(XSDRedefineContent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDRedefine(XSDRedefine object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDRepeatableFacet(XSDRepeatableFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDSchema(XSDSchema object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDSchemaCompositor(XSDSchemaCompositor object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDSchemaContent(XSDSchemaContent object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDSchemaDirective(XSDSchemaDirective object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDScope(XSDScope object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDSimpleTypeDefinition(XSDSimpleTypeDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDTerm(XSDTerm object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDTotalDigitsFacet(XSDTotalDigitsFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDTypeDefinition(XSDTypeDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDWhiteSpaceFacet(XSDWhiteSpaceFacet object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDWildcard(XSDWildcard object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSDXPathDefinition(XSDXPathDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
defaultCase
in class Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)