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 [12/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/xmlBeans/impl/SingleFeatureMatcherXMLImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/SingleFeatureMatcherXMLImpl.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/SingleFeatureMatcherXMLImpl.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/SingleFeatureMatcherXMLImpl.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,731 @@
+/*
+ * XML Type: SingleFeatureMatcherXML
+ * Namespace: http://www.apache.org/uima/cfe/config/XMLBeans
+ * Java type: org.apache.uima.cfe.config.xmlBeans.SingleFeatureMatcherXML
+ *
+ * Automatically generated - do not modify.
+ */
+package org.apache.uima.tools.cfe.config.xmlBeans.impl;
+/**
+ * An XML SingleFeatureMatcherXML(@http://www.apache.org/uima/cfe/config/XMLBeans).
+ *
+ * This is a complex type.
+ */
+public class SingleFeatureMatcherXMLImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.uima.tools.cfe.config.xmlBeans.SingleFeatureMatcherXML
+{
+
+ public SingleFeatureMatcherXMLImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName RANGEFEATUREVALUES$0 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "rangeFeatureValues");
+ private static final javax.xml.namespace.QName ENUMFEATUREVALUES$2 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "enumFeatureValues");
+ private static final javax.xml.namespace.QName BITSETFEATUREVALUES$4 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "bitsetFeatureValues");
+ private static final javax.xml.namespace.QName OBJECTPATHFEATUREVALUES$6 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "objectPathFeatureValues");
+ private static final javax.xml.namespace.QName PATTERNFEATUREVALUES$8 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "patternFeatureValues");
+ private static final javax.xml.namespace.QName FEATURETYPENAME$10 =
+ new javax.xml.namespace.QName("", "featureTypeName");
+ private static final javax.xml.namespace.QName FEATUREPATH$12 =
+ new javax.xml.namespace.QName("", "featurePath");
+ private static final javax.xml.namespace.QName EXCLUDE$14 =
+ new javax.xml.namespace.QName("", "exclude");
+ private static final javax.xml.namespace.QName QUIET$16 =
+ new javax.xml.namespace.QName("", "quiet");
+
+
+ /**
+ * Gets the "rangeFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML getRangeFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML)get_store().find_element_user(RANGEFEATUREVALUES$0, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * True if has "rangeFeatureValues" element
+ */
+ public boolean isSetRangeFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(RANGEFEATUREVALUES$0) != 0;
+ }
+ }
+
+ /**
+ * Sets the "rangeFeatureValues" element
+ */
+ public void setRangeFeatureValues(org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML rangeFeatureValues)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML)get_store().find_element_user(RANGEFEATUREVALUES$0, 0);
+ if (target == null)
+ {
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML)get_store().add_element_user(RANGEFEATUREVALUES$0);
+ }
+ target.set(rangeFeatureValues);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "rangeFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML addNewRangeFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.RangeFeatureValuesXML)get_store().add_element_user(RANGEFEATUREVALUES$0);
+ return target;
+ }
+ }
+
+ /**
+ * Unsets the "rangeFeatureValues" element
+ */
+ public void unsetRangeFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(RANGEFEATUREVALUES$0, 0);
+ }
+ }
+
+ /**
+ * Gets the "enumFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML getEnumFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML)get_store().find_element_user(ENUMFEATUREVALUES$2, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * True if has "enumFeatureValues" element
+ */
+ public boolean isSetEnumFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(ENUMFEATUREVALUES$2) != 0;
+ }
+ }
+
+ /**
+ * Sets the "enumFeatureValues" element
+ */
+ public void setEnumFeatureValues(org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML enumFeatureValues)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML)get_store().find_element_user(ENUMFEATUREVALUES$2, 0);
+ if (target == null)
+ {
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML)get_store().add_element_user(ENUMFEATUREVALUES$2);
+ }
+ target.set(enumFeatureValues);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "enumFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML addNewEnumFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.EnumFeatureValuesXML)get_store().add_element_user(ENUMFEATUREVALUES$2);
+ return target;
+ }
+ }
+
+ /**
+ * Unsets the "enumFeatureValues" element
+ */
+ public void unsetEnumFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(ENUMFEATUREVALUES$2, 0);
+ }
+ }
+
+ /**
+ * Gets the "bitsetFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML getBitsetFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML)get_store().find_element_user(BITSETFEATUREVALUES$4, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * True if has "bitsetFeatureValues" element
+ */
+ public boolean isSetBitsetFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(BITSETFEATUREVALUES$4) != 0;
+ }
+ }
+
+ /**
+ * Sets the "bitsetFeatureValues" element
+ */
+ public void setBitsetFeatureValues(org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML bitsetFeatureValues)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML)get_store().find_element_user(BITSETFEATUREVALUES$4, 0);
+ if (target == null)
+ {
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML)get_store().add_element_user(BITSETFEATUREVALUES$4);
+ }
+ target.set(bitsetFeatureValues);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "bitsetFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML addNewBitsetFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.BitsetFeatureValuesXML)get_store().add_element_user(BITSETFEATUREVALUES$4);
+ return target;
+ }
+ }
+
+ /**
+ * Unsets the "bitsetFeatureValues" element
+ */
+ public void unsetBitsetFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(BITSETFEATUREVALUES$4, 0);
+ }
+ }
+
+ /**
+ * Gets the "objectPathFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML getObjectPathFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML)get_store().find_element_user(OBJECTPATHFEATUREVALUES$6, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * True if has "objectPathFeatureValues" element
+ */
+ public boolean isSetObjectPathFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(OBJECTPATHFEATUREVALUES$6) != 0;
+ }
+ }
+
+ /**
+ * Sets the "objectPathFeatureValues" element
+ */
+ public void setObjectPathFeatureValues(org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML objectPathFeatureValues)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML)get_store().find_element_user(OBJECTPATHFEATUREVALUES$6, 0);
+ if (target == null)
+ {
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML)get_store().add_element_user(OBJECTPATHFEATUREVALUES$6);
+ }
+ target.set(objectPathFeatureValues);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "objectPathFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML addNewObjectPathFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.ObjectPathFeatureValuesXML)get_store().add_element_user(OBJECTPATHFEATUREVALUES$6);
+ return target;
+ }
+ }
+
+ /**
+ * Unsets the "objectPathFeatureValues" element
+ */
+ public void unsetObjectPathFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(OBJECTPATHFEATUREVALUES$6, 0);
+ }
+ }
+
+ /**
+ * Gets the "patternFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML getPatternFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML)get_store().find_element_user(PATTERNFEATUREVALUES$8, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * True if has "patternFeatureValues" element
+ */
+ public boolean isSetPatternFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(PATTERNFEATUREVALUES$8) != 0;
+ }
+ }
+
+ /**
+ * Sets the "patternFeatureValues" element
+ */
+ public void setPatternFeatureValues(org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML patternFeatureValues)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML)get_store().find_element_user(PATTERNFEATUREVALUES$8, 0);
+ if (target == null)
+ {
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML)get_store().add_element_user(PATTERNFEATUREVALUES$8);
+ }
+ target.set(patternFeatureValues);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "patternFeatureValues" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML addNewPatternFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PatternFeatureValuesXML)get_store().add_element_user(PATTERNFEATUREVALUES$8);
+ return target;
+ }
+ }
+
+ /**
+ * Unsets the "patternFeatureValues" element
+ */
+ public void unsetPatternFeatureValues()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(PATTERNFEATUREVALUES$8, 0);
+ }
+ }
+
+ /**
+ * Gets the "featureTypeName" attribute
+ */
+ public java.lang.String getFeatureTypeName()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FEATURETYPENAME$10);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "featureTypeName" attribute
+ */
+ public org.apache.xmlbeans.XmlString xgetFeatureTypeName()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FEATURETYPENAME$10);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "featureTypeName" attribute
+ */
+ public void setFeatureTypeName(java.lang.String featureTypeName)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FEATURETYPENAME$10);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FEATURETYPENAME$10);
+ }
+ target.setStringValue(featureTypeName);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "featureTypeName" attribute
+ */
+ public void xsetFeatureTypeName(org.apache.xmlbeans.XmlString featureTypeName)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FEATURETYPENAME$10);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(FEATURETYPENAME$10);
+ }
+ target.set(featureTypeName);
+ }
+ }
+
+ /**
+ * Gets the "featurePath" attribute
+ */
+ public java.lang.String getFeaturePath()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FEATUREPATH$12);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "featurePath" attribute
+ */
+ public org.apache.xmlbeans.XmlString xgetFeaturePath()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FEATUREPATH$12);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "featurePath" attribute
+ */
+ public void setFeaturePath(java.lang.String featurePath)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FEATUREPATH$12);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FEATUREPATH$12);
+ }
+ target.setStringValue(featurePath);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "featurePath" attribute
+ */
+ public void xsetFeaturePath(org.apache.xmlbeans.XmlString featurePath)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FEATUREPATH$12);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(FEATUREPATH$12);
+ }
+ target.set(featurePath);
+ }
+ }
+
+ /**
+ * Gets the "exclude" attribute
+ */
+ public boolean getExclude()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXCLUDE$14);
+ if (target == null)
+ {
+ return false;
+ }
+ return target.getBooleanValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "exclude" attribute
+ */
+ public org.apache.xmlbeans.XmlBoolean xgetExclude()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlBoolean target = null;
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EXCLUDE$14);
+ return target;
+ }
+ }
+
+ /**
+ * True if has "exclude" attribute
+ */
+ public boolean isSetExclude()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().find_attribute_user(EXCLUDE$14) != null;
+ }
+ }
+
+ /**
+ * Sets the "exclude" attribute
+ */
+ public void setExclude(boolean exclude)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXCLUDE$14);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXCLUDE$14);
+ }
+ target.setBooleanValue(exclude);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "exclude" attribute
+ */
+ public void xsetExclude(org.apache.xmlbeans.XmlBoolean exclude)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlBoolean target = null;
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EXCLUDE$14);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(EXCLUDE$14);
+ }
+ target.set(exclude);
+ }
+ }
+
+ /**
+ * Unsets the "exclude" attribute
+ */
+ public void unsetExclude()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_attribute(EXCLUDE$14);
+ }
+ }
+
+ /**
+ * Gets the "quiet" attribute
+ */
+ public boolean getQuiet()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(QUIET$16);
+ if (target == null)
+ {
+ return false;
+ }
+ return target.getBooleanValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "quiet" attribute
+ */
+ public org.apache.xmlbeans.XmlBoolean xgetQuiet()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlBoolean target = null;
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(QUIET$16);
+ return target;
+ }
+ }
+
+ /**
+ * True if has "quiet" attribute
+ */
+ public boolean isSetQuiet()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().find_attribute_user(QUIET$16) != null;
+ }
+ }
+
+ /**
+ * Sets the "quiet" attribute
+ */
+ public void setQuiet(boolean quiet)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(QUIET$16);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(QUIET$16);
+ }
+ target.setBooleanValue(quiet);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "quiet" attribute
+ */
+ public void xsetQuiet(org.apache.xmlbeans.XmlBoolean quiet)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlBoolean target = null;
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(QUIET$16);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(QUIET$16);
+ }
+ target.set(quiet);
+ }
+ }
+
+ /**
+ * Unsets the "quiet" attribute
+ */
+ public void unsetQuiet()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_attribute(QUIET$16);
+ }
+ }
+}
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/TargetAnnotationXMLImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/TargetAnnotationXMLImpl.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/TargetAnnotationXMLImpl.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/config/xmlBeans/impl/TargetAnnotationXMLImpl.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,333 @@
+/*
+ * XML Type: TargetAnnotationXML
+ * Namespace: http://www.apache.org/uima/cfe/config/XMLBeans
+ * Java type: org.apache.uima.cfe.config.xmlBeans.TargetAnnotationXML
+ *
+ * Automatically generated - do not modify.
+ */
+package org.apache.uima.tools.cfe.config.xmlBeans.impl;
+/**
+ * An XML TargetAnnotationXML(@http://www.apache.org/uima/cfe/config/XMLBeans).
+ *
+ * This is a complex type.
+ */
+public class TargetAnnotationXMLImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.uima.tools.cfe.config.xmlBeans.TargetAnnotationXML
+{
+
+ public TargetAnnotationXMLImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName TARGETANNOTATIONMATCHER$0 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "targetAnnotationMatcher");
+ private static final javax.xml.namespace.QName FEATUREANNOTATIONMATCHERS$2 =
+ new javax.xml.namespace.QName("http://www.apache.org/uima/cfe/config/XMLBeans", "featureAnnotationMatchers");
+ private static final javax.xml.namespace.QName CLASSNAME$4 =
+ new javax.xml.namespace.QName("", "className");
+ private static final javax.xml.namespace.QName ENCLOSINGANNOTATION$6 =
+ new javax.xml.namespace.QName("", "enclosingAnnotation");
+
+
+ /**
+ * Gets the "targetAnnotationMatcher" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML getTargetAnnotationMatcher()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML)get_store().find_element_user(TARGETANNOTATIONMATCHER$0, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "targetAnnotationMatcher" element
+ */
+ public void setTargetAnnotationMatcher(org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML targetAnnotationMatcher)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML)get_store().find_element_user(TARGETANNOTATIONMATCHER$0, 0);
+ if (target == null)
+ {
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML)get_store().add_element_user(TARGETANNOTATIONMATCHER$0);
+ }
+ target.set(targetAnnotationMatcher);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "targetAnnotationMatcher" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML addNewTargetAnnotationMatcher()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.PartialObjectMatcherXML)get_store().add_element_user(TARGETANNOTATIONMATCHER$0);
+ return target;
+ }
+ }
+
+ /**
+ * Gets array of all "featureAnnotationMatchers" elements
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML[] getFeatureAnnotationMatchersArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(FEATUREANNOTATIONMATCHERS$2, targetList);
+ org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML[] result = new org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets ith "featureAnnotationMatchers" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML getFeatureAnnotationMatchersArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML)get_store().find_element_user(FEATUREANNOTATIONMATCHERS$2, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Returns number of "featureAnnotationMatchers" element
+ */
+ public int sizeOfFeatureAnnotationMatchersArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(FEATUREANNOTATIONMATCHERS$2);
+ }
+ }
+
+ /**
+ * Sets array of all "featureAnnotationMatchers" element
+ */
+ public void setFeatureAnnotationMatchersArray(org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML[] featureAnnotationMatchersArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(featureAnnotationMatchersArray, FEATUREANNOTATIONMATCHERS$2);
+ }
+ }
+
+ /**
+ * Sets ith "featureAnnotationMatchers" element
+ */
+ public void setFeatureAnnotationMatchersArray(int i, org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML featureAnnotationMatchers)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML)get_store().find_element_user(FEATUREANNOTATIONMATCHERS$2, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(featureAnnotationMatchers);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "featureAnnotationMatchers" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML insertNewFeatureAnnotationMatchers(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML)get_store().insert_element_user(FEATUREANNOTATIONMATCHERS$2, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "featureAnnotationMatchers" element
+ */
+ public org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML addNewFeatureAnnotationMatchers()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML target = null;
+ target = (org.apache.uima.tools.cfe.config.xmlBeans.FeatureObjectMatcherXML)get_store().add_element_user(FEATUREANNOTATIONMATCHERS$2);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "featureAnnotationMatchers" element
+ */
+ public void removeFeatureAnnotationMatchers(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(FEATUREANNOTATIONMATCHERS$2, i);
+ }
+ }
+
+ /**
+ * Gets the "className" attribute
+ */
+ public java.lang.String getClassName()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSNAME$4);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "className" attribute
+ */
+ public org.apache.xmlbeans.XmlString xgetClassName()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASSNAME$4);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "className" attribute
+ */
+ public void setClassName(java.lang.String className)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSNAME$4);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSNAME$4);
+ }
+ target.setStringValue(className);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "className" attribute
+ */
+ public void xsetClassName(org.apache.xmlbeans.XmlString className)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASSNAME$4);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CLASSNAME$4);
+ }
+ target.set(className);
+ }
+ }
+
+ /**
+ * Gets the "enclosingAnnotation" attribute
+ */
+ public java.lang.String getEnclosingAnnotation()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENCLOSINGANNOTATION$6);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "enclosingAnnotation" attribute
+ */
+ public org.apache.xmlbeans.XmlString xgetEnclosingAnnotation()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ENCLOSINGANNOTATION$6);
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "enclosingAnnotation" attribute
+ */
+ public void setEnclosingAnnotation(java.lang.String enclosingAnnotation)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENCLOSINGANNOTATION$6);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ENCLOSINGANNOTATION$6);
+ }
+ target.setStringValue(enclosingAnnotation);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "enclosingAnnotation" attribute
+ */
+ public void xsetEnclosingAnnotation(org.apache.xmlbeans.XmlString enclosingAnnotation)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ENCLOSINGANNOTATION$6);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ENCLOSINGANNOTATION$6);
+ }
+ target.set(enclosingAnnotation);
+ }
+ }
+}
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,115 @@
+
+
+/* First created by JCasGen Fri Sep 05 14:43:49 EDT 2008 */
+package org.apache.uima.tools.cfe.sample;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.jcas.cas.FSArray;
+import org.apache.uima.jcas.tcas.Annotation;
+
+
+/**
+ * Updated by JCasGen Fri Sep 05 14:53:11 EDT 2008
+ * XML source: C:/eclipse/CFE/resources/samples/SampleTypeSystem.xml
+ * @generated */
+public class CarAnnotation extends Annotation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(CarAnnotation.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected CarAnnotation() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public CarAnnotation(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public CarAnnotation(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public CarAnnotation(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: Wheels
+
+ /** getter for Wheels - gets wheels of a car
+ * @generated */
+ public FSArray getWheels() {
+ if (CarAnnotation_Type.featOkTst && ((CarAnnotation_Type)jcasType).casFeat_Wheels == null)
+ jcasType.jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Wheels)));}
+
+ /** setter for Wheels - sets wheels of a car
+ * @generated */
+ public void setWheels(FSArray v) {
+ if (CarAnnotation_Type.featOkTst && ((CarAnnotation_Type)jcasType).casFeat_Wheels == null)
+ jcasType.jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Wheels, jcasType.ll_cas.ll_getFSRef(v));}
+
+ /** indexed getter for Wheels - gets an indexed value - wheels of a car
+ * @generated */
+ public WheelAnnotation getWheels(int i) {
+ if (CarAnnotation_Type.featOkTst && ((CarAnnotation_Type)jcasType).casFeat_Wheels == null)
+ jcasType.jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Wheels), i);
+ return (WheelAnnotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Wheels), i)));}
+
+ /** indexed setter for Wheels - sets an indexed value - wheels of a car
+ * @generated */
+ public void setWheels(int i, WheelAnnotation v) {
+ if (CarAnnotation_Type.featOkTst && ((CarAnnotation_Type)jcasType).casFeat_Wheels == null)
+ jcasType.jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Wheels), i);
+ jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Wheels), i, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: Engine
+
+ /** getter for Engine - gets engine of a car
+ * @generated */
+ public EngineAnnotation getEngine() {
+ if (CarAnnotation_Type.featOkTst && ((CarAnnotation_Type)jcasType).casFeat_Engine == null)
+ jcasType.jcas.throwFeatMissing("Engine", "org.apache.uima.cfe.sample.CarAnnotation");
+ return (EngineAnnotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Engine)));}
+
+ /** setter for Engine - sets engine of a car
+ * @generated */
+ public void setEngine(EngineAnnotation v) {
+ if (CarAnnotation_Type.featOkTst && ((CarAnnotation_Type)jcasType).casFeat_Engine == null)
+ jcasType.jcas.throwFeatMissing("Engine", "org.apache.uima.cfe.sample.CarAnnotation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((CarAnnotation_Type)jcasType).casFeatCode_Engine, jcasType.ll_cas.ll_getFSRef(v));}
+ }
+
+
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation_Type.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation_Type.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/CarAnnotation_Type.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,120 @@
+
+/* First created by JCasGen Fri Sep 05 14:43:49 EDT 2008 */
+package org.apache.uima.tools.cfe.sample;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.Feature;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/**
+ * Updated by JCasGen Fri Sep 05 14:53:11 EDT 2008
+ * @generated */
+public class CarAnnotation_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (CarAnnotation_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = CarAnnotation_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new CarAnnotation(addr, CarAnnotation_Type.this);
+ CarAnnotation_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new CarAnnotation(addr, CarAnnotation_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = CarAnnotation.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.cfe.sample.CarAnnotation");
+
+ /** @generated */
+ final Feature casFeat_Wheels;
+ /** @generated */
+ final int casFeatCode_Wheels;
+ /** @generated */
+ public int getWheels(int addr) {
+ if (featOkTst && casFeat_Wheels == null)
+ jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_Wheels);
+ }
+ /** @generated */
+ public void setWheels(int addr, int v) {
+ if (featOkTst && casFeat_Wheels == null)
+ jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_Wheels, v);}
+
+ /** @generated */
+ public int getWheels(int addr, int i) {
+ if (featOkTst && casFeat_Wheels == null)
+ jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ if (lowLevelTypeChecks)
+ return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_Wheels), i, true);
+ jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_Wheels), i);
+ return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_Wheels), i);
+ }
+
+ /** @generated */
+ public void setWheels(int addr, int i, int v) {
+ if (featOkTst && casFeat_Wheels == null)
+ jcas.throwFeatMissing("Wheels", "org.apache.uima.cfe.sample.CarAnnotation");
+ if (lowLevelTypeChecks)
+ ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_Wheels), i, v, true);
+ jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_Wheels), i);
+ ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_Wheels), i, v);
+ }
+
+
+ /** @generated */
+ final Feature casFeat_Engine;
+ /** @generated */
+ final int casFeatCode_Engine;
+ /** @generated */
+ public int getEngine(int addr) {
+ if (featOkTst && casFeat_Engine == null)
+ jcas.throwFeatMissing("Engine", "org.apache.uima.cfe.sample.CarAnnotation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_Engine);
+ }
+ /** @generated */
+ public void setEngine(int addr, int v) {
+ if (featOkTst && casFeat_Engine == null)
+ jcas.throwFeatMissing("Engine", "org.apache.uima.cfe.sample.CarAnnotation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_Engine, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public CarAnnotation_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_Wheels = jcas.getRequiredFeatureDE(casType, "Wheels", "uima.cas.FSArray", featOkTst);
+ casFeatCode_Wheels = (null == casFeat_Wheels) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Wheels).getCode();
+
+
+ casFeat_Engine = jcas.getRequiredFeatureDE(casType, "Engine", "org.apache.uima.cfe.sample.EngineAnnotation", featOkTst);
+ casFeatCode_Engine = (null == casFeat_Engine) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Engine).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,98 @@
+
+
+/* First created by JCasGen Fri Sep 05 14:43:49 EDT 2008 */
+package org.apache.uima.tools.cfe.sample;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.jcas.tcas.Annotation;
+
+
+/** annotation representing an engine of a car
+ * Updated by JCasGen Fri Sep 05 14:53:11 EDT 2008
+ * XML source: C:/eclipse/CFE/resources/samples/SampleTypeSystem.xml
+ * @generated */
+public class EngineAnnotation extends Annotation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(EngineAnnotation.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected EngineAnnotation() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public EngineAnnotation(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public EngineAnnotation(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public EngineAnnotation(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: Cylinders
+
+ /** getter for Cylinders - gets Number of cylinders
+ * @generated */
+ public int getCylinders() {
+ if (EngineAnnotation_Type.featOkTst && ((EngineAnnotation_Type)jcasType).casFeat_Cylinders == null)
+ jcasType.jcas.throwFeatMissing("Cylinders", "org.apache.uima.cfe.sample.EngineAnnotation");
+ return jcasType.ll_cas.ll_getIntValue(addr, ((EngineAnnotation_Type)jcasType).casFeatCode_Cylinders);}
+
+ /** setter for Cylinders - sets Number of cylinders
+ * @generated */
+ public void setCylinders(int v) {
+ if (EngineAnnotation_Type.featOkTst && ((EngineAnnotation_Type)jcasType).casFeat_Cylinders == null)
+ jcasType.jcas.throwFeatMissing("Cylinders", "org.apache.uima.cfe.sample.EngineAnnotation");
+ jcasType.ll_cas.ll_setIntValue(addr, ((EngineAnnotation_Type)jcasType).casFeatCode_Cylinders, v);}
+
+
+ //*--------------*
+ //* Feature: Size
+
+ /** getter for Size - gets size of an engine
+ * @generated */
+ public float getSize() {
+ if (EngineAnnotation_Type.featOkTst && ((EngineAnnotation_Type)jcasType).casFeat_Size == null)
+ jcasType.jcas.throwFeatMissing("Size", "org.apache.uima.cfe.sample.EngineAnnotation");
+ return jcasType.ll_cas.ll_getFloatValue(addr, ((EngineAnnotation_Type)jcasType).casFeatCode_Size);}
+
+ /** setter for Size - sets size of an engine
+ * @generated */
+ public void setSize(float v) {
+ if (EngineAnnotation_Type.featOkTst && ((EngineAnnotation_Type)jcasType).casFeat_Size == null)
+ jcasType.jcas.throwFeatMissing("Size", "org.apache.uima.cfe.sample.EngineAnnotation");
+ jcasType.ll_cas.ll_setFloatValue(addr, ((EngineAnnotation_Type)jcasType).casFeatCode_Size, v);}
+ }
+
+
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation_Type.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation_Type.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/EngineAnnotation_Type.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,101 @@
+
+/* First created by JCasGen Fri Sep 05 14:43:49 EDT 2008 */
+package org.apache.uima.tools.cfe.sample;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.Feature;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/** annotation representing an engine of a car
+ * Updated by JCasGen Fri Sep 05 14:53:11 EDT 2008
+ * @generated */
+public class EngineAnnotation_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (EngineAnnotation_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = EngineAnnotation_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new EngineAnnotation(addr, EngineAnnotation_Type.this);
+ EngineAnnotation_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new EngineAnnotation(addr, EngineAnnotation_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = EngineAnnotation.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.cfe.sample.EngineAnnotation");
+
+ /** @generated */
+ final Feature casFeat_Cylinders;
+ /** @generated */
+ final int casFeatCode_Cylinders;
+ /** @generated */
+ public int getCylinders(int addr) {
+ if (featOkTst && casFeat_Cylinders == null)
+ jcas.throwFeatMissing("Cylinders", "org.apache.uima.cfe.sample.EngineAnnotation");
+ return ll_cas.ll_getIntValue(addr, casFeatCode_Cylinders);
+ }
+ /** @generated */
+ public void setCylinders(int addr, int v) {
+ if (featOkTst && casFeat_Cylinders == null)
+ jcas.throwFeatMissing("Cylinders", "org.apache.uima.cfe.sample.EngineAnnotation");
+ ll_cas.ll_setIntValue(addr, casFeatCode_Cylinders, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_Size;
+ /** @generated */
+ final int casFeatCode_Size;
+ /** @generated */
+ public float getSize(int addr) {
+ if (featOkTst && casFeat_Size == null)
+ jcas.throwFeatMissing("Size", "org.apache.uima.cfe.sample.EngineAnnotation");
+ return ll_cas.ll_getFloatValue(addr, casFeatCode_Size);
+ }
+ /** @generated */
+ public void setSize(int addr, float v) {
+ if (featOkTst && casFeat_Size == null)
+ jcas.throwFeatMissing("Size", "org.apache.uima.cfe.sample.EngineAnnotation");
+ ll_cas.ll_setFloatValue(addr, casFeatCode_Size, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public EngineAnnotation_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_Cylinders = jcas.getRequiredFeatureDE(casType, "Cylinders", "uima.cas.Integer", featOkTst);
+ casFeatCode_Cylinders = (null == casFeat_Cylinders) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Cylinders).getCode();
+
+
+ casFeat_Size = jcas.getRequiredFeatureDE(casType, "Size", "uima.cas.Float", featOkTst);
+ casFeatCode_Size = (null == casFeat_Size) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Size).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,98 @@
+
+
+/* First created by JCasGen Fri Sep 05 14:43:49 EDT 2008 */
+package org.apache.uima.tools.cfe.sample;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.jcas.tcas.Annotation;
+
+
+/** annotation representing wheels of a car
+ * Updated by JCasGen Fri Sep 05 14:53:11 EDT 2008
+ * XML source: C:/eclipse/CFE/resources/samples/SampleTypeSystem.xml
+ * @generated */
+public class WheelAnnotation extends Annotation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(WheelAnnotation.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected WheelAnnotation() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public WheelAnnotation(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public WheelAnnotation(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** @generated */
+ public WheelAnnotation(JCas jcas, int begin, int end) {
+ super(jcas);
+ setBegin(begin);
+ setEnd(end);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: Diameter
+
+ /** getter for Diameter - gets diameter of a wheel
+ * @generated */
+ public float getDiameter() {
+ if (WheelAnnotation_Type.featOkTst && ((WheelAnnotation_Type)jcasType).casFeat_Diameter == null)
+ jcasType.jcas.throwFeatMissing("Diameter", "org.apache.uima.cfe.sample.WheelAnnotation");
+ return jcasType.ll_cas.ll_getFloatValue(addr, ((WheelAnnotation_Type)jcasType).casFeatCode_Diameter);}
+
+ /** setter for Diameter - sets diameter of a wheel
+ * @generated */
+ public void setDiameter(float v) {
+ if (WheelAnnotation_Type.featOkTst && ((WheelAnnotation_Type)jcasType).casFeat_Diameter == null)
+ jcasType.jcas.throwFeatMissing("Diameter", "org.apache.uima.cfe.sample.WheelAnnotation");
+ jcasType.ll_cas.ll_setFloatValue(addr, ((WheelAnnotation_Type)jcasType).casFeatCode_Diameter, v);}
+
+
+ //*--------------*
+ //* Feature: Color
+
+ /** getter for Color - gets color of a car
+ * @generated */
+ public String getColor() {
+ if (WheelAnnotation_Type.featOkTst && ((WheelAnnotation_Type)jcasType).casFeat_Color == null)
+ jcasType.jcas.throwFeatMissing("Color", "org.apache.uima.cfe.sample.WheelAnnotation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((WheelAnnotation_Type)jcasType).casFeatCode_Color);}
+
+ /** setter for Color - sets color of a car
+ * @generated */
+ public void setColor(String v) {
+ if (WheelAnnotation_Type.featOkTst && ((WheelAnnotation_Type)jcasType).casFeat_Color == null)
+ jcasType.jcas.throwFeatMissing("Color", "org.apache.uima.cfe.sample.WheelAnnotation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((WheelAnnotation_Type)jcasType).casFeatCode_Color, v);}
+ }
+
+
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation_Type.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation_Type.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/sample/WheelAnnotation_Type.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,101 @@
+
+/* First created by JCasGen Fri Sep 05 14:43:49 EDT 2008 */
+package org.apache.uima.tools.cfe.sample;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.FSGenerator;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.impl.FeatureImpl;
+import org.apache.uima.cas.Feature;
+import org.apache.uima.jcas.tcas.Annotation_Type;
+
+/** annotation representing wheels of a car
+ * Updated by JCasGen Fri Sep 05 14:53:11 EDT 2008
+ * @generated */
+public class WheelAnnotation_Type extends Annotation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (WheelAnnotation_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = WheelAnnotation_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new WheelAnnotation(addr, WheelAnnotation_Type.this);
+ WheelAnnotation_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new WheelAnnotation(addr, WheelAnnotation_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = WheelAnnotation.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.cfe.sample.WheelAnnotation");
+
+ /** @generated */
+ final Feature casFeat_Diameter;
+ /** @generated */
+ final int casFeatCode_Diameter;
+ /** @generated */
+ public float getDiameter(int addr) {
+ if (featOkTst && casFeat_Diameter == null)
+ jcas.throwFeatMissing("Diameter", "org.apache.uima.cfe.sample.WheelAnnotation");
+ return ll_cas.ll_getFloatValue(addr, casFeatCode_Diameter);
+ }
+ /** @generated */
+ public void setDiameter(int addr, float v) {
+ if (featOkTst && casFeat_Diameter == null)
+ jcas.throwFeatMissing("Diameter", "org.apache.uima.cfe.sample.WheelAnnotation");
+ ll_cas.ll_setFloatValue(addr, casFeatCode_Diameter, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_Color;
+ /** @generated */
+ final int casFeatCode_Color;
+ /** @generated */
+ public String getColor(int addr) {
+ if (featOkTst && casFeat_Color == null)
+ jcas.throwFeatMissing("Color", "org.apache.uima.cfe.sample.WheelAnnotation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_Color);
+ }
+ /** @generated */
+ public void setColor(int addr, String v) {
+ if (featOkTst && casFeat_Color == null)
+ jcas.throwFeatMissing("Color", "org.apache.uima.cfe.sample.WheelAnnotation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_Color, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public WheelAnnotation_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_Diameter = jcas.getRequiredFeatureDE(casType, "Diameter", "uima.cas.Float", featOkTst);
+ casFeatCode_Diameter = (null == casFeat_Diameter) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Diameter).getCode();
+
+
+ casFeat_Color = jcas.getRequiredFeatureDE(casType, "Color", "uima.cas.String", featOkTst);
+ casFeatCode_Color = (null == casFeat_Color) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Color).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ArrayComparatorFinder.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ArrayComparatorFinder.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ArrayComparatorFinder.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ArrayComparatorFinder.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,22 @@
+package org.apache.uima.tools.cfe.support;
+
+import java.util.Comparator;
+
+import org.apache.uima.jcas.tcas.Annotation;
+
+
+public class ArrayComparatorFinder
+{
+ public static Comparator<Annotation> find (Object[] objs)
+ {
+ for (int i = 0; i < objs.length; ++i) {
+ if (null == objs[i]) {
+ continue;
+ }
+ if (!(objs[i] instanceof Annotation)) {
+ return null;
+ }
+ }
+ return new UIMAAnnotationOffsetComparator();
+ }
+}
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ComparableArray.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ComparableArray.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ComparableArray.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/ComparableArray.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,52 @@
+package org.apache.uima.tools.cfe.support;
+
+public class ComparableArray implements Comparable
+{
+ public final Comparable[] m_src;
+
+ public ComparableArray(Comparable[] src)
+ {
+ m_src = src;
+ }
+
+ int compare(Comparable[] ia1, Comparable[] ia2)
+ {
+ if (ia1 == ia2) {
+ return 0;
+ }
+ if ((null == ia1) || (null == ia2)) {
+ return null == ia2 ? 1 : -1;
+ }
+ if (ia1.length != ia2.length) {
+ return ia1.length > ia2.length ? 1 : -1;
+ }
+ for (int i = 0; i < ia1.length; ++i) {
+ int res = ia1[i].compareTo(ia2[i]);
+ if (0 != res) {
+ return res;
+ }
+ }
+ return 0;
+ }
+
+ public int compareTo (Object other)
+ {
+ return compare(m_src, ((ComparableArray)other).m_src);
+ }
+
+ public String toString ()
+ {
+ StringBuffer result = new StringBuffer(m_src.length * 8);
+ result.append("[");
+ if (null != m_src) {
+ for (int i = 0; i < m_src.length; ++i) {
+ if (0 != i) {
+ result.append(",");
+ }
+ result.append(m_src[i]);
+ }
+ }
+ result.append("]");
+ return result.toString();
+ }
+}
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/DictionaryMatcher.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/DictionaryMatcher.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/DictionaryMatcher.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/DictionaryMatcher.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,11 @@
+package org.apache.uima.tools.cfe.support;
+
+import java.lang.reflect.InvocationTargetException;
+
+public interface DictionaryMatcher<T>
+{
+ abstract boolean matches(T key)
+ throws IllegalArgumentException, IllegalAccessException, InvocationTargetException;
+
+
+}
Added: incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/EnumeratedEntryDictionary.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/EnumeratedEntryDictionary.java?rev=786255&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/EnumeratedEntryDictionary.java (added)
+++ incubator/uima/sandbox/trunk/ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/support/EnumeratedEntryDictionary.java Thu Jun 18 20:39:50 2009
@@ -0,0 +1,30 @@
+package org.apache.uima.tools.cfe.support;
+
+import java.util.Set;
+
+import org.apache.uima.tools.cfe.FeatureValueNormalizer;
+
+
+public class EnumeratedEntryDictionary extends SimpleFileBasedDictionary<String>
+{
+ protected FeatureValueNormalizer m_normalizer;
+
+ public EnumeratedEntryDictionary(String name, String path, FeatureValueNormalizer normalizer)
+ {
+ super(name, path, null, null, null);
+ m_normalizer = normalizer;
+ }
+
+ protected void addLine(String[] toks, int cnt)
+ {
+ String tok = m_normalizer.normalize(toks[0]);
+ addEntry(tok, null, cnt);
+ }
+
+ public Set<String> values()
+ {
+ return storage().keySet();
+ }
+}
+
+