@Override public int eBaseStructuralFeatureID(int derivedFeatureID,Class<?> baseClass){
  if (baseClass == ReactiveElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__LOCAL_REACTIONS:
      return SGraphPackage.REACTIVE_ELEMENT__LOCAL_REACTIONS;
default :
    return -1;
}
}
if (baseClass == ScopedElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__SCOPES:
  return SGraphPackage.SCOPED_ELEMENT__SCOPES;
case SGraphPackage.STATE__NAMESPACE:
return SGraphPackage.SCOPED_ELEMENT__NAMESPACE;
default :
return -1;
}
}
if (baseClass == NamedElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__NAME:
return BasePackage.NAMED_ELEMENT__NAME;
default :
return -1;
}
}
if (baseClass == Vertex.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__PARENT_REGION:
return SGraphPackage.VERTEX__PARENT_REGION;
case SGraphPackage.STATE__INCOMING_TRANSITIONS:
return SGraphPackage.VERTEX__INCOMING_TRANSITIONS;
case SGraphPackage.STATE__OUTGOING_TRANSITIONS:
return SGraphPackage.VERTEX__OUTGOING_TRANSITIONS;
default :
return -1;
}
}
if (baseClass == RegularState.class) {
switch (derivedFeatureID) {
default :
return -1;
}
}
if (baseClass == CompositeElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__REGIONS:
return SGraphPackage.COMPOSITE_ELEMENT__REGIONS;
default :
return -1;
}
}
if (baseClass == DocumentedElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATE__DOCUMENTATION:
return BasePackage.DOCUMENTED_ELEMENT__DOCUMENTATION;
default :
return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID,baseClass);
}

@ Override public int eBaseStructuralFeatureID ( int derivedFeatureID , Class < ? > baseClass ) { if ( baseClass == ReactiveElement . class ) { switch ( derivedFeatureID ) { case SGraphPackage . STATE__LOCAL_REACTIONS : return SGraphPackage . REACTIVE_ELEMENT__LOCAL_REACTIONS ; default : return - 1 ; } } if ( baseClass == ScopedElement . class ) { switch ( derivedFeatureID ) { case SGraphPackage . STATE__SCOPES : return SGraphPackage . SCOPED_ELEMENT__SCOPES ; case SGraphPackage . STATE__NAMESPACE : return SGraphPackage . SCOPED_ELEMENT__NAMESPACE ; default : return - 1 ; } } if ( baseClass == NamedElement . class ) { switch ( derivedFeatureID ) { case SGraphPackage . STATE__NAME : return BasePackage . NAMED_ELEMENT__NAME ; default : return - 1 ; } } if ( baseClass == Vertex . class ) { switch ( derivedFeatureID ) { case SGraphPackage . STATE__PARENT_REGION : return SGraphPackage . VERTEX__PARENT_REGION ; case SGraphPackage . STATE__INCOMING_TRANSITIONS : return SGraphPackage . VERTEX__INCOMING_TRANSITIONS ; case SGraphPackage . STATE__OUTGOING_TRANSITIONS : return SGraphPackage . VERTEX__OUTGOING_TRANSITIONS ; default : return - 1 ; } } if ( baseClass == RegularState . class ) { switch ( derivedFeatureID ) { default : return - 1 ; } } if ( baseClass == CompositeElement . class ) { switch ( derivedFeatureID ) { case SGraphPackage . STATE__REGIONS : return SGraphPackage . COMPOSITE_ELEMENT__REGIONS ; default : return - 1 ; } } if ( baseClass == DocumentedElement . class ) { switch ( derivedFeatureID ) { case SGraphPackage . STATE__DOCUMENTATION : return BasePackage . DOCUMENTED_ELEMENT__DOCUMENTATION ; default : return - 1 ; } } return super . eBaseStructuralFeatureID ( derivedFeatureID , baseClass ) ; }
< ! - - begin - user - doc - - > < ! - - end - user - doc - - >
