You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2009/06/18 22:39:53 UTC

svn commit: r786255 [8/13] - in /incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/uima/ src/main/java/org/apache/uima/tools/ src/main/java/...

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/SingleFeatureMatcherXMLImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/SingleFeatureMatcherXMLImpl.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/SingleFeatureMatcherXMLImpl.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/SingleFeatureMatcherXMLImpl.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,799 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.impl;
+
+import org.apache.uima.tools.cfe.config.BitsetFeatureValuesXML;
+import org.apache.uima.tools.cfe.config.ConfigPackage;
+import org.apache.uima.tools.cfe.config.EnumFeatureValuesXML;
+import org.apache.uima.tools.cfe.config.ObjectPathFeatureValuesXML;
+import org.apache.uima.tools.cfe.config.PatternFeatureValuesXML;
+import org.apache.uima.tools.cfe.config.RangeFeatureValuesXML;
+import org.apache.uima.tools.cfe.config.SingleFeatureMatcherXML;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Single Feature Matcher XML</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getRangeFeatureValues <em>Range Feature Values</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getEnumFeatureValues <em>Enum Feature Values</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getBitsetFeatureValues <em>Bitset Feature Values</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getObjectPathFeatureValues <em>Object Path Feature Values</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getPatternFeatureValues <em>Pattern Feature Values</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#isExclude <em>Exclude</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getFeaturePath <em>Feature Path</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#getFeatureTypeName <em>Feature Type Name</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.SingleFeatureMatcherXMLImpl#isQuiet <em>Quiet</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SingleFeatureMatcherXMLImpl extends EObjectImpl implements SingleFeatureMatcherXML
+{
+  /**
+     * The cached value of the '{@link #getRangeFeatureValues() <em>Range Feature Values</em>}' containment reference.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getRangeFeatureValues()
+     * @generated
+     * @ordered
+     */
+  protected RangeFeatureValuesXML rangeFeatureValues;
+
+  /**
+     * The cached value of the '{@link #getEnumFeatureValues() <em>Enum Feature Values</em>}' containment reference.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getEnumFeatureValues()
+     * @generated
+     * @ordered
+     */
+  protected EnumFeatureValuesXML enumFeatureValues;
+
+  /**
+     * The cached value of the '{@link #getBitsetFeatureValues() <em>Bitset Feature Values</em>}' containment reference.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getBitsetFeatureValues()
+     * @generated
+     * @ordered
+     */
+  protected BitsetFeatureValuesXML bitsetFeatureValues;
+
+  /**
+     * The cached value of the '{@link #getObjectPathFeatureValues() <em>Object Path Feature Values</em>}' containment reference.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getObjectPathFeatureValues()
+     * @generated
+     * @ordered
+     */
+  protected ObjectPathFeatureValuesXML objectPathFeatureValues;
+
+  /**
+     * The cached value of the '{@link #getPatternFeatureValues() <em>Pattern Feature Values</em>}' containment reference.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getPatternFeatureValues()
+     * @generated
+     * @ordered
+     */
+  protected PatternFeatureValuesXML patternFeatureValues;
+
+  /**
+     * The default value of the '{@link #isExclude() <em>Exclude</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #isExclude()
+     * @generated
+     * @ordered
+     */
+  protected static final boolean EXCLUDE_EDEFAULT = false;
+
+  /**
+     * The cached value of the '{@link #isExclude() <em>Exclude</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #isExclude()
+     * @generated
+     * @ordered
+     */
+  protected boolean exclude = EXCLUDE_EDEFAULT;
+
+  /**
+     * This is true if the Exclude attribute has been set.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+  protected boolean excludeESet;
+
+  /**
+     * The default value of the '{@link #getFeaturePath() <em>Feature Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getFeaturePath()
+     * @generated
+     * @ordered
+     */
+  protected static final String FEATURE_PATH_EDEFAULT = null;
+
+  /**
+     * The cached value of the '{@link #getFeaturePath() <em>Feature Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getFeaturePath()
+     * @generated
+     * @ordered
+     */
+  protected String featurePath = FEATURE_PATH_EDEFAULT;
+
+  /**
+     * The default value of the '{@link #getFeatureTypeName() <em>Feature Type Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getFeatureTypeName()
+     * @generated
+     * @ordered
+     */
+  protected static final String FEATURE_TYPE_NAME_EDEFAULT = null;
+
+  /**
+     * The cached value of the '{@link #getFeatureTypeName() <em>Feature Type Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getFeatureTypeName()
+     * @generated
+     * @ordered
+     */
+  protected String featureTypeName = FEATURE_TYPE_NAME_EDEFAULT;
+
+  /**
+     * The default value of the '{@link #isQuiet() <em>Quiet</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #isQuiet()
+     * @generated
+     * @ordered
+     */
+  protected static final boolean QUIET_EDEFAULT = false;
+
+  /**
+     * The cached value of the '{@link #isQuiet() <em>Quiet</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #isQuiet()
+     * @generated
+     * @ordered
+     */
+  protected boolean quiet = QUIET_EDEFAULT;
+
+  /**
+     * This is true if the Quiet attribute has been set.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+  protected boolean quietESet;
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  protected SingleFeatureMatcherXMLImpl()
+  {
+        super();
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+protected EClass eStaticClass()
+  {
+        return ConfigPackage.Literals.SINGLE_FEATURE_MATCHER_XML;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public RangeFeatureValuesXML getRangeFeatureValues()
+  {
+        return rangeFeatureValues;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public NotificationChain basicSetRangeFeatureValues(RangeFeatureValuesXML newRangeFeatureValues, NotificationChain msgs)
+  {
+        RangeFeatureValuesXML oldRangeFeatureValues = rangeFeatureValues;
+        rangeFeatureValues = newRangeFeatureValues;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES, oldRangeFeatureValues, newRangeFeatureValues);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setRangeFeatureValues(RangeFeatureValuesXML newRangeFeatureValues)
+  {
+        if (newRangeFeatureValues != rangeFeatureValues)
+        {
+            NotificationChain msgs = null;
+            if (rangeFeatureValues != null)
+                msgs = ((InternalEObject)rangeFeatureValues).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES, null, msgs);
+            if (newRangeFeatureValues != null)
+                msgs = ((InternalEObject)newRangeFeatureValues).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES, null, msgs);
+            msgs = basicSetRangeFeatureValues(newRangeFeatureValues, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES, newRangeFeatureValues, newRangeFeatureValues));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public EnumFeatureValuesXML getEnumFeatureValues()
+  {
+        return enumFeatureValues;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public NotificationChain basicSetEnumFeatureValues(EnumFeatureValuesXML newEnumFeatureValues, NotificationChain msgs)
+  {
+        EnumFeatureValuesXML oldEnumFeatureValues = enumFeatureValues;
+        enumFeatureValues = newEnumFeatureValues;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES, oldEnumFeatureValues, newEnumFeatureValues);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setEnumFeatureValues(EnumFeatureValuesXML newEnumFeatureValues)
+  {
+        if (newEnumFeatureValues != enumFeatureValues)
+        {
+            NotificationChain msgs = null;
+            if (enumFeatureValues != null)
+                msgs = ((InternalEObject)enumFeatureValues).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES, null, msgs);
+            if (newEnumFeatureValues != null)
+                msgs = ((InternalEObject)newEnumFeatureValues).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES, null, msgs);
+            msgs = basicSetEnumFeatureValues(newEnumFeatureValues, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES, newEnumFeatureValues, newEnumFeatureValues));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public BitsetFeatureValuesXML getBitsetFeatureValues()
+  {
+        return bitsetFeatureValues;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public NotificationChain basicSetBitsetFeatureValues(BitsetFeatureValuesXML newBitsetFeatureValues, NotificationChain msgs)
+  {
+        BitsetFeatureValuesXML oldBitsetFeatureValues = bitsetFeatureValues;
+        bitsetFeatureValues = newBitsetFeatureValues;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES, oldBitsetFeatureValues, newBitsetFeatureValues);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setBitsetFeatureValues(BitsetFeatureValuesXML newBitsetFeatureValues)
+  {
+        if (newBitsetFeatureValues != bitsetFeatureValues)
+        {
+            NotificationChain msgs = null;
+            if (bitsetFeatureValues != null)
+                msgs = ((InternalEObject)bitsetFeatureValues).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES, null, msgs);
+            if (newBitsetFeatureValues != null)
+                msgs = ((InternalEObject)newBitsetFeatureValues).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES, null, msgs);
+            msgs = basicSetBitsetFeatureValues(newBitsetFeatureValues, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES, newBitsetFeatureValues, newBitsetFeatureValues));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public ObjectPathFeatureValuesXML getObjectPathFeatureValues()
+  {
+        return objectPathFeatureValues;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public NotificationChain basicSetObjectPathFeatureValues(ObjectPathFeatureValuesXML newObjectPathFeatureValues, NotificationChain msgs)
+  {
+        ObjectPathFeatureValuesXML oldObjectPathFeatureValues = objectPathFeatureValues;
+        objectPathFeatureValues = newObjectPathFeatureValues;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES, oldObjectPathFeatureValues, newObjectPathFeatureValues);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setObjectPathFeatureValues(ObjectPathFeatureValuesXML newObjectPathFeatureValues)
+  {
+        if (newObjectPathFeatureValues != objectPathFeatureValues)
+        {
+            NotificationChain msgs = null;
+            if (objectPathFeatureValues != null)
+                msgs = ((InternalEObject)objectPathFeatureValues).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES, null, msgs);
+            if (newObjectPathFeatureValues != null)
+                msgs = ((InternalEObject)newObjectPathFeatureValues).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES, null, msgs);
+            msgs = basicSetObjectPathFeatureValues(newObjectPathFeatureValues, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES, newObjectPathFeatureValues, newObjectPathFeatureValues));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public PatternFeatureValuesXML getPatternFeatureValues()
+  {
+        return patternFeatureValues;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public NotificationChain basicSetPatternFeatureValues(PatternFeatureValuesXML newPatternFeatureValues, NotificationChain msgs)
+  {
+        PatternFeatureValuesXML oldPatternFeatureValues = patternFeatureValues;
+        patternFeatureValues = newPatternFeatureValues;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES, oldPatternFeatureValues, newPatternFeatureValues);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setPatternFeatureValues(PatternFeatureValuesXML newPatternFeatureValues)
+  {
+        if (newPatternFeatureValues != patternFeatureValues)
+        {
+            NotificationChain msgs = null;
+            if (patternFeatureValues != null)
+                msgs = ((InternalEObject)patternFeatureValues).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES, null, msgs);
+            if (newPatternFeatureValues != null)
+                msgs = ((InternalEObject)newPatternFeatureValues).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES, null, msgs);
+            msgs = basicSetPatternFeatureValues(newPatternFeatureValues, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES, newPatternFeatureValues, newPatternFeatureValues));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public boolean isExclude()
+  {
+        return exclude;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setExclude(boolean newExclude)
+  {
+        boolean oldExclude = exclude;
+        exclude = newExclude;
+        boolean oldExcludeESet = excludeESet;
+        excludeESet = true;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__EXCLUDE, oldExclude, exclude, !oldExcludeESet));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void unsetExclude()
+  {
+        boolean oldExclude = exclude;
+        boolean oldExcludeESet = excludeESet;
+        exclude = EXCLUDE_EDEFAULT;
+        excludeESet = false;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.UNSET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__EXCLUDE, oldExclude, EXCLUDE_EDEFAULT, oldExcludeESet));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public boolean isSetExclude()
+  {
+        return excludeESet;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public String getFeaturePath()
+  {
+        return featurePath;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setFeaturePath(String newFeaturePath)
+  {
+        String oldFeaturePath = featurePath;
+        featurePath = newFeaturePath;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_PATH, oldFeaturePath, featurePath));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public String getFeatureTypeName()
+  {
+        return featureTypeName;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setFeatureTypeName(String newFeatureTypeName)
+  {
+        String oldFeatureTypeName = featureTypeName;
+        featureTypeName = newFeatureTypeName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_TYPE_NAME, oldFeatureTypeName, featureTypeName));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public boolean isQuiet()
+  {
+        return quiet;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setQuiet(boolean newQuiet)
+  {
+        boolean oldQuiet = quiet;
+        quiet = newQuiet;
+        boolean oldQuietESet = quietESet;
+        quietESet = true;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__QUIET, oldQuiet, quiet, !oldQuietESet));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void unsetQuiet()
+  {
+        boolean oldQuiet = quiet;
+        boolean oldQuietESet = quietESet;
+        quiet = QUIET_EDEFAULT;
+        quietESet = false;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.UNSET, ConfigPackage.SINGLE_FEATURE_MATCHER_XML__QUIET, oldQuiet, QUIET_EDEFAULT, oldQuietESet));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public boolean isSetQuiet()
+  {
+        return quietESet;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES:
+                return basicSetRangeFeatureValues(null, msgs);
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES:
+                return basicSetEnumFeatureValues(null, msgs);
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES:
+                return basicSetBitsetFeatureValues(null, msgs);
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES:
+                return basicSetObjectPathFeatureValues(null, msgs);
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES:
+                return basicSetPatternFeatureValues(null, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES:
+                return getRangeFeatureValues();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES:
+                return getEnumFeatureValues();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES:
+                return getBitsetFeatureValues();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES:
+                return getObjectPathFeatureValues();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES:
+                return getPatternFeatureValues();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__EXCLUDE:
+                return isExclude() ? Boolean.TRUE : Boolean.FALSE;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_PATH:
+                return getFeaturePath();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_TYPE_NAME:
+                return getFeatureTypeName();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__QUIET:
+                return isQuiet() ? Boolean.TRUE : Boolean.FALSE;
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public void eSet(int featureID, Object newValue)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES:
+                setRangeFeatureValues((RangeFeatureValuesXML)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES:
+                setEnumFeatureValues((EnumFeatureValuesXML)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES:
+                setBitsetFeatureValues((BitsetFeatureValuesXML)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES:
+                setObjectPathFeatureValues((ObjectPathFeatureValuesXML)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES:
+                setPatternFeatureValues((PatternFeatureValuesXML)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__EXCLUDE:
+                setExclude(((Boolean)newValue).booleanValue());
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_PATH:
+                setFeaturePath((String)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_TYPE_NAME:
+                setFeatureTypeName((String)newValue);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__QUIET:
+                setQuiet(((Boolean)newValue).booleanValue());
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public void eUnset(int featureID)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES:
+                setRangeFeatureValues((RangeFeatureValuesXML)null);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES:
+                setEnumFeatureValues((EnumFeatureValuesXML)null);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES:
+                setBitsetFeatureValues((BitsetFeatureValuesXML)null);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES:
+                setObjectPathFeatureValues((ObjectPathFeatureValuesXML)null);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES:
+                setPatternFeatureValues((PatternFeatureValuesXML)null);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__EXCLUDE:
+                unsetExclude();
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_PATH:
+                setFeaturePath(FEATURE_PATH_EDEFAULT);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_TYPE_NAME:
+                setFeatureTypeName(FEATURE_TYPE_NAME_EDEFAULT);
+                return;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__QUIET:
+                unsetQuiet();
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public boolean eIsSet(int featureID)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__RANGE_FEATURE_VALUES:
+                return rangeFeatureValues != null;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__ENUM_FEATURE_VALUES:
+                return enumFeatureValues != null;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__BITSET_FEATURE_VALUES:
+                return bitsetFeatureValues != null;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__OBJECT_PATH_FEATURE_VALUES:
+                return objectPathFeatureValues != null;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__PATTERN_FEATURE_VALUES:
+                return patternFeatureValues != null;
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__EXCLUDE:
+                return isSetExclude();
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_PATH:
+                return FEATURE_PATH_EDEFAULT == null ? featurePath != null : !FEATURE_PATH_EDEFAULT.equals(featurePath);
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__FEATURE_TYPE_NAME:
+                return FEATURE_TYPE_NAME_EDEFAULT == null ? featureTypeName != null : !FEATURE_TYPE_NAME_EDEFAULT.equals(featureTypeName);
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML__QUIET:
+                return isSetQuiet();
+        }
+        return super.eIsSet(featureID);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public String toString()
+  {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (exclude: ");
+        if (excludeESet) result.append(exclude); else result.append("<unset>");
+        result.append(", featurePath: ");
+        result.append(featurePath);
+        result.append(", featureTypeName: ");
+        result.append(featureTypeName);
+        result.append(", quiet: ");
+        if (quietESet) result.append(quiet); else result.append("<unset>");
+        result.append(')');
+        return result.toString();
+    }
+
+} //SingleFeatureMatcherXMLImpl
\ No newline at end of file

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/TargetAnnotationXMLImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/TargetAnnotationXMLImpl.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/TargetAnnotationXMLImpl.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/impl/TargetAnnotationXMLImpl.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,375 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.impl;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.uima.tools.cfe.config.ConfigPackage;
+import org.apache.uima.tools.cfe.config.FeatureObjectMatcherXML;
+import org.apache.uima.tools.cfe.config.PartialObjectMatcherXML;
+import org.apache.uima.tools.cfe.config.TargetAnnotationXML;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Target Annotation XML</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.TargetAnnotationXMLImpl#getTargetAnnotationMatcher <em>Target Annotation Matcher</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.TargetAnnotationXMLImpl#getFeatureAnnotationMatchers <em>Feature Annotation Matchers</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.TargetAnnotationXMLImpl#getClassName <em>Class Name</em>}</li>
+ *   <li>{@link org.apache.uima.tools.cfe.config.impl.TargetAnnotationXMLImpl#getEnclosingAnnotation <em>Enclosing Annotation</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class TargetAnnotationXMLImpl extends EObjectImpl implements TargetAnnotationXML
+{
+  /**
+     * The cached value of the '{@link #getTargetAnnotationMatcher() <em>Target Annotation Matcher</em>}' containment reference.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getTargetAnnotationMatcher()
+     * @generated
+     * @ordered
+     */
+  protected PartialObjectMatcherXML targetAnnotationMatcher;
+
+  /**
+     * The cached value of the '{@link #getFeatureAnnotationMatchers() <em>Feature Annotation Matchers</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getFeatureAnnotationMatchers()
+     * @generated
+     * @ordered
+     */
+  protected EList<FeatureObjectMatcherXML> featureAnnotationMatchers;
+
+  /**
+     * The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getClassName()
+     * @generated
+     * @ordered
+     */
+  protected static final String CLASS_NAME_EDEFAULT = null;
+
+  /**
+     * The cached value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getClassName()
+     * @generated
+     * @ordered
+     */
+  protected String className = CLASS_NAME_EDEFAULT;
+
+  /**
+     * The default value of the '{@link #getEnclosingAnnotation() <em>Enclosing Annotation</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getEnclosingAnnotation()
+     * @generated
+     * @ordered
+     */
+  protected static final String ENCLOSING_ANNOTATION_EDEFAULT = null;
+
+  /**
+     * The cached value of the '{@link #getEnclosingAnnotation() <em>Enclosing Annotation</em>}' attribute.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @see #getEnclosingAnnotation()
+     * @generated
+     * @ordered
+     */
+  protected String enclosingAnnotation = ENCLOSING_ANNOTATION_EDEFAULT;
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  protected TargetAnnotationXMLImpl()
+  {
+        super();
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+protected EClass eStaticClass()
+  {
+        return ConfigPackage.Literals.TARGET_ANNOTATION_XML;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public PartialObjectMatcherXML getTargetAnnotationMatcher()
+  {
+        return targetAnnotationMatcher;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public NotificationChain basicSetTargetAnnotationMatcher(PartialObjectMatcherXML newTargetAnnotationMatcher, NotificationChain msgs)
+  {
+        PartialObjectMatcherXML oldTargetAnnotationMatcher = targetAnnotationMatcher;
+        targetAnnotationMatcher = newTargetAnnotationMatcher;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER, oldTargetAnnotationMatcher, newTargetAnnotationMatcher);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setTargetAnnotationMatcher(PartialObjectMatcherXML newTargetAnnotationMatcher)
+  {
+        if (newTargetAnnotationMatcher != targetAnnotationMatcher)
+        {
+            NotificationChain msgs = null;
+            if (targetAnnotationMatcher != null)
+                msgs = ((InternalEObject)targetAnnotationMatcher).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER, null, msgs);
+            if (newTargetAnnotationMatcher != null)
+                msgs = ((InternalEObject)newTargetAnnotationMatcher).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER, null, msgs);
+            msgs = basicSetTargetAnnotationMatcher(newTargetAnnotationMatcher, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER, newTargetAnnotationMatcher, newTargetAnnotationMatcher));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public EList<FeatureObjectMatcherXML> getFeatureAnnotationMatchers()
+  {
+        if (featureAnnotationMatchers == null)
+        {
+            featureAnnotationMatchers = new EObjectContainmentEList<FeatureObjectMatcherXML>(FeatureObjectMatcherXML.class, this, ConfigPackage.TARGET_ANNOTATION_XML__FEATURE_ANNOTATION_MATCHERS);
+        }
+        return featureAnnotationMatchers;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public String getClassName()
+  {
+        return className;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setClassName(String newClassName)
+  {
+        String oldClassName = className;
+        className = newClassName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TARGET_ANNOTATION_XML__CLASS_NAME, oldClassName, className));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public String getEnclosingAnnotation()
+  {
+        return enclosingAnnotation;
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public void setEnclosingAnnotation(String newEnclosingAnnotation)
+  {
+        String oldEnclosingAnnotation = enclosingAnnotation;
+        enclosingAnnotation = newEnclosingAnnotation;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.TARGET_ANNOTATION_XML__ENCLOSING_ANNOTATION, oldEnclosingAnnotation, enclosingAnnotation));
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER:
+                return basicSetTargetAnnotationMatcher(null, msgs);
+            case ConfigPackage.TARGET_ANNOTATION_XML__FEATURE_ANNOTATION_MATCHERS:
+                return ((InternalEList<?>)getFeatureAnnotationMatchers()).basicRemove(otherEnd, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER:
+                return getTargetAnnotationMatcher();
+            case ConfigPackage.TARGET_ANNOTATION_XML__FEATURE_ANNOTATION_MATCHERS:
+                return getFeatureAnnotationMatchers();
+            case ConfigPackage.TARGET_ANNOTATION_XML__CLASS_NAME:
+                return getClassName();
+            case ConfigPackage.TARGET_ANNOTATION_XML__ENCLOSING_ANNOTATION:
+                return getEnclosingAnnotation();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @SuppressWarnings("unchecked")
+@Override
+public void eSet(int featureID, Object newValue)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER:
+                setTargetAnnotationMatcher((PartialObjectMatcherXML)newValue);
+                return;
+            case ConfigPackage.TARGET_ANNOTATION_XML__FEATURE_ANNOTATION_MATCHERS:
+                getFeatureAnnotationMatchers().clear();
+                getFeatureAnnotationMatchers().addAll((Collection<? extends FeatureObjectMatcherXML>)newValue);
+                return;
+            case ConfigPackage.TARGET_ANNOTATION_XML__CLASS_NAME:
+                setClassName((String)newValue);
+                return;
+            case ConfigPackage.TARGET_ANNOTATION_XML__ENCLOSING_ANNOTATION:
+                setEnclosingAnnotation((String)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public void eUnset(int featureID)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER:
+                setTargetAnnotationMatcher((PartialObjectMatcherXML)null);
+                return;
+            case ConfigPackage.TARGET_ANNOTATION_XML__FEATURE_ANNOTATION_MATCHERS:
+                getFeatureAnnotationMatchers().clear();
+                return;
+            case ConfigPackage.TARGET_ANNOTATION_XML__CLASS_NAME:
+                setClassName(CLASS_NAME_EDEFAULT);
+                return;
+            case ConfigPackage.TARGET_ANNOTATION_XML__ENCLOSING_ANNOTATION:
+                setEnclosingAnnotation(ENCLOSING_ANNOTATION_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public boolean eIsSet(int featureID)
+  {
+        switch (featureID)
+        {
+            case ConfigPackage.TARGET_ANNOTATION_XML__TARGET_ANNOTATION_MATCHER:
+                return targetAnnotationMatcher != null;
+            case ConfigPackage.TARGET_ANNOTATION_XML__FEATURE_ANNOTATION_MATCHERS:
+                return featureAnnotationMatchers != null && !featureAnnotationMatchers.isEmpty();
+            case ConfigPackage.TARGET_ANNOTATION_XML__CLASS_NAME:
+                return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className);
+            case ConfigPackage.TARGET_ANNOTATION_XML__ENCLOSING_ANNOTATION:
+                return ENCLOSING_ANNOTATION_EDEFAULT == null ? enclosingAnnotation != null : !ENCLOSING_ANNOTATION_EDEFAULT.equals(enclosingAnnotation);
+        }
+        return super.eIsSet(featureID);
+    }
+
+  /**
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public String toString()
+  {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (className: ");
+        result.append(className);
+        result.append(", enclosingAnnotation: ");
+        result.append(enclosingAnnotation);
+        result.append(')');
+        return result.toString();
+    }
+
+} //TargetAnnotationXMLImpl
\ No newline at end of file

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigAdapterFactory.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigAdapterFactory.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigAdapterFactory.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigAdapterFactory.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,356 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.util;
+
+import org.apache.uima.tools.cfe.config.*;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.apache.uima.tools.cfe.config.ConfigPackage
+ * @generated
+ */
+public class ConfigAdapterFactory extends AdapterFactoryImpl
+{
+  /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  protected static ConfigPackage modelPackage;
+
+  /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public ConfigAdapterFactory()
+  {
+        if (modelPackage == null)
+        {
+            modelPackage = ConfigPackage.eINSTANCE;
+        }
+    }
+
+  /**
+     * Returns whether this factory is applicable for the type of the object.
+     * <!-- begin-user-doc -->
+   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+   * <!-- end-user-doc -->
+     * @return whether this factory is applicable for the type of the object.
+     * @generated
+     */
+  @Override
+public boolean isFactoryForType(Object object)
+  {
+        if (object == modelPackage)
+        {
+            return true;
+        }
+        if (object instanceof EObject)
+        {
+            return ((EObject)object).eClass().getEPackage() == modelPackage;
+        }
+        return false;
+    }
+
+  /**
+     * The switch the delegates to the <code>createXXX</code> methods.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  protected ConfigSwitch<Adapter> modelSwitch =
+    new ConfigSwitch<Adapter>()
+        {
+            @Override
+            public Adapter caseBitsetFeatureValuesXML(BitsetFeatureValuesXML object)
+            {
+                return createBitsetFeatureValuesXMLAdapter();
+            }
+            @Override
+            public Adapter caseCFEDescriptorXML(CFEDescriptorXML object)
+            {
+                return createCFEDescriptorXMLAdapter();
+            }
+            @Override
+            public Adapter caseDocumentRoot(DocumentRoot object)
+            {
+                return createDocumentRootAdapter();
+            }
+            @Override
+            public Adapter caseEnumFeatureValuesXML(EnumFeatureValuesXML object)
+            {
+                return createEnumFeatureValuesXMLAdapter();
+            }
+            @Override
+            public Adapter caseFeatureObjectMatcherXML(FeatureObjectMatcherXML object)
+            {
+                return createFeatureObjectMatcherXMLAdapter();
+            }
+            @Override
+            public Adapter caseGroupFeatureMatcherXML(GroupFeatureMatcherXML object)
+            {
+                return createGroupFeatureMatcherXMLAdapter();
+            }
+            @Override
+            public Adapter caseObjectPathFeatureValuesXML(ObjectPathFeatureValuesXML object)
+            {
+                return createObjectPathFeatureValuesXMLAdapter();
+            }
+            @Override
+            public Adapter casePartialObjectMatcherXML(PartialObjectMatcherXML object)
+            {
+                return createPartialObjectMatcherXMLAdapter();
+            }
+            @Override
+            public Adapter casePatternFeatureValuesXML(PatternFeatureValuesXML object)
+            {
+                return createPatternFeatureValuesXMLAdapter();
+            }
+            @Override
+            public Adapter caseRangeFeatureValuesXML(RangeFeatureValuesXML object)
+            {
+                return createRangeFeatureValuesXMLAdapter();
+            }
+            @Override
+            public Adapter caseSingleFeatureMatcherXML(SingleFeatureMatcherXML object)
+            {
+                return createSingleFeatureMatcherXMLAdapter();
+            }
+            @Override
+            public Adapter caseTargetAnnotationXML(TargetAnnotationXML object)
+            {
+                return createTargetAnnotationXMLAdapter();
+            }
+            @Override
+            public Adapter defaultCase(EObject object)
+            {
+                return createEObjectAdapter();
+            }
+        };
+
+  /**
+     * Creates an adapter for the <code>target</code>.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @param target the object to adapt.
+     * @return the adapter for the <code>target</code>.
+     * @generated
+     */
+  @Override
+public Adapter createAdapter(Notifier target)
+  {
+        return modelSwitch.doSwitch((EObject)target);
+    }
+
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.BitsetFeatureValuesXML <em>Bitset Feature Values XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.BitsetFeatureValuesXML
+     * @generated
+     */
+  public Adapter createBitsetFeatureValuesXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.CFEDescriptorXML <em>CFE Descriptor XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.CFEDescriptorXML
+     * @generated
+     */
+  public Adapter createCFEDescriptorXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.DocumentRoot <em>Document Root</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.DocumentRoot
+     * @generated
+     */
+  public Adapter createDocumentRootAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.EnumFeatureValuesXML <em>Enum Feature Values XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.EnumFeatureValuesXML
+     * @generated
+     */
+  public Adapter createEnumFeatureValuesXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.FeatureObjectMatcherXML <em>Feature Object Matcher XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.FeatureObjectMatcherXML
+     * @generated
+     */
+  public Adapter createFeatureObjectMatcherXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.GroupFeatureMatcherXML <em>Group Feature Matcher XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.GroupFeatureMatcherXML
+     * @generated
+     */
+  public Adapter createGroupFeatureMatcherXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.ObjectPathFeatureValuesXML <em>Object Path Feature Values XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.ObjectPathFeatureValuesXML
+     * @generated
+     */
+  public Adapter createObjectPathFeatureValuesXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.PartialObjectMatcherXML <em>Partial Object Matcher XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.PartialObjectMatcherXML
+     * @generated
+     */
+  public Adapter createPartialObjectMatcherXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.PatternFeatureValuesXML <em>Pattern Feature Values XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.PatternFeatureValuesXML
+     * @generated
+     */
+  public Adapter createPatternFeatureValuesXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.RangeFeatureValuesXML <em>Range Feature Values XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.RangeFeatureValuesXML
+     * @generated
+     */
+  public Adapter createRangeFeatureValuesXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.SingleFeatureMatcherXML <em>Single Feature Matcher XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.SingleFeatureMatcherXML
+     * @generated
+     */
+  public Adapter createSingleFeatureMatcherXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for an object of class '{@link org.apache.uima.tools.cfe.config.TargetAnnotationXML <em>Target Annotation XML</em>}'.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null so that we can easily ignore cases;
+   * it's useful to ignore a case when inheritance will catch all the cases anyway.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.uima.tools.cfe.config.TargetAnnotationXML
+     * @generated
+     */
+  public Adapter createTargetAnnotationXMLAdapter()
+  {
+        return null;
+    }
+
+  /**
+     * Creates a new adapter for the default case.
+     * <!-- begin-user-doc -->
+   * This default implementation returns null.
+   * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @generated
+     */
+  public Adapter createEObjectAdapter()
+  {
+        return null;
+    }
+
+} //ConfigAdapterFactory

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceFactoryImpl.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceFactoryImpl.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceFactoryImpl.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,59 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.uima.tools.cfe.config.util.ConfigResourceImpl
+ * @generated
+ */
+public class ConfigResourceFactoryImpl extends ResourceFactoryImpl
+{
+  /**
+     * Creates an instance of the resource factory.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public ConfigResourceFactoryImpl()
+  {
+        super();
+    }
+
+  /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+public Resource createResource(URI uri)
+  {
+        XMLResource result = new ConfigResourceImpl(uri);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
+        return result;
+    }
+
+} //ConfigResourceFactoryImpl

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceImpl.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceImpl.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceImpl.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,34 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.uima.tools.cfe.config.util.ConfigResourceFactoryImpl
+ * @generated
+ */
+public class ConfigResourceImpl extends XMLResourceImpl
+{
+  /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @param uri the URI of the new resource.
+     * @generated
+     */
+  public ConfigResourceImpl(URI uri)
+  {
+        super(uri);
+    }
+
+} //ConfigResourceImpl

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceUtil.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceUtil.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceUtil.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigResourceUtil.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,146 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.util;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.InputStream;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.EObject;
+
+import org.apache.uima.tools.cfe.config.ConfigFactory;
+import org.apache.uima.tools.cfe.config.ConfigPackage;
+import org.apache.uima.tools.cfe.config.DocumentRoot;
+
+/**
+ * The utility class for loading and storing SDO instances as XML files.
+ * @generated
+ */
+public class ConfigResourceUtil 
+{
+  /**
+   * The single instance of this class.
+   * @generated
+   */
+  private static ConfigResourceUtil instance;
+
+  /**
+   * Return the single instance of this class.
+   * @generated
+   */  
+  public static ConfigResourceUtil getInstance()
+  {
+  	if (instance == null)
+  	{	
+  	  instance = new ConfigResourceUtil();
+  	}
+  	return instance;
+  }
+  
+  /**
+   * The default constructor.
+   * @generated
+   */  
+  public ConfigResourceUtil() 
+  {
+    initialize();
+  }
+
+  /**
+   * @generated
+   */
+  private void initialize()
+  {
+    Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("xml", new ConfigResourceFactoryImpl());
+    ConfigPackage pkg = ConfigPackage.eINSTANCE;   
+    ConfigFactory factory = ConfigFactory.eINSTANCE;
+  }
+
+  /**
+   * Load an existing XML file.
+   * @param filename the absolute path name of the XML file to be loaded.
+   * @exception IOException failed loading from an XML file.
+   * @return DocumentRoot
+   * @generated
+   */  
+  public DocumentRoot load(String filename) throws IOException
+  {
+    ConfigResourceImpl resource = (ConfigResourceImpl)(new ConfigResourceFactoryImpl()).createResource(URI.createURI(filename));
+    resource.load(null);
+    DocumentRoot documentRoot = (DocumentRoot)resource.getContents().get(0);
+    return documentRoot;
+  }
+
+  /**
+   * Load an existing XML file.
+   * @param istream the InputStream to load the XML content from.
+   * @exception IOException failed loading from an XML file.
+   * @return DocumentRoot
+   * @generated
+   */   
+  public DocumentRoot load(InputStream istream) throws IOException
+  {
+    ConfigResourceImpl resource = (ConfigResourceImpl)(new ConfigResourceFactoryImpl()).createResource(URI.createURI("*.xml"));
+    resource.load(istream,null);
+    DocumentRoot documentRoot = (DocumentRoot)resource.getContents().get(0);
+    return documentRoot;
+  }
+  
+  /**
+   * Save as an XML file.
+   * @param documentRoot the document root of the SDO instances.
+   * @param filename the absolute path name of the XML file to be created.
+   * @exception IOException failed storing to an XML file.
+   * @generated
+   */
+  public void save(DocumentRoot documentRoot, String filename) throws IOException
+  {
+  	ConfigResourceImpl resource = getConfigResourceImpl(documentRoot);
+    resource.setURI(URI.createURI(filename));
+    if (!resource.getContents().contains(documentRoot))
+    { 	
+      resource.getContents().add((EObject)documentRoot);
+    }  
+    resource.setEncoding("UTF-8");
+    resource.save(null);
+  } 
+ 
+  /**
+   * Save as an XML output stream.
+   * @param documentRoot the document root of the SDO instances.
+   * @param ostream the OutputStream where the XML content is to be written.
+   * @exception IOException failed storing to an XML file.
+   * @generated
+   */ 
+  public void save(DocumentRoot documentRoot, OutputStream ostream) throws IOException
+  {
+  	ConfigResourceImpl resource = getConfigResourceImpl(documentRoot);
+    if (!resource.getContents().contains(documentRoot))
+    { 	
+      resource.getContents().add((EObject)documentRoot);
+    }  
+    resource.setEncoding("UTF-8");
+    resource.save(ostream,null);
+  } 
+  
+  /**
+   * Return a resource associated with documentRoot.
+   * @param documentRoot the document root of the SDO instances.
+   * @return ConfigResourceImpl
+   * @generated
+   */   
+  private ConfigResourceImpl getConfigResourceImpl(DocumentRoot documentRoot)
+  {
+  	ConfigResourceImpl resource = (ConfigResourceImpl)((EObject)documentRoot).eResource();
+    if (resource == null)
+      resource = (ConfigResourceImpl)(new ConfigResourceFactoryImpl()).createResource(URI.createURI("*.xml"));
+    return resource;    
+  }
+
+}

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigSwitch.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigSwitch.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigSwitch.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigSwitch.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,396 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.util;
+
+import java.util.List;
+
+import org.apache.uima.tools.cfe.config.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> 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.
+ * <!-- end-user-doc -->
+ * @see org.apache.uima.tools.cfe.config.ConfigPackage
+ * @generated
+ */
+public class ConfigSwitch<T>
+{
+  /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  protected static ConfigPackage modelPackage;
+
+  /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public ConfigSwitch()
+  {
+        if (modelPackage == null)
+        {
+            modelPackage = ConfigPackage.eINSTANCE;
+        }
+    }
+
+  /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+  public T doSwitch(EObject theEObject)
+  {
+        return doSwitch(theEObject.eClass(), theEObject);
+    }
+
+  /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+  protected T doSwitch(EClass theEClass, EObject theEObject)
+  {
+        if (theEClass.eContainer() == modelPackage)
+        {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else
+        {
+            List<EClass> eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch(eSuperTypes.get(0), theEObject);
+        }
+    }
+
+  /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+  protected T doSwitch(int classifierID, EObject theEObject)
+  {
+        switch (classifierID)
+        {
+            case ConfigPackage.BITSET_FEATURE_VALUES_XML:
+            {
+                BitsetFeatureValuesXML bitsetFeatureValuesXML = (BitsetFeatureValuesXML)theEObject;
+                T result = caseBitsetFeatureValuesXML(bitsetFeatureValuesXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.CFE_DESCRIPTOR_XML:
+            {
+                CFEDescriptorXML cfeDescriptorXML = (CFEDescriptorXML)theEObject;
+                T result = caseCFEDescriptorXML(cfeDescriptorXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.DOCUMENT_ROOT:
+            {
+                DocumentRoot documentRoot = (DocumentRoot)theEObject;
+                T result = caseDocumentRoot(documentRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.ENUM_FEATURE_VALUES_XML:
+            {
+                EnumFeatureValuesXML enumFeatureValuesXML = (EnumFeatureValuesXML)theEObject;
+                T result = caseEnumFeatureValuesXML(enumFeatureValuesXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.FEATURE_OBJECT_MATCHER_XML:
+            {
+                FeatureObjectMatcherXML featureObjectMatcherXML = (FeatureObjectMatcherXML)theEObject;
+                T result = caseFeatureObjectMatcherXML(featureObjectMatcherXML);
+                if (result == null) result = casePartialObjectMatcherXML(featureObjectMatcherXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.GROUP_FEATURE_MATCHER_XML:
+            {
+                GroupFeatureMatcherXML groupFeatureMatcherXML = (GroupFeatureMatcherXML)theEObject;
+                T result = caseGroupFeatureMatcherXML(groupFeatureMatcherXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.OBJECT_PATH_FEATURE_VALUES_XML:
+            {
+                ObjectPathFeatureValuesXML objectPathFeatureValuesXML = (ObjectPathFeatureValuesXML)theEObject;
+                T result = caseObjectPathFeatureValuesXML(objectPathFeatureValuesXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.PARTIAL_OBJECT_MATCHER_XML:
+            {
+                PartialObjectMatcherXML partialObjectMatcherXML = (PartialObjectMatcherXML)theEObject;
+                T result = casePartialObjectMatcherXML(partialObjectMatcherXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.PATTERN_FEATURE_VALUES_XML:
+            {
+                PatternFeatureValuesXML patternFeatureValuesXML = (PatternFeatureValuesXML)theEObject;
+                T result = casePatternFeatureValuesXML(patternFeatureValuesXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.RANGE_FEATURE_VALUES_XML:
+            {
+                RangeFeatureValuesXML rangeFeatureValuesXML = (RangeFeatureValuesXML)theEObject;
+                T result = caseRangeFeatureValuesXML(rangeFeatureValuesXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.SINGLE_FEATURE_MATCHER_XML:
+            {
+                SingleFeatureMatcherXML singleFeatureMatcherXML = (SingleFeatureMatcherXML)theEObject;
+                T result = caseSingleFeatureMatcherXML(singleFeatureMatcherXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigPackage.TARGET_ANNOTATION_XML:
+            {
+                TargetAnnotationXML targetAnnotationXML = (TargetAnnotationXML)theEObject;
+                T result = caseTargetAnnotationXML(targetAnnotationXML);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Bitset Feature Values XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Bitset Feature Values XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseBitsetFeatureValuesXML(BitsetFeatureValuesXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>CFE Descriptor XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>CFE Descriptor XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseCFEDescriptorXML(CFEDescriptorXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseDocumentRoot(DocumentRoot object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Enum Feature Values XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Enum Feature Values XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseEnumFeatureValuesXML(EnumFeatureValuesXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Feature Object Matcher XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Feature Object Matcher XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseFeatureObjectMatcherXML(FeatureObjectMatcherXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Group Feature Matcher XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Group Feature Matcher XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseGroupFeatureMatcherXML(GroupFeatureMatcherXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Object Path Feature Values XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Object Path Feature Values XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseObjectPathFeatureValuesXML(ObjectPathFeatureValuesXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Partial Object Matcher XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Partial Object Matcher XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T casePartialObjectMatcherXML(PartialObjectMatcherXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Pattern Feature Values XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Pattern Feature Values XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T casePatternFeatureValuesXML(PatternFeatureValuesXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Range Feature Values XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Range Feature Values XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseRangeFeatureValuesXML(RangeFeatureValuesXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Single Feature Matcher XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Single Feature Matcher XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseSingleFeatureMatcherXML(SingleFeatureMatcherXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>Target Annotation XML</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>Target Annotation XML</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+  public T caseTargetAnnotationXML(TargetAnnotationXML object)
+  {
+        return null;
+    }
+
+  /**
+     * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+   * This implementation returns null;
+   * returning a non-null result will terminate the switch, but this is the last case anyway.
+   * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+  public T defaultCase(EObject object)
+  {
+        return null;
+    }
+
+} //ConfigSwitch

Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigXMLProcessor.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigXMLProcessor.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigXMLProcessor.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/util/ConfigXMLProcessor.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,57 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.uima.tools.cfe.config.util;
+
+import java.util.Map;
+
+import org.apache.uima.tools.cfe.config.ConfigPackage;
+
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConfigXMLProcessor extends XMLProcessor
+{
+
+  /**
+     * Public constructor to instantiate the helper.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  public ConfigXMLProcessor()
+  {
+        super((EPackage.Registry.INSTANCE));
+        ConfigPackage.eINSTANCE.eClass();
+    }
+  
+  /**
+     * Register for "*" and "xml" file extensions the ConfigResourceFactoryImpl factory.
+     * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+     * @generated
+     */
+  @Override
+protected Map<String, Resource.Factory> getRegistrations()
+  {
+        if (registrations == null)
+        {
+            super.getRegistrations();
+            registrations.put(XML_EXTENSION, new ConfigResourceFactoryImpl());
+            registrations.put(STAR_EXTENSION, new ConfigResourceFactoryImpl());
+        }
+        return registrations;
+    }
+
+} //ConfigXMLProcessor