Java Code Examples for org.eclipse.emf.ecore.util.FeatureMap

The following are top voted examples for showing how to use org.eclipse.emf.ecore.util.FeatureMap. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: Saturn   File: DocumentRootImpl.java   View source code 7 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case XmlManipModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case XmlManipModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case XmlManipModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case XmlManipModulePackage.DOCUMENT_ROOT__XML_MANIP_CONFIGURATION:
      setXmlManipConfiguration((XmlManipConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 2
Project: neoscada   File: AbstractHiveFactory.java   View source code 6 votes vote down vote up
protected Object getConfigurationData ( final HiveConfigurationType configuration )
{
    for ( FeatureMap.Entry entry : configuration.getAny () )
    {
        if ( entry.getValue () instanceof EObject )
        {
            return entry.getValue ();
        }
        else if ( FeatureMapUtil.isText ( entry ) )
        {
            return entry.getValue ();
        }
        else if ( FeatureMapUtil.isCDATA ( entry ) )
        {
            return entry.getValue ();
        }
    }
    return null;
}
 
Example 3
Project: neoscada   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet ( int featureID, boolean resolve, boolean coreType )
{
    switch ( featureID )
    {
        case ExporterPackage.DOCUMENT_ROOT__MIXED:
            if ( coreType )
                return getMixed ();
            return ( (FeatureMap.Internal)getMixed () ).getWrapper ();
        case ExporterPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            if ( coreType )
                return getXMLNSPrefixMap ();
            else
                return getXMLNSPrefixMap ().map ();
        case ExporterPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            if ( coreType )
                return getXSISchemaLocation ();
            else
                return getXSISchemaLocation ().map ();
        case ExporterPackage.DOCUMENT_ROOT__CONFIGURATION:
            return getConfiguration ();
    }
    return super.eGet ( featureID, resolve, coreType );
}
 
Example 4
Project: neoscada   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet ( int featureID, Object newValue )
{
    switch ( featureID )
    {
        case ExporterPackage.DOCUMENT_ROOT__MIXED:
            ( (FeatureMap.Internal)getMixed () ).set ( newValue );
            return;
        case ExporterPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            ( (EStructuralFeature.Setting)getXMLNSPrefixMap () ).set ( newValue );
            return;
        case ExporterPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            ( (EStructuralFeature.Setting)getXSISchemaLocation () ).set ( newValue );
            return;
        case ExporterPackage.DOCUMENT_ROOT__CONFIGURATION:
            setConfiguration ( (ConfigurationType)newValue );
            return;
    }
    super.eSet ( featureID, newValue );
}
 
Example 5
Project: Tarski   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
  switch (featureID) {
    case persistencePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case persistencePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case persistencePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case persistencePackage.DOCUMENT_ROOT__ALLOY:
      return getAlloy();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 6
Project: neoscada   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet ( int featureID, boolean resolve, boolean coreType )
{
    switch ( featureID )
    {
        case ConfigurationPackage.DOCUMENT_ROOT__MIXED:
            if ( coreType )
                return getMixed ();
            return ( (FeatureMap.Internal)getMixed () ).getWrapper ();
        case ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            if ( coreType )
                return getXMLNSPrefixMap ();
            else
                return getXMLNSPrefixMap ().map ();
        case ConfigurationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            if ( coreType )
                return getXSISchemaLocation ();
            else
                return getXSISchemaLocation ().map ();
        case ConfigurationPackage.DOCUMENT_ROOT__ROOT:
            return getRoot ();
    }
    return super.eGet ( featureID, resolve, coreType );
}
 
Example 7
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case XSplitModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case XSplitModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case XSplitModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case XSplitModulePackage.DOCUMENT_ROOT__XSPLIT_CONFIGURATION:
      return getXSplitConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 8
Project: Tarski   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
  switch (featureID) {
    case persistencePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case persistencePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case persistencePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case persistencePackage.DOCUMENT_ROOT__ALLOY:
      setAlloy((AlloyType)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 9
Project: neoscada   File: RootTypeImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet ( int featureID, boolean resolve, boolean coreType )
{
    switch ( featureID )
    {
        case ConfigurationPackage.ROOT_TYPE__GROUP:
            if ( coreType )
                return getGroup ();
            return ( (FeatureMap.Internal)getGroup () ).getWrapper ();
        case ConfigurationPackage.ROOT_TYPE__QUEUE:
            return getQueue ();
        case ConfigurationPackage.ROOT_TYPE__COMMAND:
            return getCommand ();
        case ConfigurationPackage.ROOT_TYPE__HIVE_PROCESS:
            return getHiveProcess ();
        case ConfigurationPackage.ROOT_TYPE__TRIGGER:
            return getTrigger ();
        case ConfigurationPackage.ROOT_TYPE__ADDITIONAL_CONFIGURATION_DIRECTORY:
            return getAdditionalConfigurationDirectory ();
    }
    return super.eGet ( featureID, resolve, coreType );
}
 
Example 10
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case DsConvertModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case DsConvertModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case DsConvertModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case DsConvertModulePackage.DOCUMENT_ROOT__DS_CONVERT_CONFIGURATION:
      return getDSConvertConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 11
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case MqModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case MqModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case MqModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case MqModulePackage.DOCUMENT_ROOT__MQ_CONFIGURATION:
      setMQConfiguration((MQConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 12
Project: neoscada   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet ( int featureID, boolean resolve, boolean coreType )
{
    switch ( featureID )
    {
        case ConfigurationPackage.DOCUMENT_ROOT__MIXED:
            if ( coreType )
                return getMixed ();
            return ( (FeatureMap.Internal)getMixed () ).getWrapper ();
        case ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            if ( coreType )
                return getXMLNSPrefixMap ();
            else
                return getXMLNSPrefixMap ().map ();
        case ConfigurationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            if ( coreType )
                return getXSISchemaLocation ();
            else
                return getXSISchemaLocation ().map ();
        case ConfigurationPackage.DOCUMENT_ROOT__ROOT:
            return getRoot ();
    }
    return super.eGet ( featureID, resolve, coreType );
}
 
Example 13
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case ExceptionPackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case ExceptionPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case ExceptionPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case ExceptionPackage.DOCUMENT_ROOT__EXCEPTION:
      setException((exception)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 14
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case XSplitModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case XSplitModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case XSplitModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case XSplitModulePackage.DOCUMENT_ROOT__XSPLIT_CONFIGURATION:
      setXSplitConfiguration((XSplitConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 15
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case DocumentumModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case DocumentumModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case DocumentumModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case DocumentumModulePackage.DOCUMENT_ROOT__DOCUMENTUM_CONFIGURATION:
      return getDocumentumConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 16
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case ProcedureCallModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case ProcedureCallModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case ProcedureCallModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case ProcedureCallModulePackage.DOCUMENT_ROOT__PROCEDURE_CALL_CONFIGURATION:
      setProcedureCallConfiguration((ProcedureCallConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 17
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case ReferenceModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case ReferenceModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case ReferenceModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case ReferenceModulePackage.DOCUMENT_ROOT__REFERENCE_CONFIGURATION:
      return getReferenceConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 18
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case XmlGenModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case XmlGenModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case XmlGenModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case XmlGenModulePackage.DOCUMENT_ROOT__XML_GEN_CONFIGURATION:
      return getXmlGenConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 19
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case FixManipModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case FixManipModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case FixManipModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case FixManipModulePackage.DOCUMENT_ROOT__FIX_MANIP_CONFIGURATION:
      return getFixManipConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 20
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case FixManipModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case FixManipModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case FixManipModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case FixManipModulePackage.DOCUMENT_ROOT__FIX_MANIP_CONFIGURATION:
      setFixManipConfiguration((FixManipConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 21
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case DatacompareModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case DatacompareModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case DatacompareModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case DatacompareModulePackage.DOCUMENT_ROOT__DATA_COMPARE_CONFIGURATION:
      return getDataCompareConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 22
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case DatacompareModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case DatacompareModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case DatacompareModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case DatacompareModulePackage.DOCUMENT_ROOT__DATA_COMPARE_CONFIGURATION:
      setDataCompareConfiguration((DataCompareConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 23
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case ExceptionPackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case ExceptionPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case ExceptionPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case ExceptionPackage.DOCUMENT_ROOT__EXCEPTION:
      return getException();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 24
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case BackportPackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case BackportPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case BackportPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case BackportPackage.DOCUMENT_ROOT__KRONUS_CALL_CONFIGURATION:
      setKronusCallConfiguration((KronusCallConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 25
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case Xml2csvModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case Xml2csvModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case Xml2csvModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case Xml2csvModulePackage.DOCUMENT_ROOT__XML2_CSV_CONFIGURATION:
      setXml2CsvConfiguration((Xml2CsvConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 26
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case SoapIOModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case SoapIOModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case SoapIOModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case SoapIOModulePackage.DOCUMENT_ROOT__SOAP_IO_CONFIGURATION:
      return getSoapIOConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 27
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case SoapIOModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case SoapIOModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case SoapIOModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case SoapIOModulePackage.DOCUMENT_ROOT__SOAP_IO_CONFIGURATION:
      setSoapIOConfiguration((SoapIOConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 28
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case XmlGenModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case XmlGenModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case XmlGenModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case XmlGenModulePackage.DOCUMENT_ROOT__XML_GEN_CONFIGURATION:
      setXmlGenConfiguration((XmlGenConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 29
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case MailModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case MailModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case MailModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case MailModulePackage.DOCUMENT_ROOT__MAIL_CONFIGURATION:
      return getMailConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 30
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case XmlDiffModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case XmlDiffModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case XmlDiffModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case XmlDiffModulePackage.DOCUMENT_ROOT__XML_DIFF_CONFIGURATION:
      return getXmlDiffConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 31
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case MqModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case MqModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case MqModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case MqModulePackage.DOCUMENT_ROOT__MQ_CONFIGURATION:
      return getMQConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 32
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case DsValidatorModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case DsValidatorModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case DsValidatorModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case DsValidatorModulePackage.DOCUMENT_ROOT__DS_VALIDATOR_CONFIGURATION:
      setDSValidatorConfiguration((DSValidatorConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 33
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
  switch (featureID)
  {
    case XmlManipModulePackage.DOCUMENT_ROOT__MIXED:
      if (coreType) return getMixed();
      return ((FeatureMap.Internal)getMixed()).getWrapper();
    case XmlManipModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      if (coreType) return getXMLNSPrefixMap();
      else return getXMLNSPrefixMap().map();
    case XmlManipModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      if (coreType) return getXSISchemaLocation();
      else return getXSISchemaLocation().map();
    case XmlManipModulePackage.DOCUMENT_ROOT__XML_MANIP_CONFIGURATION:
      return getXmlManipConfiguration();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 34
Project: Saturn   File: DocumentRootImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case CpsModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case CpsModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case CpsModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case CpsModulePackage.DOCUMENT_ROOT__CPS_CONFIGURATION:
      setCpsConfiguration((CpsConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
Example 35
Project: neoscada   File: HiveConfigurationTypeImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet ( int featureID, Object newValue )
{
    switch ( featureID )
    {
        case ExporterPackage.HIVE_CONFIGURATION_TYPE__MIXED:
            ( (FeatureMap.Internal)getMixed () ).set ( newValue );
            return;
        case ExporterPackage.HIVE_CONFIGURATION_TYPE__ANY:
            ( (FeatureMap.Internal)getAny () ).set ( newValue );
            return;
    }
    super.eSet ( featureID, newValue );
}
 
Example 36
Project: Saturn   File: SaturnDocLoadSaveUtil.java   View source code 5 votes vote down vote up
private static void textNodeToTextElement(SaturnResourceImpl saturnResourceImpl_)
{
  DocumentRoot o = (DocumentRoot) saturnResourceImpl_.getContents().get(0);
  Saturn saturn = (Saturn) o.eContents().get(0);
  TreeIterator<EObject> ee = saturn.eAllContents();
  while (ee.hasNext())
  {
    EObject e = ee.next();
    if (e == null) continue;
    EClass ec = e.eClass();
    if (!ValuesPackage.eINSTANCE.getComplexValue().isSuperTypeOf(ec)) continue;

    ComplexValue cv = (ComplexValue) e;
    for (int i = 0; i < cv.getMixed().size(); i++)
    {
      FeatureMap.Entry entry = cv.getMixed().get(i);
      Object value = entry.getValue();
      if (value instanceof String)
      {
        TextComplexValue textComplexValue = ValuesPackage.eINSTANCE.getValuesFactory().createTextComplexValue();
        textComplexValue.setText((String) value);
        FeatureMap.Entry newEntry = FeatureMapUtil.createEntry(ValuesPackage.eINSTANCE.getComplexValue_Text(),
            textComplexValue);
        cv.getMixed().set(i, newEntry);
      }
    }
  }
}
 
Example 37
Project: Tarski   File: ItemTypeImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
  switch (featureID) {
    case persistencePackage.ITEM_TYPE__GROUP:
      if (coreType) return getGroup();
      return ((FeatureMap.Internal)getGroup()).getWrapper();
    case persistencePackage.ITEM_TYPE__ENTRY:
      return getEntry();
    case persistencePackage.ITEM_TYPE__ID:
      return getId();
  }
  return super.eGet(featureID, resolve, coreType);
}
 
Example 38
Project: neoscada   File: RootTypeImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "unchecked" )
@Override
public void eSet ( int featureID, Object newValue )
{
    switch ( featureID )
    {
        case ConfigurationPackage.ROOT_TYPE__GROUP:
            ( (FeatureMap.Internal)getGroup () ).set ( newValue );
            return;
        case ConfigurationPackage.ROOT_TYPE__QUEUE:
            getQueue ().clear ();
            getQueue ().addAll ( (Collection<? extends QueueType>)newValue );
            return;
        case ConfigurationPackage.ROOT_TYPE__COMMAND:
            getCommand ().clear ();
            getCommand ().addAll ( (Collection<? extends SplitContinuousCommandType>)newValue );
            return;
        case ConfigurationPackage.ROOT_TYPE__HIVE_PROCESS:
            getHiveProcess ().clear ();
            getHiveProcess ().addAll ( (Collection<? extends HiveProcessCommandType>)newValue );
            return;
        case ConfigurationPackage.ROOT_TYPE__TRIGGER:
            getTrigger ().clear ();
            getTrigger ().addAll ( (Collection<? extends TriggerCommandType>)newValue );
            return;
        case ConfigurationPackage.ROOT_TYPE__ADDITIONAL_CONFIGURATION_DIRECTORY:
            getAdditionalConfigurationDirectory ().clear ();
            getAdditionalConfigurationDirectory ().addAll ( (Collection<? extends String>)newValue );
            return;
    }
    super.eSet ( featureID, newValue );
}
 
Example 39
Project: neoscada   File: CustomExtractorTypeImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet ( int featureID, Object newValue )
{
    switch ( featureID )
    {
        case ConfigurationPackage.CUSTOM_EXTRACTOR_TYPE__ANY:
            ( (FeatureMap.Internal)getAny () ).set ( newValue );
            return;
        case ConfigurationPackage.CUSTOM_EXTRACTOR_TYPE__CLASS:
            setClass ( (String)newValue );
            return;
    }
    super.eSet ( featureID, newValue );
}
 
Example 40
Project: Saturn   File: DocumentRootImpl.java   View source code 4 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setPsManagerConfiguration(PsManagerConfiguration newPsManagerConfiguration)
{
  ((FeatureMap.Internal)getMixed()).set(PsManagerModulePackage.Literals.DOCUMENT_ROOT__PS_MANAGER_CONFIGURATION, newPsManagerConfiguration);
}