Java 类org.eclipse.emf.ecore.util.FeatureMapUtil 实例源码

项目:neoscada    文件:AbstractHiveFactory.java   
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;
}
项目:dawn-marketplace-server    文件:MarketplaceDAO.java   
/**
 * Creates and returns the catalog representing this particular marketplace
 * instance.
 *
 * @return this marketplace's catalog
 */
private Catalog getCatalog() {
    Catalog catalog = MarketplaceFactory.eINSTANCE.createCatalog();
    catalog.setTitle(environment.getProperty("marketplace.title"));
    catalog.setUrl(marketplaceBaseUrl+"/mpc");
    catalog.setIcon(environment.getProperty("marketplace.catalog-icon"));
    catalog.setDescription(environment.getProperty("marketplace.description"));
    Wizard wizard = MarketplaceFactory.eINSTANCE.createWizard();
    wizard.setTitle(environment.getProperty("marketplace.wizard-title"));
    wizard.setIcon(environment.getProperty("marketplace.wizard-icon"));
    SearchTab st = MarketplaceFactory.eINSTANCE.createSearchTab();
    FeatureMapUtil.addText(st.getMixed(), "Search");
    st.setEnabled(1);
    wizard.setSearchtab(st);
    catalog.setWizard(wizard);
    return catalog;
}
项目:hybris-commerce-eclipse-plugin    文件:AbstractPojosItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (BeansPackage.Literals.ABSTRACT_POJOS__GROUP,
             FeatureMapUtil.createEntry
                (BeansPackage.Literals.ABSTRACT_POJOS__BEAN,
                 BeansFactory.eINSTANCE.createBean())));

    newChildDescriptors.add
        (createChildParameter
            (BeansPackage.Literals.ABSTRACT_POJOS__GROUP,
             FeatureMapUtil.createEntry
                (BeansPackage.Literals.ABSTRACT_POJOS__ENUM,
                 BeansFactory.eINSTANCE.createEnum())));
}
项目:statecharts    文件:DerivedEObjectEList.java   
protected boolean scanNext(EStructuralFeature nextFeature,
        ListIterator<Object> nextValuesIterator) {
    boolean isFeatureMap = FeatureMapUtil.isFeatureMap(nextFeature);

    while (nextValuesIterator.hasNext()) {
        Object nextValue = nextValuesIterator.next();

        if (isFeatureMap) {
            FeatureMap.Entry entry = (FeatureMap.Entry) nextValue;
            nextFeature = entry.getEStructuralFeature();
            nextValue = entry.getValue();
        }

        if ((isIncluded(nextFeature) ? nextValue != null
                : isIncluded(nextValue))
                && ((index < preparedValues.size() && nextValue == preparedValues
                        .get(index)) || preparedValues.add(nextValue))) {

            valuesIterator = nextValuesIterator;
            preparedFeature = nextFeature;
            return true;
        }
    }

    return false;
}
项目:statecharts    文件:DerivedEObjectEList.java   
protected boolean scanPrevious(EStructuralFeature previousFeature,
        ListIterator<Object> previousValuesIterator) {
    boolean isFeatureMap = FeatureMapUtil.isFeatureMap(previousFeature);

    while (previousValuesIterator.hasPrevious()) {
        Object previousValue = previousValuesIterator.previous();

        if (isFeatureMap) {
            FeatureMap.Entry entry = (FeatureMap.Entry) previousValue;
            previousFeature = entry.getEStructuralFeature();
            previousValue = entry.getValue();
        }

        if (index > 0 && previousValue == preparedValues.get(index - 1)) {
            valuesIterator = previousValuesIterator;
            preparedFeature = previousFeature;
            return true;
        }
    }

    return false;
}
项目:eclipse-avro    文件:BasicEObjectImpl.java   
public Object eOpenGet(EStructuralFeature eFeature, boolean resolve)
{
  EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
  if (openFeature != null)
  {
    if (!FeatureMapUtil.isFeatureMap(openFeature))
    {
      openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
    }
    FeatureMap featureMap = (FeatureMap)eGet(openFeature);
    return ((FeatureMap.Internal)featureMap).get(eFeature, resolve);
  }
  else
  {
    throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid feature");
  }
}
项目:eclipse-avro    文件:BasicEObjectImpl.java   
public void eOpenSet(EStructuralFeature eFeature, Object newValue) 
{
  EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
  if (openFeature != null)
  {
    if (!FeatureMapUtil.isFeatureMap(openFeature))
    {
      openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
    }
    FeatureMap featureMap = (FeatureMap)eGet(openFeature);
    ((FeatureMap.Internal)featureMap).set(eFeature, newValue);
  }
  else
  {
    throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
}
项目:eclipse-avro    文件:BasicEObjectImpl.java   
public void eOpenUnset(EStructuralFeature eFeature) 
{
  EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
  if (openFeature != null)
  {
    if (!FeatureMapUtil.isFeatureMap(openFeature))
    {
      openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
    }
    FeatureMap featureMap = (FeatureMap)eGet(openFeature);
    ((FeatureMap.Internal)featureMap).unset(eFeature);
  }
  else
  {
    throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
}
项目:eclipse-avro    文件:BasicEObjectImpl.java   
public boolean eOpenIsSet(EStructuralFeature eFeature) 
{
  EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
  if (openFeature != null)
  {
    if (!FeatureMapUtil.isFeatureMap(openFeature))
    {
      openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
    }
    FeatureMap featureMap = (FeatureMap)eGet(openFeature);
    return ((FeatureMap.Internal)featureMap).isSet(eFeature);
  }
  else
  {
    throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid feature");
  }
}
项目:clickwatch    文件:BasicEObjectImpl.java   
public void eOpenSet(EStructuralFeature eFeature, Object newValue) 
{
  EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
  if (openFeature != null)
  {
    if (!FeatureMapUtil.isFeatureMap(openFeature))
    {
      openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
    }
    FeatureMap featureMap = (FeatureMap)eGet(openFeature);
    ((FeatureMap.Internal)featureMap).set(eFeature, newValue);
  }
  else
  {
    throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
}
项目:citygml4emf    文件:CoverageFunctionTypeItemProvider.java   
/**
 * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
    Object childFeature = feature;
    Object childObject = child;

    if (childFeature instanceof EStructuralFeature && FeatureMapUtil.isFeatureMap((EStructuralFeature)childFeature)) {
        FeatureMap.Entry entry = (FeatureMap.Entry)childObject;
        childFeature = entry.getEStructuralFeature();
        childObject = entry.getValue();
    }

    boolean qualify =
        childFeature == GmlPackage.eINSTANCE.getCoverageFunctionType_GridFunction() ||
        childFeature == GmlPackage.eINSTANCE.getDocumentRoot_IndexMap();

    if (qualify) {
        return getString
            ("_UI_CreateChild_text2",
             new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
    }
    return super.getCreateChildText(owner, feature, child, selection);
}
项目:citygml4emf    文件:SurfaceDataPropertyTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (AppearancePackage.Literals.SURFACE_DATA_PROPERTY_TYPE__SURFACE_DATA_GROUP,
             FeatureMapUtil.createEntry
                (AppearancePackage.Literals.DOCUMENT_ROOT__GEOREFERENCED_TEXTURE,
                 AppearanceFactory.eINSTANCE.createGeoreferencedTextureType())));

    newChildDescriptors.add
        (createChildParameter
            (AppearancePackage.Literals.SURFACE_DATA_PROPERTY_TYPE__SURFACE_DATA_GROUP,
             FeatureMapUtil.createEntry
                (AppearancePackage.Literals.DOCUMENT_ROOT__PARAMETERIZED_TEXTURE,
                 AppearanceFactory.eINSTANCE.createParameterizedTextureType())));

    newChildDescriptors.add
        (createChildParameter
            (AppearancePackage.Literals.SURFACE_DATA_PROPERTY_TYPE__SURFACE_DATA_GROUP,
             FeatureMapUtil.createEntry
                (AppearancePackage.Literals.DOCUMENT_ROOT__X3_DMATERIAL,
                 AppearanceFactory.eINSTANCE.createX3DMaterialType())));
}
项目:citygml4emf    文件:ControlPointTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getControlPointType_PosList(),
             GmlFactory.eINSTANCE.createDirectPositionListType()));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getControlPointType_GeometricPositionGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getControlPointType_Pos(),
                 GmlFactory.eINSTANCE.createDirectPositionType())));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getControlPointType_GeometricPositionGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getControlPointType_PointProperty(),
                 GmlFactory.eINSTANCE.createPointPropertyType())));
}
项目:citygml4emf    文件:OperationRefTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getOperationRefType_OperationGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getDocumentRoot_Conversion(),
                 GmlFactory.eINSTANCE.createConversionType())));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getOperationRefType_OperationGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getDocumentRoot_Transformation(),
                 GmlFactory.eINSTANCE.createTransformationType())));
}
项目:citygml4emf    文件:TriangleTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getTriangleType_ExteriorGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getTriangleType_Exterior(),
                 GmlFactory.eINSTANCE.createAbstractRingPropertyType())));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getTriangleType_ExteriorGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getDocumentRoot_OuterBoundaryIs(),
                 GmlFactory.eINSTANCE.createAbstractRingPropertyType())));
}
项目:citygml4emf    文件:AppearancePropertyTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (TexturedsurfacePackage.Literals.APPEARANCE_PROPERTY_TYPE__APPEARANCE_GROUP,
             FeatureMapUtil.createEntry
                (TexturedsurfacePackage.Literals.DOCUMENT_ROOT__MATERIAL,
                 TexturedsurfaceFactory.eINSTANCE.createMaterialType())));

    newChildDescriptors.add
        (createChildParameter
            (TexturedsurfacePackage.Literals.APPEARANCE_PROPERTY_TYPE__APPEARANCE_GROUP,
             FeatureMapUtil.createEntry
                (TexturedsurfacePackage.Literals.DOCUMENT_ROOT__SIMPLE_TEXTURE,
                 TexturedsurfaceFactory.eINSTANCE.createSimpleTextureType())));
}
项目:citygml4emf    文件:AbstractGeneralOperationParameterRefTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getAbstractGeneralOperationParameterRefType_GeneralOperationParameterGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getDocumentRoot_OperationParameter(),
                 GmlFactory.eINSTANCE.createOperationParameterType())));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getAbstractGeneralOperationParameterRefType_GeneralOperationParameterGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getDocumentRoot_OperationParameterGroup(),
                 GmlFactory.eINSTANCE.createOperationParameterGroupType())));
}
项目:citygml4emf    文件:LineStringSegmentTypeItemProvider.java   
/**
 * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
    Object childFeature = feature;
    Object childObject = child;

    if (childFeature instanceof EStructuralFeature && FeatureMapUtil.isFeatureMap((EStructuralFeature)childFeature)) {
        FeatureMap.Entry entry = (FeatureMap.Entry)childObject;
        childFeature = entry.getEStructuralFeature();
        childObject = entry.getValue();
    }

    boolean qualify =
        childFeature == GmlPackage.eINSTANCE.getLineStringSegmentType_PointProperty() ||
        childFeature == GmlPackage.eINSTANCE.getLineStringSegmentType_PointRep();

    if (qualify) {
        return getString
            ("_UI_CreateChild_text2",
             new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
    }
    return super.getCreateChildText(owner, feature, child, selection);
}
项目:citygml4emf    文件:BoundingShapeTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getBoundingShapeType_EnvelopeGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getBoundingShapeType_Envelope(),
                 GmlFactory.eINSTANCE.createEnvelopeType())));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getBoundingShapeType_EnvelopeGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getBoundingShapeType_Envelope(),
                 GmlFactory.eINSTANCE.createEnvelopeWithTimePeriodType())));

    newChildDescriptors.add
        (createChildParameter
            (GmlPackage.eINSTANCE.getBoundingShapeType_EnvelopeGroup(),
             FeatureMapUtil.createEntry
                (GmlPackage.eINSTANCE.getDocumentRoot_EnvelopeWithTimePeriod(),
                 GmlFactory.eINSTANCE.createEnvelopeWithTimePeriodType())));
}
项目:citygml4emf    文件:OpeningPropertyTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (BuildingPackage.Literals.OPENING_PROPERTY_TYPE__OPENING_GROUP,
             FeatureMapUtil.createEntry
                (BuildingPackage.Literals.DOCUMENT_ROOT__DOOR,
                 BuildingFactory.eINSTANCE.createDoorType())));

    newChildDescriptors.add
        (createChildParameter
            (BuildingPackage.Literals.OPENING_PROPERTY_TYPE__OPENING_GROUP,
             FeatureMapUtil.createEntry
                (BuildingPackage.Literals.DOCUMENT_ROOT__WINDOW,
                 BuildingFactory.eINSTANCE.createWindowType())));
}
项目:neoscada    文件:CustomExtractorTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors ( Collection<Object> newChildDescriptors, Object object )
{
    super.collectNewChildDescriptors ( newChildDescriptors, object );

    newChildDescriptors.add
            ( createChildParameter
            ( ConfigurationPackage.Literals.CUSTOM_EXTRACTOR_TYPE__ANY,
                    FeatureMapUtil.createEntry
                            ( ConfigurationPackage.Literals.DOCUMENT_ROOT__ROOT,
                                    ConfigurationFactory.eINSTANCE.createRootType () ) ) );
}
项目:neoscada    文件:RootTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors ( Collection<Object> newChildDescriptors, Object object )
{
    super.collectNewChildDescriptors ( newChildDescriptors, object );

    newChildDescriptors.add
            ( createChildParameter
            ( ConfigurationPackage.Literals.ROOT_TYPE__GROUP,
                    FeatureMapUtil.createEntry
                            ( ConfigurationPackage.Literals.ROOT_TYPE__QUEUE,
                                    ConfigurationFactory.eINSTANCE.createQueueType () ) ) );

    newChildDescriptors.add
            ( createChildParameter
            ( ConfigurationPackage.Literals.ROOT_TYPE__GROUP,
                    FeatureMapUtil.createEntry
                            ( ConfigurationPackage.Literals.ROOT_TYPE__COMMAND,
                                    ConfigurationFactory.eINSTANCE.createSplitContinuousCommandType () ) ) );

    newChildDescriptors.add
            ( createChildParameter
            ( ConfigurationPackage.Literals.ROOT_TYPE__GROUP,
                    FeatureMapUtil.createEntry
                            ( ConfigurationPackage.Literals.ROOT_TYPE__HIVE_PROCESS,
                                    ConfigurationFactory.eINSTANCE.createHiveProcessCommandType () ) ) );

    newChildDescriptors.add
            ( createChildParameter
            ( ConfigurationPackage.Literals.ROOT_TYPE__GROUP,
                    FeatureMapUtil.createEntry
                            ( ConfigurationPackage.Literals.ROOT_TYPE__TRIGGER,
                                    ConfigurationFactory.eINSTANCE.createTriggerCommandType () ) ) );

    newChildDescriptors.add
            ( createChildParameter
            ( ConfigurationPackage.Literals.ROOT_TYPE__GROUP,
                    FeatureMapUtil.createEntry
                            ( ConfigurationPackage.Literals.ROOT_TYPE__ADDITIONAL_CONFIGURATION_DIRECTORY, "" ) ) ); //$NON-NLS-1$
}
项目:Saturn    文件:SaturnDocLoadSaveUtil.java   
private static void textElementToTextNode(SaturnResourceImpl saturnResourceImpl_, Map<Entry, Entry> textNodes_)
{
  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 TextComplexValue)
      {
        FeatureMap.Entry newEntry = FeatureMapUtil.createTextEntry(((TextComplexValue) value).getText());
        cv.getMixed().set(i, newEntry);
        textNodes_.put(newEntry, entry);
      }
    }
  }
}
项目:Saturn    文件:SaturnDocLoadSaveUtil.java   
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);
      }
    }
  }
}
项目:dawn-marketplace-server    文件:NodeProxy.java   
public void setMainFeature(String id){
    if (node.getIus() == null) {
        Ius createIus = MarketplaceFactory.eINSTANCE.createIus();
        node.setIus(createIus);
    }
    node.getIus().getItems().clear();
    Iu createIu = MarketplaceFactory.eINSTANCE.createIu();
    FeatureMapUtil.addText(createIu.getMixed(), id);
    createIu.setRequired(true);
    node.getIus().getItems().add(createIu);
}
项目:dawn-marketplace-server    文件:FeatureSection.java   
@Override
public Object convert(Object input) {
    Ius iusCollection = MarketplaceFactory.eINSTANCE.createIus();
    String[] ius = ((String)input).split(",");
    for (String string : ius) {
        Iu iu = MarketplaceFactory.eINSTANCE.createIu();
        iu.setRequired(true);
        FeatureMapUtil.addText(iu.getMixed(), string.trim());
        iusCollection.getItems().add(iu);
    }
    return iusCollection;
}
项目:statecharts    文件:StatechartEqualityHelper.java   
@Override
protected boolean haveEqualAttribute(EObject eObject1, EObject eObject2,
        EAttribute attribute) {

    Object value1 = eObject1.eGet(attribute);
    Object value2 = eObject2.eGet(attribute);

    // If the first value is null, the second value must be null.
    //
    if (value1 == null) {
        return value2 == null;
    }

    // Since the first value isn't null, if the second one is, they aren't equal.
    //
    if (value2 == null) {
        return false;
    }

    // If this is a feature map...
    //
    if (FeatureMapUtil.isFeatureMap(attribute)) {
        // The feature maps must be equal.
        //
        FeatureMap featureMap1 = (FeatureMap)value1;
        FeatureMap featureMap2 = (FeatureMap)value2;
        return equalFeatureMaps(featureMap1, featureMap2);
    }
    else {
        if (value1 instanceof String && value2 instanceof String) {
            String wsFreeValue1 = removeWhitespaces((String)value1);
            String wsFreeValue2 = removeWhitespaces((String)value2);
            return wsFreeValue1.equals(wsFreeValue2);
        }

        return value1.equals(value2);
    }
}
项目:statecharts    文件:DerivedSubsetEObjectEList.java   
public DerivedSubsetEObjectEList(Class<?> dataClass, InternalEObject owner,
        int featureID, int[] sourceFeatureIDs) {
    super(dataClass, owner, featureID, sourceFeatureIDs);

    EStructuralFeature feature = sourceFeatureIDs.length == 1 ? getEStructuralFeature(sourceFeatureIDs[0])
            : null;

    if (feature == null || !feature.isMany()
            || FeatureMapUtil.isFeatureMap(feature)) {

        throw new IllegalArgumentException(String.valueOf(sourceFeatureIDs));
    }
}
项目:LiquibaseEditor    文件:ParamType1ItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getParamType1_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getParamType1_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getParamType1_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getParamType1_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));
}
项目:LiquibaseEditor    文件:SqlCheckTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlCheckType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlCheckType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlCheckType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlCheckType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));
}
项目:LiquibaseEditor    文件:CreateProcedureTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getCreateProcedureType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getCreateProcedureType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getCreateProcedureType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getCreateProcedureType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getCreateProcedureType_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getCreateProcedureType_Comment(),
                 "")));
}
项目:LiquibaseEditor    文件:LoadUpdateDataTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadUpdateDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadUpdateDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadUpdateDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadUpdateDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadUpdateDataType_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getLoadUpdateDataType_Column(),
                 DbchangelogFactory.eINSTANCE.createColumnType1())));
}
项目:LiquibaseEditor    文件:ColumnTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getColumnType_Constraints(),
                 DbchangelogFactory.eINSTANCE.createConstraintsType())));
}
项目:LiquibaseEditor    文件:WhereParamsTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getWhereParamsType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getWhereParamsType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getWhereParamsType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getWhereParamsType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getWhereParamsType_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getWhereParamsType_Param(),
                 DbchangelogFactory.eINSTANCE.createParamType())));
}
项目:LiquibaseEditor    文件:DatabaseChangeLogTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_Property(),
             DbchangelogFactory.eINSTANCE.createPropertyType()));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_PreConditions(),
             DbchangelogFactory.eINSTANCE.createPreConditionsType1()));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_Group(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_ChangeSet(),
                 DbchangelogFactory.eINSTANCE.createChangeSetType())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_Group(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_Include(),
                 DbchangelogFactory.eINSTANCE.createIncludeType())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_Group(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getDatabaseChangeLogType_IncludeAll(),
                 DbchangelogFactory.eINSTANCE.createIncludeAllType())));
}
项目:LiquibaseEditor    文件:SqlTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getSqlType_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getSqlType_Comment(),
                 "")));
}
项目:LiquibaseEditor    文件:ColumnType2ItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType2_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType2_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType2_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType2_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getColumnType2_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getColumnType2_Constraints(),
                 DbchangelogFactory.eINSTANCE.createConstraintsType())));
}
项目:LiquibaseEditor    文件:StopTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getStopType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getStopType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getStopType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getStopType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));
}
项目:LiquibaseEditor    文件:LoadDataTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
                 XMLTypeFactory.eINSTANCE.createProcessingInstruction())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadDataType_Mixed(),
             FeatureMapUtil.createEntry
                (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
                 "")));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getLoadDataType_Mixed(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getLoadDataType_Column(),
                 DbchangelogFactory.eINSTANCE.createColumnType3())));
}
项目:LiquibaseEditor    文件:ModifySqlTypeItemProvider.java   
/**
 * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
 * that can be created under this object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getModifySqlType_ModifySqlChildren(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getModifySqlType_Replace(),
                 DbchangelogFactory.eINSTANCE.createReplaceType())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getModifySqlType_ModifySqlChildren(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getModifySqlType_RegExpReplace(),
                 DbchangelogFactory.eINSTANCE.createRegExpReplaceType())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getModifySqlType_ModifySqlChildren(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getModifySqlType_Prepend(),
                 DbchangelogFactory.eINSTANCE.createPrependType())));

    newChildDescriptors.add
        (createChildParameter
            (DbchangelogPackage.eINSTANCE.getModifySqlType_ModifySqlChildren(),
             FeatureMapUtil.createEntry
                (DbchangelogPackage.eINSTANCE.getModifySqlType_Append(),
                 DbchangelogFactory.eINSTANCE.createAppendType())));
}