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 2008/01/08 17:38:51 UTC

svn commit: r610062 [5/12] - in /incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor: ./ src/main/java/org/apache/uima/aae/deployment/ src/main/java/org/apache/uima/aae/deployment/impl/ src/main/java/org/apache/uima/application/metadata/...

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/aae/deployment/impl/RemoteAEDeploymentMetaData_Impl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/aae/deployment/impl/RemoteAEDeploymentMetaData_Impl.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/aae/deployment/impl/RemoteAEDeploymentMetaData_Impl.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/aae/deployment/impl/RemoteAEDeploymentMetaData_Impl.java Tue Jan  8 08:38:45 2008
@@ -1,366 +1,366 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Aug 11, 2007, 12:01:48 PM
- * source:  RemoteAEDeploymentMetaData_Impl.java
- */
-package org.apache.uima.aae.deployment.impl;
-
-import org.apache.uima.UIMAFramework;
-import org.apache.uima.aae.deployment.AEDeploymentConstants;
-import org.apache.uima.aae.deployment.AsyncAEErrorConfiguration;
-import org.apache.uima.aae.deployment.AsyncAggregateErrorConfiguration;
-import org.apache.uima.aae.deployment.AsyncPrimitiveErrorConfiguration;
-import org.apache.uima.aae.deployment.RemoteAEDeploymentMetaData;
-import org.apache.uima.analysis_engine.AnalysisEngineDescription;
-import org.apache.uima.resource.ResourceManager;
-import org.apache.uima.resource.ResourceSpecifier;
-import org.apache.uima.resource.metadata.Import;
-import org.apache.uima.resource.metadata.impl.MetaDataObject_impl;
-import org.apache.uima.resource.metadata.impl.XmlizationInfo;
-import org.apache.uima.util.InvalidXMLException;
-import org.apache.uima.util.XMLParser;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.ContentHandler;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.AttributesImpl;
-
-
-/**
- * 
- *
- */
-public class RemoteAEDeploymentMetaData_Impl extends DeploymentMetaData_Impl 
-implements RemoteAEDeploymentMetaData, AEDeploymentConstants
-{
-
-  private static final long serialVersionUID = -6028698292841920067L;
-
-  protected int           casMultiplierPoolSize = DEFAULT_CAS_MULTIPLIER_POOL_SIZE;
-  protected InputQueue    inputQueue = new InputQueue_Impl();
-  protected String        replyQueueLocation = DEFAULT_REPLY_QUEUE_LOCATION; // NOT defined
-  protected String        serializerMethod = "xmi"; // NOT defined
-
-  protected AsyncAEErrorConfiguration errorConfiguration;
-  protected ResourceSpecifier         resourceSpecifier;
-  protected Import importedAE;    // import by location|name of AE descriptor
-
-
-  /*************************************************************************/
-
-  /**
-   * 
-   */
-  public RemoteAEDeploymentMetaData_Impl() {
-  }
-
-  public boolean isSet (int i) {
-    return i != UNDEFINED_INT;
-  }
-
-  public ResourceSpecifier getResourceSpecifier () {
-    return resourceSpecifier;
-  }
-
-  public void setResourceSpecifier (ResourceSpecifier rs, 
-          ResourceManager aResourceManager, boolean recursive) throws InvalidXMLException {
-    resourceSpecifier = rs;
-  }
-
-  /* (non-Javadoc)
-   * @see org.apache.uima.resource.metadata.impl.MetaDataObject_impl#buildFromXMLElement(org.w3c.dom.Element, org.apache.uima.util.XMLParser, org.apache.uima.util.XMLParser.ParsingOptions)
-   */
-  public void buildFromXMLElement (Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions)
-  throws InvalidXMLException
-  {
-    String val;
-
-    // Check for "key" attribute
-    NamedNodeMap map = aElement.getAttributes();
-    if (map != null) {
-      for (int i=0; i<map.getLength(); ++i) {
-        Node item = map.item(i);
-        String name = item.getNodeName();
-        val = item.getNodeValue();
-        if (val == null) {
-          val = "";
-        } else {
-          val = val.trim();
-        }
-        if (AEDeploymentConstants.TAG_ATTR_KEY.equalsIgnoreCase(name)) {
-          // Set "key = ..." attribute
-          setKey(val);
-        } else {
-          throw new InvalidXMLException(InvalidXMLException.UNKNOWN_ELEMENT,
-                  new Object[]{name});
-        }
-      }
-    }
-
-    NodeList childNodes = aElement.getChildNodes();
-    for (int i = 0; i < childNodes.getLength(); i++) {
-      Node curNode = childNodes.item(i);
-      if (curNode instanceof Element) {
-        Element elem = (Element)curNode;
-
-        if (TAG_INPUT_QUEUE.equalsIgnoreCase(elem.getTagName())) {
-          // inputQueue.setEndPoint(elem.getAttribute(TAG_ATTR_END_POINT));
-          // inputQueue.setBrokerURL(elem.getAttribute(TAG_ATTR_BROKER_URL));
-          checkAndSetInputQueueAttributes(elem);
-
-        } else if (AEDeploymentConstants.TAG_CAS_MULTIPLIER.equalsIgnoreCase(elem.getTagName())) {
-          // Get "poolSize" attribute
-          int n;
-          val = DDParserUtil.checkAndGetAttributeValue(TAG_CAS_MULTIPLIER, TAG_ATTR_POOL_SIZE, elem);
-          if (val == null || val.trim().length() == 0) {
-            n = 0;
-          } else {
-            try {
-              n = Integer.parseInt(val);
-            } catch (NumberFormatException e) {
-              e.printStackTrace();
-              throw new InvalidXMLException(InvalidXMLException.UNKNOWN_ELEMENT,
-                      new Object[] { TAG_ATTR_POOL_SIZE }, e);
-            }
-          }
-          setCasMultiplierPoolSize(n);
-
-        } else if (TAG_REPLY_QUEUE.equalsIgnoreCase(elem.getTagName())) {
-          // setReplyQueueLocation(elem.getAttribute(TAG_ATTR_LOCATION));
-          setReplyQueueLocation(DDParserUtil.checkAndGetAttributeValue(TAG_REPLY_QUEUE, TAG_ATTR_LOCATION, elem));
-
-        } else if (TAG_SERIALIZER.equalsIgnoreCase(elem.getTagName())) {
-          // setSerializerMethod(elem.getAttribute(TAG_ATTR_METHOD));
-          setSerializerMethod(DDParserUtil.checkAndGetAttributeValue(TAG_SERIALIZER, TAG_ATTR_METHOD, elem));
-
-        } else if (TAG_ASYNC_AGGREGATE_ERROR_CONFIGURATION.equalsIgnoreCase(elem.getTagName())) {
-          errorConfiguration = (AsyncAggregateErrorConfiguration) aParser.buildObject(elem, aOptions); 
-          errorConfiguration.sParentObject(this);
-
-        } else {
-          throw new InvalidXMLException(
-                  InvalidXMLException.UNKNOWN_ELEMENT,
-                  new Object[]{elem.getTagName()});
-        }
-      }
-    } // for
-    
-    // Create Error Config if not specified
-    if (errorConfiguration == null) {
-      errorConfiguration = (AsyncAEErrorConfiguration) UIMAFramework
-                        .getResourceSpecifierFactory().createObject(AsyncAggregateErrorConfiguration.class);
-      setErrorConfiguration(errorConfiguration);
-      errorConfiguration.sParentObject(this);
-    }
-
-    
-  }
-
-  /**
-   * Check and set the attributes of Input Queue
-   * 
-   * @param aElement
-   * @throws InvalidXMLException
-   * @return void
-   */
-  protected void checkAndSetInputQueueAttributes (Element aElement) throws InvalidXMLException {
-    // Check for "key" and "async" attributes
-    NamedNodeMap map = aElement.getAttributes();
-    if (map != null) {
-      for (int i=0; i<map.getLength(); ++i) {
-        Node item = map.item(i);
-        String name = item.getNodeName();
-        String val = item.getNodeValue();
-        if (val == null) {
-          val = "";
-        } else {
-          val = val.trim();
-        }
-        if (AEDeploymentConstants.TAG_ATTR_END_POINT.equalsIgnoreCase(name)) {
-          // set "endpoint = ..." attribute
-          inputQueue.setEndPoint(val);
-
-        } else if (AEDeploymentConstants.TAG_ATTR_BROKER_URL.equalsIgnoreCase(name)) {
-          // set "brokerURL =" attribute
-          inputQueue.setBrokerURL(val);
-
-        } else {
-          throw new InvalidXMLException(InvalidXMLException.UNKNOWN_ELEMENT,
-                  new Object[]{name});
-        }
-      }
-    }
-
-    // Check for missing attributes
-    if (inputQueue.getEndPoint() == null) {
-      throw new InvalidXMLException(InvalidXMLException.ELEMENT_NOT_FOUND,
-              new Object[]{AEDeploymentConstants.TAG_ATTR_END_POINT, AEDeploymentConstants.TAG_INPUT_QUEUE});
-    }
-    if (inputQueue.getBrokerURL() == null) {
-      throw new InvalidXMLException(InvalidXMLException.ELEMENT_NOT_FOUND,
-              new Object[]{AEDeploymentConstants.TAG_ATTR_BROKER_URL, AEDeploymentConstants.TAG_INPUT_QUEUE});
-    }    
-  }
-
-  public void toXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute)
-                    throws SAXException
-  {
-    // <TAG_REMOTE_DELEGATE key=   >
-    AttributesImpl attrs = new AttributesImpl();
-    if (getKey() != null && getKey().trim().length() > 0) {
-      attrs.addAttribute("", TAG_ATTR_KEY, AEDeploymentConstants.TAG_ATTR_KEY, null, getKey());
-    }
-    aContentHandler.startElement("", TAG_REMOTE_DELEGATE, 
-            TAG_REMOTE_DELEGATE, attrs);
-    attrs.clear();
-
-    // <casMultiplier poolSize="5"/> <!-- req | omit-->
-    if (AEDeploymentDescription_Impl.isCASMultiplier(getResourceSpecifier())) {
-      if (getCasMultiplierPoolSize() != UNDEFINED_INT) {
-        attrs.addAttribute("", TAG_ATTR_POOL_SIZE, TAG_ATTR_POOL_SIZE,
-                null, "" + getCasMultiplierPoolSize());
-        aContentHandler.startElement("", TAG_CAS_MULTIPLIER, TAG_CAS_MULTIPLIER, attrs);
-        aContentHandler.endElement("", "", TAG_CAS_MULTIPLIER);
-        attrs.clear();        
-      }
-    }
-
-    // <inputQueue ... />
-    if (inputQueue != null) {
-      attrs.addAttribute("", TAG_ATTR_BROKER_URL, TAG_ATTR_BROKER_URL,
-              null, inputQueue.getBrokerURL());
-      attrs.addAttribute("", TAG_ATTR_END_POINT, TAG_ATTR_END_POINT,
-              null, inputQueue.getEndPoint());
-      aContentHandler.startElement("",
-              TAG_INPUT_QUEUE, TAG_INPUT_QUEUE, attrs);
-      aContentHandler.endElement("", "", TAG_INPUT_QUEUE);
-      attrs.clear();
-    }
-
-    // <replyQueue location="[local|remote]"/> <!-- optional -->
-    if (getReplyQueueLocation() != null) {
-      attrs.addAttribute("", TAG_ATTR_LOCATION, TAG_ATTR_LOCATION,
-              null, getReplyQueueLocation());
-      aContentHandler.startElement("",
-              TAG_REPLY_QUEUE, TAG_REPLY_QUEUE, attrs);
-      aContentHandler.endElement("", "", TAG_REPLY_QUEUE);
-      attrs.clear();
-    }
-
-    // <serializer method="xmi"/> <!-- optional -->
-    if (getSerializerMethod() != null) {
-      attrs.addAttribute("", TAG_ATTR_METHOD, TAG_ATTR_METHOD,
-              null, getSerializerMethod());
-      aContentHandler.startElement("",
-              TAG_SERIALIZER, TAG_SERIALIZER, attrs);
-      aContentHandler.endElement("", "", TAG_SERIALIZER);
-      attrs.clear();
-    }
-
-    // <asyncAggregateErrorConfiguration .../> <!-- optional -->
-    if (errorConfiguration != null) {
-      errorConfiguration.toXML(aContentHandler, aWriteDefaultNamespaceAttribute);
-    }
-
-    // </TAG_REMOTE_DELEGATE>
-    aContentHandler.endElement("", "", TAG_REMOTE_DELEGATE);
-  }
-
-  @Override
-  protected XmlizationInfo getXmlizationInfo() {
-    return new XmlizationInfo(null, null);
-  }
-
-  /*************************************************************************/
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getCasMultiplierPoolSize()
-   */
-  public int getCasMultiplierPoolSize() {
-    return casMultiplierPoolSize;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setCasMultiplierPoolSize(int)
-   */
-  public void setCasMultiplierPoolSize(int casMultiplierPoolSize) {
-    this.casMultiplierPoolSize = casMultiplierPoolSize;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getErrorConfiguration()
-   */
-  public AsyncAEErrorConfiguration getAsyncAEErrorConfiguration() {
-    return errorConfiguration;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setErrorConfiguration(com.ibm.uima.aae.deployment.impl.AsyncAggregateErrorConfiguration_Impl)
-   */
-  public void setErrorConfiguration(AsyncAEErrorConfiguration errorConfiguration) {
-    this.errorConfiguration = errorConfiguration;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getReplyQueueLocation()
-   */
-  public String getReplyQueueLocation() {
-    return replyQueueLocation;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setReplyQueueLocation(java.lang.String)
-   */
-  public void setReplyQueueLocation(String replyQueueLocation) {
-    this.replyQueueLocation = replyQueueLocation;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getSerializerMethod()
-   */
-  public String getSerializerMethod() {
-    return serializerMethod;
-  }
-
-  /* (non-Javadoc)
-   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setSerializerMethod(java.lang.String)
-   */
-  public void setSerializerMethod(String serializerMethod) {
-    this.serializerMethod = serializerMethod;
-  }
-
-  /**
-   * @return the inputQueue
-   */
-  public InputQueue getInputQueue() {
-    return inputQueue;
-  }
-
-  /**
-   * @param inputQueue the inputQueue to set
-   */
-  public void setInputQueue(InputQueue inputQueue) {
-    this.inputQueue = inputQueue;
-  }
-
-  /**
-   * @return the importedAE
-   */
-  public Import getImportedAE() {
-    return importedAE;
-  }
-
-  /**
-   * @param importedAE the importedAE to set
-   */
-  public void setImportedAE(Import importedAE) {
-    this.importedAE = importedAE;
-  }
-
-
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Aug 11, 2007, 12:01:48 PM
+ * source:  RemoteAEDeploymentMetaData_Impl.java
+ */
+package org.apache.uima.aae.deployment.impl;
+
+import org.apache.uima.UIMAFramework;
+import org.apache.uima.aae.deployment.AEDeploymentConstants;
+import org.apache.uima.aae.deployment.AsyncAEErrorConfiguration;
+import org.apache.uima.aae.deployment.AsyncAggregateErrorConfiguration;
+import org.apache.uima.aae.deployment.AsyncPrimitiveErrorConfiguration;
+import org.apache.uima.aae.deployment.RemoteAEDeploymentMetaData;
+import org.apache.uima.analysis_engine.AnalysisEngineDescription;
+import org.apache.uima.resource.ResourceManager;
+import org.apache.uima.resource.ResourceSpecifier;
+import org.apache.uima.resource.metadata.Import;
+import org.apache.uima.resource.metadata.impl.MetaDataObject_impl;
+import org.apache.uima.resource.metadata.impl.XmlizationInfo;
+import org.apache.uima.util.InvalidXMLException;
+import org.apache.uima.util.XMLParser;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
+
+
+/**
+ * 
+ *
+ */
+public class RemoteAEDeploymentMetaData_Impl extends DeploymentMetaData_Impl 
+implements RemoteAEDeploymentMetaData, AEDeploymentConstants
+{
+
+  private static final long serialVersionUID = -6028698292841920067L;
+
+  protected int           casMultiplierPoolSize = DEFAULT_CAS_MULTIPLIER_POOL_SIZE;
+  protected InputQueue    inputQueue = new InputQueue_Impl();
+  protected String        replyQueueLocation = DEFAULT_REPLY_QUEUE_LOCATION; // NOT defined
+  protected String        serializerMethod = "xmi"; // NOT defined
+
+  protected AsyncAEErrorConfiguration errorConfiguration;
+  protected ResourceSpecifier         resourceSpecifier;
+  protected Import importedAE;    // import by location|name of AE descriptor
+
+
+  /*************************************************************************/
+
+  /**
+   * 
+   */
+  public RemoteAEDeploymentMetaData_Impl() {
+  }
+
+  public boolean isSet (int i) {
+    return i != UNDEFINED_INT;
+  }
+
+  public ResourceSpecifier getResourceSpecifier () {
+    return resourceSpecifier;
+  }
+
+  public void setResourceSpecifier (ResourceSpecifier rs, 
+          ResourceManager aResourceManager, boolean recursive) throws InvalidXMLException {
+    resourceSpecifier = rs;
+  }
+
+  /* (non-Javadoc)
+   * @see org.apache.uima.resource.metadata.impl.MetaDataObject_impl#buildFromXMLElement(org.w3c.dom.Element, org.apache.uima.util.XMLParser, org.apache.uima.util.XMLParser.ParsingOptions)
+   */
+  public void buildFromXMLElement (Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions)
+  throws InvalidXMLException
+  {
+    String val;
+
+    // Check for "key" attribute
+    NamedNodeMap map = aElement.getAttributes();
+    if (map != null) {
+      for (int i=0; i<map.getLength(); ++i) {
+        Node item = map.item(i);
+        String name = item.getNodeName();
+        val = item.getNodeValue();
+        if (val == null) {
+          val = "";
+        } else {
+          val = val.trim();
+        }
+        if (AEDeploymentConstants.TAG_ATTR_KEY.equalsIgnoreCase(name)) {
+          // Set "key = ..." attribute
+          setKey(val);
+        } else {
+          throw new InvalidXMLException(InvalidXMLException.UNKNOWN_ELEMENT,
+                  new Object[]{name});
+        }
+      }
+    }
+
+    NodeList childNodes = aElement.getChildNodes();
+    for (int i = 0; i < childNodes.getLength(); i++) {
+      Node curNode = childNodes.item(i);
+      if (curNode instanceof Element) {
+        Element elem = (Element)curNode;
+
+        if (TAG_INPUT_QUEUE.equalsIgnoreCase(elem.getTagName())) {
+          // inputQueue.setEndPoint(elem.getAttribute(TAG_ATTR_END_POINT));
+          // inputQueue.setBrokerURL(elem.getAttribute(TAG_ATTR_BROKER_URL));
+          checkAndSetInputQueueAttributes(elem);
+
+        } else if (AEDeploymentConstants.TAG_CAS_MULTIPLIER.equalsIgnoreCase(elem.getTagName())) {
+          // Get "poolSize" attribute
+          int n;
+          val = DDParserUtil.checkAndGetAttributeValue(TAG_CAS_MULTIPLIER, TAG_ATTR_POOL_SIZE, elem);
+          if (val == null || val.trim().length() == 0) {
+            n = 0;
+          } else {
+            try {
+              n = Integer.parseInt(val);
+            } catch (NumberFormatException e) {
+              e.printStackTrace();
+              throw new InvalidXMLException(InvalidXMLException.UNKNOWN_ELEMENT,
+                      new Object[] { TAG_ATTR_POOL_SIZE }, e);
+            }
+          }
+          setCasMultiplierPoolSize(n);
+
+        } else if (TAG_REPLY_QUEUE.equalsIgnoreCase(elem.getTagName())) {
+          // setReplyQueueLocation(elem.getAttribute(TAG_ATTR_LOCATION));
+          setReplyQueueLocation(DDParserUtil.checkAndGetAttributeValue(TAG_REPLY_QUEUE, TAG_ATTR_LOCATION, elem));
+
+        } else if (TAG_SERIALIZER.equalsIgnoreCase(elem.getTagName())) {
+          // setSerializerMethod(elem.getAttribute(TAG_ATTR_METHOD));
+          setSerializerMethod(DDParserUtil.checkAndGetAttributeValue(TAG_SERIALIZER, TAG_ATTR_METHOD, elem));
+
+        } else if (TAG_ASYNC_AGGREGATE_ERROR_CONFIGURATION.equalsIgnoreCase(elem.getTagName())) {
+          errorConfiguration = (AsyncAggregateErrorConfiguration) aParser.buildObject(elem, aOptions); 
+          errorConfiguration.sParentObject(this);
+
+        } else {
+          throw new InvalidXMLException(
+                  InvalidXMLException.UNKNOWN_ELEMENT,
+                  new Object[]{elem.getTagName()});
+        }
+      }
+    } // for
+    
+    // Create Error Config if not specified
+    if (errorConfiguration == null) {
+      errorConfiguration = (AsyncAEErrorConfiguration) UIMAFramework
+                        .getResourceSpecifierFactory().createObject(AsyncAggregateErrorConfiguration.class);
+      setErrorConfiguration(errorConfiguration);
+      errorConfiguration.sParentObject(this);
+    }
+
+    
+  }
+
+  /**
+   * Check and set the attributes of Input Queue
+   * 
+   * @param aElement
+   * @throws InvalidXMLException
+   * @return void
+   */
+  protected void checkAndSetInputQueueAttributes (Element aElement) throws InvalidXMLException {
+    // Check for "key" and "async" attributes
+    NamedNodeMap map = aElement.getAttributes();
+    if (map != null) {
+      for (int i=0; i<map.getLength(); ++i) {
+        Node item = map.item(i);
+        String name = item.getNodeName();
+        String val = item.getNodeValue();
+        if (val == null) {
+          val = "";
+        } else {
+          val = val.trim();
+        }
+        if (AEDeploymentConstants.TAG_ATTR_END_POINT.equalsIgnoreCase(name)) {
+          // set "endpoint = ..." attribute
+          inputQueue.setEndPoint(val);
+
+        } else if (AEDeploymentConstants.TAG_ATTR_BROKER_URL.equalsIgnoreCase(name)) {
+          // set "brokerURL =" attribute
+          inputQueue.setBrokerURL(val);
+
+        } else {
+          throw new InvalidXMLException(InvalidXMLException.UNKNOWN_ELEMENT,
+                  new Object[]{name});
+        }
+      }
+    }
+
+    // Check for missing attributes
+    if (inputQueue.getEndPoint() == null) {
+      throw new InvalidXMLException(InvalidXMLException.ELEMENT_NOT_FOUND,
+              new Object[]{AEDeploymentConstants.TAG_ATTR_END_POINT, AEDeploymentConstants.TAG_INPUT_QUEUE});
+    }
+    if (inputQueue.getBrokerURL() == null) {
+      throw new InvalidXMLException(InvalidXMLException.ELEMENT_NOT_FOUND,
+              new Object[]{AEDeploymentConstants.TAG_ATTR_BROKER_URL, AEDeploymentConstants.TAG_INPUT_QUEUE});
+    }    
+  }
+
+  public void toXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute)
+                    throws SAXException
+  {
+    // <TAG_REMOTE_DELEGATE key=   >
+    AttributesImpl attrs = new AttributesImpl();
+    if (getKey() != null && getKey().trim().length() > 0) {
+      attrs.addAttribute("", TAG_ATTR_KEY, AEDeploymentConstants.TAG_ATTR_KEY, null, getKey());
+    }
+    aContentHandler.startElement("", TAG_REMOTE_DELEGATE, 
+            TAG_REMOTE_DELEGATE, attrs);
+    attrs.clear();
+
+    // <casMultiplier poolSize="5"/> <!-- req | omit-->
+    if (AEDeploymentDescription_Impl.isCASMultiplier(getResourceSpecifier())) {
+      if (getCasMultiplierPoolSize() != UNDEFINED_INT) {
+        attrs.addAttribute("", TAG_ATTR_POOL_SIZE, TAG_ATTR_POOL_SIZE,
+                null, "" + getCasMultiplierPoolSize());
+        aContentHandler.startElement("", TAG_CAS_MULTIPLIER, TAG_CAS_MULTIPLIER, attrs);
+        aContentHandler.endElement("", "", TAG_CAS_MULTIPLIER);
+        attrs.clear();        
+      }
+    }
+
+    // <inputQueue ... />
+    if (inputQueue != null) {
+      attrs.addAttribute("", TAG_ATTR_BROKER_URL, TAG_ATTR_BROKER_URL,
+              null, inputQueue.getBrokerURL());
+      attrs.addAttribute("", TAG_ATTR_END_POINT, TAG_ATTR_END_POINT,
+              null, inputQueue.getEndPoint());
+      aContentHandler.startElement("",
+              TAG_INPUT_QUEUE, TAG_INPUT_QUEUE, attrs);
+      aContentHandler.endElement("", "", TAG_INPUT_QUEUE);
+      attrs.clear();
+    }
+
+    // <replyQueue location="[local|remote]"/> <!-- optional -->
+    if (getReplyQueueLocation() != null) {
+      attrs.addAttribute("", TAG_ATTR_LOCATION, TAG_ATTR_LOCATION,
+              null, getReplyQueueLocation());
+      aContentHandler.startElement("",
+              TAG_REPLY_QUEUE, TAG_REPLY_QUEUE, attrs);
+      aContentHandler.endElement("", "", TAG_REPLY_QUEUE);
+      attrs.clear();
+    }
+
+    // <serializer method="xmi"/> <!-- optional -->
+    if (getSerializerMethod() != null) {
+      attrs.addAttribute("", TAG_ATTR_METHOD, TAG_ATTR_METHOD,
+              null, getSerializerMethod());
+      aContentHandler.startElement("",
+              TAG_SERIALIZER, TAG_SERIALIZER, attrs);
+      aContentHandler.endElement("", "", TAG_SERIALIZER);
+      attrs.clear();
+    }
+
+    // <asyncAggregateErrorConfiguration .../> <!-- optional -->
+    if (errorConfiguration != null) {
+      errorConfiguration.toXML(aContentHandler, aWriteDefaultNamespaceAttribute);
+    }
+
+    // </TAG_REMOTE_DELEGATE>
+    aContentHandler.endElement("", "", TAG_REMOTE_DELEGATE);
+  }
+
+  @Override
+  protected XmlizationInfo getXmlizationInfo() {
+    return new XmlizationInfo(null, null);
+  }
+
+  /*************************************************************************/
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getCasMultiplierPoolSize()
+   */
+  public int getCasMultiplierPoolSize() {
+    return casMultiplierPoolSize;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setCasMultiplierPoolSize(int)
+   */
+  public void setCasMultiplierPoolSize(int casMultiplierPoolSize) {
+    this.casMultiplierPoolSize = casMultiplierPoolSize;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getErrorConfiguration()
+   */
+  public AsyncAEErrorConfiguration getAsyncAEErrorConfiguration() {
+    return errorConfiguration;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setErrorConfiguration(com.ibm.uima.aae.deployment.impl.AsyncAggregateErrorConfiguration_Impl)
+   */
+  public void setErrorConfiguration(AsyncAEErrorConfiguration errorConfiguration) {
+    this.errorConfiguration = errorConfiguration;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getReplyQueueLocation()
+   */
+  public String getReplyQueueLocation() {
+    return replyQueueLocation;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setReplyQueueLocation(java.lang.String)
+   */
+  public void setReplyQueueLocation(String replyQueueLocation) {
+    this.replyQueueLocation = replyQueueLocation;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#getSerializerMethod()
+   */
+  public String getSerializerMethod() {
+    return serializerMethod;
+  }
+
+  /* (non-Javadoc)
+   * @see com.ibm.uima.aae.deployment.impl.RemoteAEDeploymentMetaData#setSerializerMethod(java.lang.String)
+   */
+  public void setSerializerMethod(String serializerMethod) {
+    this.serializerMethod = serializerMethod;
+  }
+
+  /**
+   * @return the inputQueue
+   */
+  public InputQueue getInputQueue() {
+    return inputQueue;
+  }
+
+  /**
+   * @param inputQueue the inputQueue to set
+   */
+  public void setInputQueue(InputQueue inputQueue) {
+    this.inputQueue = inputQueue;
+  }
+
+  /**
+   * @return the importedAE
+   */
+  public Import getImportedAE() {
+    return importedAE;
+  }
+
+  /**
+   * @param importedAE the importedAE to set
+   */
+  public void setImportedAE(Import importedAE) {
+    this.importedAE = importedAE;
+  }
+
+
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/aae/deployment/impl/RemoteAEDeploymentMetaData_Impl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamOverrides.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamOverrides.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamOverrides.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamOverrides.java Tue Jan  8 08:38:45 2008
@@ -1,39 +1,39 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Jan 17, 2006, 4:25:16 PM
- * source:  ConfigParamSettingsSets.java
- */
-package org.apache.uima.application.metadata;
-
-import org.apache.uima.resource.metadata.MetaDataObject;
-
-
-/**
-                <!-- Overrides for UIMA Configuration Parameters -->
-                <configParamOverrides>
-                
-                    <overrideSet name="set# 1"  default >
-                        <description>
-                           Describe about this override set
-                        </description>                      
-                        <configurationParameterSettings> <!-- Same syntax as UIMA -->
-                        </configurationParameterSettings>                   
-                    </overrideSet>
-                    
-                    <overrideSet name="set# 2" >
-                    </overrideSet>
-                    
-                </configParamOverrides>             
-
- * 
- */
-public interface ConfigParamOverrides extends MetaDataObject {
-
-    public OverrideSet[] getOverrideSets();
-    
-    public void setOverrideSets(OverrideSet[] aParams);
-    
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Jan 17, 2006, 4:25:16 PM
+ * source:  ConfigParamSettingsSets.java
+ */
+package org.apache.uima.application.metadata;
+
+import org.apache.uima.resource.metadata.MetaDataObject;
+
+
+/**
+                <!-- Overrides for UIMA Configuration Parameters -->
+                <configParamOverrides>
+                
+                    <overrideSet name="set# 1"  default >
+                        <description>
+                           Describe about this override set
+                        </description>                      
+                        <configurationParameterSettings> <!-- Same syntax as UIMA -->
+                        </configurationParameterSettings>                   
+                    </overrideSet>
+                    
+                    <overrideSet name="set# 2" >
+                    </overrideSet>
+                    
+                </configParamOverrides>             
+
+ * 
+ */
+public interface ConfigParamOverrides extends MetaDataObject {
+
+    public OverrideSet[] getOverrideSets();
+    
+    public void setOverrideSets(OverrideSet[] aParams);
+    
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamOverrides.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettings.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettings.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettings.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettings.java Tue Jan  8 08:38:45 2008
@@ -1,20 +1,20 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Jan 17, 2006, 4:27:26 PM
- * source:  ConfigParamSettings.java
- */
-package org.apache.uima.application.metadata;
-
-import org.apache.uima.resource.metadata.MetaDataObject;
-
-
-/**
- * 
- *
- */
-public interface ConfigParamSettings extends MetaDataObject {
-
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Jan 17, 2006, 4:27:26 PM
+ * source:  ConfigParamSettings.java
+ */
+package org.apache.uima.application.metadata;
+
+import org.apache.uima.resource.metadata.MetaDataObject;
+
+
+/**
+ * 
+ *
+ */
+public interface ConfigParamSettings extends MetaDataObject {
+
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettings.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettingsSets_1.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettingsSets_1.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettingsSets_1.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettingsSets_1.java Tue Jan  8 08:38:45 2008
@@ -1,251 +1,251 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 IBM Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.opensource.org/licenses/cpl1.0.php
- *
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.apache.uima.application.metadata;
-
-import org.apache.uima.UIMA_UnsupportedOperationException;
-import org.apache.uima.resource.metadata.ConfigurationGroup;
-import org.apache.uima.resource.metadata.ConfigurationParameter;
-import org.apache.uima.resource.metadata.MetaDataObject;
-
-
-/**
- * The declarations of configuration parameters in a Resource.  A
- * Resource can either declare a single list of {@link ConfigurationParameter}s 
- * or a list of {@link ConfigurationGroup}s, where each group can contain a 
- * list of parameters.  When groups are used, the Resource can also declare a 
- * list of {@link #getCommonParameters() common parameters} shared by all 
- * groups.
- * 
- * 
- */
-public interface ConfigParamSettingsSets_1 extends MetaDataObject
-{
-  
-  /**
-   * Gets the configuration parameters for this Resource.  This gets configuration
-   * parameters that are not defined within a group - see also
-   * {@link #getConfigurationGroups()}.
-   * 
-   * @return an array containing {@link ConfigurationParameter} objects,
-   *    each of which describes a configuration parameter for this Resource.
-   */
-  public ConfigurationParameter[] getConfigParamSettingsSets();
-  
-
-  /**
-   * Sets the configuration parameters for this Resource.  This sets the
-   * configuration parameters that are not defined within groups - see also
-   * {@link #setConfigurationGroups(ConfigurationGroup[])}.
-   * 
-   * @param aParams an array containing {@link ConfigurationParameter} objects,
-   *   each of which describes a configuration parameter for this Resource.
-   * 
-   * @throws org.apache.uima.UIMA_UnsupportedOperationException if this object is not modifiable
-   */
-  public void setConfigurationParameters(ConfigurationParameter[] aParams);
-  
-
-	/**
-	 * Adds a Configuration Parameter that is not in any group.
-	 * 
-	 * @param aConfigurationParameter the Configuration Parameter to add
-	 *
-	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
-	 */
-	public void addConfigurationParameter(ConfigurationParameter aConfigurationParameter);
-
-	
-	/**
-	 * Removes an Configuration Parameter that is not in any group.
-	 * 
-	 * @param aConfigurationParameter the Configuration Parameter to remove
-	 *   (must be == with an ConfigurationParameter in this collection,
-	 *    or this method will do nothing).
-	 *
-	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
-	 */
-	public void removeConfigurationParameter(ConfigurationParameter aConfigurationParameter);
-
-  /**
-   * Gets the configuration parameter groups for this Resource.  
-   * 
-   * @return an array containing {@link ConfigurationGroup} objects,
-   *    each of which describes a configuration parameter group for this 
-   *    Resource.
-   */
-  public ConfigurationGroup[] getConfigurationGroups();
-  
-
-  /**
-   * Sets the configuration parameter groups for this Resource.
-   * 
-   * @param aGroups an array containing {@link ConfigurationGroup} objects,
-   *   each of which describes a configuration parameter group for this 
-   *   Resource.
-   * 
-   * @throws org.apache.uima.UIMA_UnsupportedOperationException if this object is not modifiable
-   */
-  public void setConfigurationGroups(ConfigurationGroup[] aGroups);
-
-
-	/**
-	 * Adds a Configuration Group.
-	 * 
-	 * @param aConfigurationGroup the Configuration Group to add
-	 *
-	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
-	 */
-	public void addConfigurationGroup(ConfigurationGroup aConfigurationGroup);
-
-	
-	/**
-	 * Removes an Configuration Group
-	 * 
-	 * @param aConfigurationGroup the Configuration Group to remove
-	 *   (must be == with an ConfigurationGroup defined on this resource,
-	 *    or this method will do nothing).
-	 *
-	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
-	 */
-	public void removeConfigurationGroup(ConfigurationGroup aConfigurationGroup);
-
-	
-	/**
-   * Gets the configuration parameters that are common to all groups.  This
-   * property is only meaninful if at least one group is defined.
-   * 
-   * @return an array containing {@link ConfigurationParameter} objects,
-   *    each of which describes a parameter common to all groups.
-   */
-  public ConfigurationParameter[] getCommonParameters();
-  
-
-  /**
-   * Sets the configuration parameters that are common to all groups.  This
-   * property is only meaninful if at least one group is defined.
-   * 
-   * @param aParams an array containing {@link ConfigurationParameter} objects,
-   *    each of which describes a parameter common to all groups.
-   */
-  public void setCommonParameters(ConfigurationParameter[] aParams);
-
-	
-	/**
-	 * Adds a Configuration Parameter that is common to all groups.
-	 * 
-	 * @param aConfigurationParameter the Configuration Parameter to add
-	 *
-	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
-	 */
-	public void addCommonParameter(ConfigurationParameter aConfigurationParameter);
-
-	
-	/**
-	 * Removes an Configuration Parameter that is common to all groups.
-	 * 
-	 * @param aConfigurationParameter the Configuration Parameter to remove
-	 *   (must be == with an ConfigurationParameter in this collection,
-	 *    or this method will do nothing).
-	 *
-	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
-	 */
-	public void removeCommonParameter(ConfigurationParameter aConfigurationParameter);
-
-	/**
-   * Gets the name of the default configuration group.  This must refer to the 
-   * names of the {@link #getConfigurationGroups() configuration groups}.
-   * 
-   * @return the name of the default configuration group
-   */
-  public String getDefaultGroupName();
-  
-
-  /**
-   * Sets the name of the default configuration group.  This must refer to the 
-   * names of the {@link #getConfigurationGroups() configuration groups}.
-   * 
-   * @param aGroupName the name of the default configuration group
-   */
-  public void setDefaultGroupName(String aGroupName);
-
-
-  /**
-   * Gets the configuration parameter search strategy.  Valid values for this
-   * property are defined by constants on this interface.
-   * 
-   * @return the configuration parameter search strategy
-   */
-  public String getSearchStrategy();
-  
-
-  /**
-   * Sets the configuration parameter search strategy.  Valid values for this
-   * property are defined by constants on this interface.
-   * 
-   * @param aStrategy the configuration parameter search strategy
-   */
-  public void setSearchStrategy(String aStrategy);
-
-
-  /**
-   * Gets a configuration parameter.
-   * 
-   * @param aGroupName the name of a group, or <code>null</code> for no group
-   * @param aParamName the name of the parameter
-   * 
-   * @return the specified parameter, <code>null</code> if it does not exist
-   */
-  public ConfigurationParameter getConfigurationParameter(String aGroupName,
-    String aParamName);
-
-
-  /**
-   * Gets the declarations of a named configuration group.  There may be more
-   * than one declaration for a single group name; in this case, all parameters
-   * contained in each of these declarations are considered part of the named
-   * group.
-   * 
-   * @param aGroupName the name of a group
-   * 
-   * @return an array of ConfigurationGroup declarations having 
-   *   the name <code>aGroupName</code>.  If there are no such groups,
-   *   an empty array is returned.
-   */
-  public ConfigurationGroup[] getConfigurationGroupDeclarations(String aGroupName);
-  
-
-  /**
-   * A value for the <code>searchStrategy</code> property indicating that there
-   * is no fallback.  If a request is made for the value of a parameter in a 
-   * group and there is no such value in that exact group, <code>null</code> 
-   * will be returned.
-   */
-  public static final String SEARCH_STRATEGY_NONE = "none";  
-
-  /**
-   * A value for the <code>searchStrategy</code> property indicating that if
-   * there is no value declared in a group, look in the 
-   * {@link #getDefaultGroupName() default group}.
-   */
-  public static final String SEARCH_STRATEGY_DEFAULT_FALLBACK = "default_fallback";  
-
-  /**
-   * A value for the <code>searchStrategy</code> property that is useful when
-   * ISO language and country codes are used as configuration group names.
-   * If there is no value declared in a group, look in more general groups.
-   * The fallback seqauence is <code>lang-country-region -> lang-country -> 
-   * lang -> default</code>.  For example, if a request is made for the value
-   * of a parameter in the "en-GB" group and no such group exists, the value
-   * from the "en" group will be used instead.
-   */
-  public static final String SEARCH_STRATEGY_LANGUAGE_FALLBACK = "language_fallback";  
-
-}
+/*******************************************************************************
+ * Copyright (c) 2003, 2005 IBM Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.opensource.org/licenses/cpl1.0.php
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.apache.uima.application.metadata;
+
+import org.apache.uima.UIMA_UnsupportedOperationException;
+import org.apache.uima.resource.metadata.ConfigurationGroup;
+import org.apache.uima.resource.metadata.ConfigurationParameter;
+import org.apache.uima.resource.metadata.MetaDataObject;
+
+
+/**
+ * The declarations of configuration parameters in a Resource.  A
+ * Resource can either declare a single list of {@link ConfigurationParameter}s 
+ * or a list of {@link ConfigurationGroup}s, where each group can contain a 
+ * list of parameters.  When groups are used, the Resource can also declare a 
+ * list of {@link #getCommonParameters() common parameters} shared by all 
+ * groups.
+ * 
+ * 
+ */
+public interface ConfigParamSettingsSets_1 extends MetaDataObject
+{
+  
+  /**
+   * Gets the configuration parameters for this Resource.  This gets configuration
+   * parameters that are not defined within a group - see also
+   * {@link #getConfigurationGroups()}.
+   * 
+   * @return an array containing {@link ConfigurationParameter} objects,
+   *    each of which describes a configuration parameter for this Resource.
+   */
+  public ConfigurationParameter[] getConfigParamSettingsSets();
+  
+
+  /**
+   * Sets the configuration parameters for this Resource.  This sets the
+   * configuration parameters that are not defined within groups - see also
+   * {@link #setConfigurationGroups(ConfigurationGroup[])}.
+   * 
+   * @param aParams an array containing {@link ConfigurationParameter} objects,
+   *   each of which describes a configuration parameter for this Resource.
+   * 
+   * @throws org.apache.uima.UIMA_UnsupportedOperationException if this object is not modifiable
+   */
+  public void setConfigurationParameters(ConfigurationParameter[] aParams);
+  
+
+	/**
+	 * Adds a Configuration Parameter that is not in any group.
+	 * 
+	 * @param aConfigurationParameter the Configuration Parameter to add
+	 *
+	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
+	 */
+	public void addConfigurationParameter(ConfigurationParameter aConfigurationParameter);
+
+	
+	/**
+	 * Removes an Configuration Parameter that is not in any group.
+	 * 
+	 * @param aConfigurationParameter the Configuration Parameter to remove
+	 *   (must be == with an ConfigurationParameter in this collection,
+	 *    or this method will do nothing).
+	 *
+	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
+	 */
+	public void removeConfigurationParameter(ConfigurationParameter aConfigurationParameter);
+
+  /**
+   * Gets the configuration parameter groups for this Resource.  
+   * 
+   * @return an array containing {@link ConfigurationGroup} objects,
+   *    each of which describes a configuration parameter group for this 
+   *    Resource.
+   */
+  public ConfigurationGroup[] getConfigurationGroups();
+  
+
+  /**
+   * Sets the configuration parameter groups for this Resource.
+   * 
+   * @param aGroups an array containing {@link ConfigurationGroup} objects,
+   *   each of which describes a configuration parameter group for this 
+   *   Resource.
+   * 
+   * @throws org.apache.uima.UIMA_UnsupportedOperationException if this object is not modifiable
+   */
+  public void setConfigurationGroups(ConfigurationGroup[] aGroups);
+
+
+	/**
+	 * Adds a Configuration Group.
+	 * 
+	 * @param aConfigurationGroup the Configuration Group to add
+	 *
+	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
+	 */
+	public void addConfigurationGroup(ConfigurationGroup aConfigurationGroup);
+
+	
+	/**
+	 * Removes an Configuration Group
+	 * 
+	 * @param aConfigurationGroup the Configuration Group to remove
+	 *   (must be == with an ConfigurationGroup defined on this resource,
+	 *    or this method will do nothing).
+	 *
+	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
+	 */
+	public void removeConfigurationGroup(ConfigurationGroup aConfigurationGroup);
+
+	
+	/**
+   * Gets the configuration parameters that are common to all groups.  This
+   * property is only meaninful if at least one group is defined.
+   * 
+   * @return an array containing {@link ConfigurationParameter} objects,
+   *    each of which describes a parameter common to all groups.
+   */
+  public ConfigurationParameter[] getCommonParameters();
+  
+
+  /**
+   * Sets the configuration parameters that are common to all groups.  This
+   * property is only meaninful if at least one group is defined.
+   * 
+   * @param aParams an array containing {@link ConfigurationParameter} objects,
+   *    each of which describes a parameter common to all groups.
+   */
+  public void setCommonParameters(ConfigurationParameter[] aParams);
+
+	
+	/**
+	 * Adds a Configuration Parameter that is common to all groups.
+	 * 
+	 * @param aConfigurationParameter the Configuration Parameter to add
+	 *
+	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
+	 */
+	public void addCommonParameter(ConfigurationParameter aConfigurationParameter);
+
+	
+	/**
+	 * Removes an Configuration Parameter that is common to all groups.
+	 * 
+	 * @param aConfigurationParameter the Configuration Parameter to remove
+	 *   (must be == with an ConfigurationParameter in this collection,
+	 *    or this method will do nothing).
+	 *
+	 * @throws UIMA_UnsupportedOperationException if this object is not modifiable
+	 */
+	public void removeCommonParameter(ConfigurationParameter aConfigurationParameter);
+
+	/**
+   * Gets the name of the default configuration group.  This must refer to the 
+   * names of the {@link #getConfigurationGroups() configuration groups}.
+   * 
+   * @return the name of the default configuration group
+   */
+  public String getDefaultGroupName();
+  
+
+  /**
+   * Sets the name of the default configuration group.  This must refer to the 
+   * names of the {@link #getConfigurationGroups() configuration groups}.
+   * 
+   * @param aGroupName the name of the default configuration group
+   */
+  public void setDefaultGroupName(String aGroupName);
+
+
+  /**
+   * Gets the configuration parameter search strategy.  Valid values for this
+   * property are defined by constants on this interface.
+   * 
+   * @return the configuration parameter search strategy
+   */
+  public String getSearchStrategy();
+  
+
+  /**
+   * Sets the configuration parameter search strategy.  Valid values for this
+   * property are defined by constants on this interface.
+   * 
+   * @param aStrategy the configuration parameter search strategy
+   */
+  public void setSearchStrategy(String aStrategy);
+
+
+  /**
+   * Gets a configuration parameter.
+   * 
+   * @param aGroupName the name of a group, or <code>null</code> for no group
+   * @param aParamName the name of the parameter
+   * 
+   * @return the specified parameter, <code>null</code> if it does not exist
+   */
+  public ConfigurationParameter getConfigurationParameter(String aGroupName,
+    String aParamName);
+
+
+  /**
+   * Gets the declarations of a named configuration group.  There may be more
+   * than one declaration for a single group name; in this case, all parameters
+   * contained in each of these declarations are considered part of the named
+   * group.
+   * 
+   * @param aGroupName the name of a group
+   * 
+   * @return an array of ConfigurationGroup declarations having 
+   *   the name <code>aGroupName</code>.  If there are no such groups,
+   *   an empty array is returned.
+   */
+  public ConfigurationGroup[] getConfigurationGroupDeclarations(String aGroupName);
+  
+
+  /**
+   * A value for the <code>searchStrategy</code> property indicating that there
+   * is no fallback.  If a request is made for the value of a parameter in a 
+   * group and there is no such value in that exact group, <code>null</code> 
+   * will be returned.
+   */
+  public static final String SEARCH_STRATEGY_NONE = "none";  
+
+  /**
+   * A value for the <code>searchStrategy</code> property indicating that if
+   * there is no value declared in a group, look in the 
+   * {@link #getDefaultGroupName() default group}.
+   */
+  public static final String SEARCH_STRATEGY_DEFAULT_FALLBACK = "default_fallback";  
+
+  /**
+   * A value for the <code>searchStrategy</code> property that is useful when
+   * ISO language and country codes are used as configuration group names.
+   * If there is no value declared in a group, look in more general groups.
+   * The fallback seqauence is <code>lang-country-region -> lang-country -> 
+   * lang -> default</code>.  For example, if a request is made for the value
+   * of a parameter in the "en-GB" group and no such group exists, the value
+   * from the "en" group will be used instead.
+   */
+  public static final String SEARCH_STRATEGY_LANGUAGE_FALLBACK = "language_fallback";  
+
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/ConfigParamSettingsSets_1.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/DeploymentOverrides.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/DeploymentOverrides.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/DeploymentOverrides.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/DeploymentOverrides.java Tue Jan  8 08:38:45 2008
@@ -1,23 +1,23 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Jan 21, 2006, 12:24:13 PM
- * source:  DeploymentOverrides.java
- */
-package org.apache.uima.application.metadata;
-
-import org.apache.uima.resource.metadata.MetaDataObject;
-
-
-/**
- * 
- *
- */
-public interface DeploymentOverrides extends MetaDataObject {
-
-    public ConfigParamOverrides getConfigParamOverrides ();
-    public void setConfigParamOverrides (ConfigParamOverrides aParam);
-    
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Jan 21, 2006, 12:24:13 PM
+ * source:  DeploymentOverrides.java
+ */
+package org.apache.uima.application.metadata;
+
+import org.apache.uima.resource.metadata.MetaDataObject;
+
+
+/**
+ * 
+ *
+ */
+public interface DeploymentOverrides extends MetaDataObject {
+
+    public ConfigParamOverrides getConfigParamOverrides ();
+    public void setConfigParamOverrides (ConfigParamOverrides aParam);
+    
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/DeploymentOverrides.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IRuntimeContext.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IRuntimeContext.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IRuntimeContext.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IRuntimeContext.java Tue Jan  8 08:38:45 2008
@@ -1,27 +1,27 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Jul 8, 2006, 10:56:39 AM
- * source:  IRuntimeContext.java
- */
-package org.apache.uima.application.metadata;
-
-/**
- *  Runtime context for UIMA application which includes:
- *      - classpath of the project
- *      - datapath
- */
-public interface IRuntimeContext {
-
-    public String   getProjectClasspath();
-    public void     setProjectClasspath(String projectClasspath);
-    
-    public String   getProjectDatapath();
-    public void     setProjectDatapath(String projectDatapath);
-    
-    public String   getProjectName();
-    public void     setProjectName(String projectName);
-    
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Jul 8, 2006, 10:56:39 AM
+ * source:  IRuntimeContext.java
+ */
+package org.apache.uima.application.metadata;
+
+/**
+ *  Runtime context for UIMA application which includes:
+ *      - classpath of the project
+ *      - datapath
+ */
+public interface IRuntimeContext {
+
+    public String   getProjectClasspath();
+    public void     setProjectClasspath(String projectClasspath);
+    
+    public String   getProjectDatapath();
+    public void     setProjectDatapath(String projectDatapath);
+    
+    public String   getProjectName();
+    public void     setProjectName(String projectName);
+    
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IRuntimeContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IStringSubstitution.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IStringSubstitution.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IStringSubstitution.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IStringSubstitution.java Tue Jan  8 08:38:45 2008
@@ -1,17 +1,17 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Feb 2, 2006, 9:14:35 PM
- * source:  IStringSubstitution.java
- */
-package org.apache.uima.application.metadata;
-
-/**
- * 
- *
- */
-public interface IStringSubstitution {
-    public String resolveUimaXmlDescriptor (String xmlDescriptor);
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Feb 2, 2006, 9:14:35 PM
+ * source:  IStringSubstitution.java
+ */
+package org.apache.uima.application.metadata;
+
+/**
+ * 
+ *
+ */
+public interface IStringSubstitution {
+    public String resolveUimaXmlDescriptor (String xmlDescriptor);
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/IStringSubstitution.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/OverrideSet.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/OverrideSet.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/OverrideSet.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/OverrideSet.java Tue Jan  8 08:38:45 2008
@@ -1,52 +1,52 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Jan 17, 2006, 4:25:16 PM
- * source:  ConfigParamSettingsSets.java
- */
-package org.apache.uima.application.metadata;
-
-import org.apache.uima.cpe.model.ConfigParametersModel;
-import org.apache.uima.resource.metadata.ConfigurationParameterSettings;
-import org.apache.uima.resource.metadata.MetaDataObject;
-
-
-/**
- * 
-                    <overrideSet name="set# 1"  default >
-                        <description>
-                           Describe about this override set
-                        </description>                      
-                        <configurationParameterSettings> <!-- Same syntax as UIMA -->
-                        </configurationParameterSettings>                   
-                    </overrideSet>
- *
- */
-public interface OverrideSet extends MetaDataObject {
-
-    public String getName ();
-    public void setName (String name);
-    
-    public String getDescription();
-    public void setDescription(String description);
-    
-    public boolean isSelected ();
-    public void    setSelected (boolean selected);  
-    
-    public ConfigParametersModel getConfigParametersModel ();
-    
-    public void setConfigParametersModel (ConfigParametersModel aParam);
-    
-    /**
-     * Get a configuration parameter settings.
-     * 
-     * @return ConfigurationParameterSettings
-     */
-    public ConfigurationParameterSettings getConfigurationParameterSettings();
-    
-    public void setConfigurationParameterSettings(ConfigurationParameterSettings aParam);
-
-    public void printMe();
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Jan 17, 2006, 4:25:16 PM
+ * source:  ConfigParamSettingsSets.java
+ */
+package org.apache.uima.application.metadata;
+
+import org.apache.uima.cpe.model.ConfigParametersModel;
+import org.apache.uima.resource.metadata.ConfigurationParameterSettings;
+import org.apache.uima.resource.metadata.MetaDataObject;
+
+
+/**
+ * 
+                    <overrideSet name="set# 1"  default >
+                        <description>
+                           Describe about this override set
+                        </description>                      
+                        <configurationParameterSettings> <!-- Same syntax as UIMA -->
+                        </configurationParameterSettings>                   
+                    </overrideSet>
+ *
+ */
+public interface OverrideSet extends MetaDataObject {
+
+    public String getName ();
+    public void setName (String name);
+    
+    public String getDescription();
+    public void setDescription(String description);
+    
+    public boolean isSelected ();
+    public void    setSelected (boolean selected);  
+    
+    public ConfigParametersModel getConfigParametersModel ();
+    
+    public void setConfigParametersModel (ConfigParametersModel aParam);
+    
+    /**
+     * Get a configuration parameter settings.
+     * 
+     * @return ConfigurationParameterSettings
+     */
+    public ConfigurationParameterSettings getConfigurationParameterSettings();
+    
+    public void setConfigurationParameterSettings(ConfigurationParameterSettings aParam);
+
+    public void printMe();
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/OverrideSet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/UimaApplication.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/UimaApplication.java?rev=610062&r1=610061&r2=610062&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/UimaApplication.java (original)
+++ incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/UimaApplication.java Tue Jan  8 08:38:45 2008
@@ -1,239 +1,239 @@
-/**
- * 
- * Project UIMA Tooling
- * 
- * 
- * creation date: Jan 17, 2006, 4:22:53 PM
- * source:  UimaApplication.java
- */
-package org.apache.uima.application.metadata;
-
-import java.io.IOException;
-import java.util.List;
-
-import org.apache.uima.application.metadata.impl.AbstractUimaCasProcessor;
-import org.apache.uima.collection.metadata.CpeConfiguration;
-import org.apache.uima.collection.metadata.CpeDescription;
-import org.apache.uima.collection.metadata.CpeDescriptorException;
-import org.apache.uima.cpe.model.DefaultCasProcessorSettings;
-import org.apache.uima.cpe.model.UimaCollectionReader;
-import org.apache.uima.resource.ResourceInitializationException;
-import org.apache.uima.resource.ResourceManager;
-import org.apache.uima.resource.metadata.MetaDataObject;
-import org.apache.uima.resource.metadata.TypePriorities;
-import org.apache.uima.util.InvalidXMLException;
-import org.apache.uima.util.XMLizable;
-import org.xml.sax.SAXException;
-
-
-/**
-    Use " public XMLSerializer(boolean isFormattedOutput)" for formatting xml
-    public String prettyPrintModel (XMLizable trueDescriptor) {
-
-    UimaApplicationModel -> UimaApplication
-        List of CasProcSettingsOverride (casProcessorName) 
-          - getConfigParamSettingsSet(setName)
-         CasProcessorSettings
-         ConfigParamSettingsSets
-             ConfigParamSettingsSet[]
-                 ConfigParamSettingsSet (need a link to ConfigParametersModel)
-                     
-                     
-        CpeDescriptorModel -> CpeDescription
-         - UimaApplicationModel
-         List of CpeCasProcessorModel
-              - getConfigParametersModel ()
-             ConfigParametersModel
-                 List of ConfigParameterModel
-
-
-
-    <?xml version="1.0" encoding="UTF-8" ?>
-    <uimaApplication uima="1.3">
-        <!-- Link to legacy CPE descriptor -->
-        <cpeDescription href="..."   />
-        
-        <!-- Common Deployment Settings for ALL cas processors -->      
-        <casProcessorCommonSettings>
-            <casProcessors casPoolSize="3" processingUnitThreadCount="1"/> <!-- get from CPE Xml -->
-        </casProcessorCommonSettings>
-     
-        <deploymentDefaultSettings>
-          <errorHandling>
-              <errorRateThreshold action="terminate" count="100" sample_size="1000"/>
-              <maxConsecutiveRestarts action="terminate" value="30"/>
-              <timeout max="10000"/>
-          </errorHandling>
-          <checkpoint batch="10000" frequency="" />
-        </deploymentDefaultSettings>
-     
-        <!-- BEGIN Per CAS Processor -->
-        <uimaCasProcessor name="Meeting Detector TAE">
-        
-            <import location="xml_descriptor.xml" />
-           
-            <deploymentSettings>
-                <!-- get from CPE Xml -->
-            </deploymentSettings>
-         
-            <deploymentOverrides>
-                <!-- may have other overrides than Configuration Parameters -->
-            
-                <!-- Overrides for UIMA Configuration Parameters -->
-                <configParamOverrides>
-     
-                    <configParamOverrideSet name="setName 1" >
-                        <description>
-                            Description of ConfigParamSettingsSet
-                        </description>
-             
-                        <configurationParameterSettings> <!-- Same syntax as UIMA -->
-                          <nameValuePair>
-                            <name>Locations</name>
-                            <value>
-                              <array>
-                                <string>a</string>
-                                <string>b</string>
-                                <string>c</string>
-                                <string>d</string>
-                              </array>
-                            </value>
-                          </nameValuePair> 
-                        </configurationParameterSettings>
-             
-                    </configParamOverrideSet>
-         
-                    <configParamOverrideSet name="setName 2" >
-                    </configParamOverrideSet>
-         
-                </configParamOverrides>
-            </deploymentOverrides>
-        </uimaCasProcessor>
-        <!-- END Per CAS Processor -->
-     
-    </uimaApplication>
-
- */
-public interface UimaApplication extends MetaDataObject 
-{
-    final public static String TAG_COLLECTION_READER            = "uimaCollectionReader";
-    final public static String TAG_CAS_PROCESSOR                = "uimaCasProcessor";
-    final public static String TAG_NAME                         = "name";
-    final public static String TAG_DESCRIPTION                  = "description";
-    final public static String TAG_IMPORT                       = "import";
-    final public static String TAG_LOCATION                     = "location";
-    
-    final public static String TAG_DEPLOYMENT_DEFAULT_SETTINGS  = "deploymentDefaultSettings";
-    final public static String TAG_DEPLOYMENT_SETTINGS          = "deploymentSettings";
-    final public static String TAG_DEPLOYMENT_OVERRIDES         = "deploymentOverrides";
-
-    final public static String TAG_CONFIG_PARAM_OVERRIDES       = "configParamOverrides";
-    final public static String TAG_CONFIG_PARAM_OVERRIDE_SET    = "configParamOverrideSet";
-
-    static final public int STATUS_DEPLOYMENT_NODE_OK           = 0;
-    static final public int STATUS_DEPLOYMENT_NODE_WARNING      = 1;
-    static final public int STATUS_DEPLOYMENT_NODE_ERROR        = 2;
-    
-    static final public int STATUS_DETAILS_FILE_NOT_FOUND       = 1;
-
-    public IRuntimeContext getRuntimeContext();
-    public void setRuntimeContext(IRuntimeContext runtimeContext);
-    
-    /**
-     * Get UIMA CPE descriptor.
-     * 
-     * @return String
-     */
-    public String getCpeDescriptor ();
-    
-    /**
-     * Set UIMA CPE descriptor.
-     * 
-     * @param descriptor
-     * @return void
-     */
-    // public void setCpeDescriptor (String descriptor);
-    
-    // public CpeDescriptorModel  getCpeDescriptorModel ();
-    
-    /**
-     * Get all UIMA Collection Readers.
-     * 
-     * @return An arry of UimaCollectionReader
-     */
-    public List getUimaCollectionReaders();
-    public UimaCollectionReader getUimaCollectionReader ();
-    public UimaCollectionReader getUimaCollectionReader (String name);
-    
-    public List getUimaCasInitializers();
-    
-    /**
-     * Get all UIMA cas processors.
-     * 
-     * @return An arry of UimaCasProcessor
-     */
-    // public UimaCasProcessor[] getUimaCasProcessors();
-    public List getUimaCasProcessors();
-    public UimaCasProcessor getUimaCasProcessor (String name);
-    
-    // public void setUimaCasProcessors(UimaCasProcessor[] aParams);
-    
-    /**
-     *  Get UIMA cas processor by name.
-     * 
-     * @param casProcessorName
-     * @return UimaCasProcessor
-     */
-//    public UimaCasProcessor getUimaCasProcessor(String casProcessorName);
-    
-    public Object addXMLizable (String xmlizableXmlFile, XMLizable xmlizable) throws InvalidXMLException, ResourceInitializationException, CpeDescriptorException;
-    public void addCpeDescription (String cpeXml, CpeDescription cpeDescription)
-                    throws InvalidXMLException, ResourceInitializationException, 
-                           CpeDescriptorException;
-    // public void addCasProcessor (String cpeXml, CpeDescription cpeDescription) throws InvalidXMLException, ResourceInitializationException, CpeDescriptorException;
-    // public void addCasProcessorsFromCpeDescription (String cpeXml, CpeDescription cpeDescription) throws InvalidXMLException, ResourceInitializationException, CpeDescriptorException;
-    
-    public void removeAll ();
-    public boolean deleteUimaCasProcessor (AbstractUimaCasProcessor u);
-    public boolean moveUimaCasProcessor (AbstractUimaCasProcessor u, boolean moveUp);
-    
-    public String generateCpeXmlDescriptor (String xmlDescriptorFileName, boolean resolve)
-                    throws CpeDescriptorException, SAXException, IOException;
-    
-    public TypePriorities getMergedTypePriorities () 
-                throws InvalidXMLException, ResourceInitializationException;
-    
-    /**
-     * Check if AbstractUimaCasProcessor is movable
-     * 
-     * @param u
-     * @return int  0: non-movable; 0x01: up; 0x02: down; 0x003; both dir
-     */
-    public int isMovable (AbstractUimaCasProcessor u);
-    
-    public void setCurrentDirectory (String currDir);
-    
-    public ResourceManager getResourceManager ();
-    public void setResourceManager (ResourceManager rm);
-    
-    /**
-     * @return Returns the cpeConfiguration.
-     */
-    public CpeConfiguration getCpeConfiguration();
-    
-    /**
-     * @param cpeConfiguration The cpeConfiguration to set.
-     */
-    public void setCpeConfiguration(CpeConfiguration cpeConfiguration);
-    
-    /**
-     * @return Returns the defaultCasProcessorSettings.
-     */
-    public DefaultCasProcessorSettings getDefaultCasProcessorSettings();
-
-    /**
-     * @param defaultCasProcessorSettings The defaultCasProcessorSettings to set.
-     */
-    public void setDefaultCasProcessorSettings (DefaultCasProcessorSettings defaultCasProcessorSettings);
-    
-}
+/**
+ * 
+ * Project UIMA Tooling
+ * 
+ * 
+ * creation date: Jan 17, 2006, 4:22:53 PM
+ * source:  UimaApplication.java
+ */
+package org.apache.uima.application.metadata;
+
+import java.io.IOException;
+import java.util.List;
+
+import org.apache.uima.application.metadata.impl.AbstractUimaCasProcessor;
+import org.apache.uima.collection.metadata.CpeConfiguration;
+import org.apache.uima.collection.metadata.CpeDescription;
+import org.apache.uima.collection.metadata.CpeDescriptorException;
+import org.apache.uima.cpe.model.DefaultCasProcessorSettings;
+import org.apache.uima.cpe.model.UimaCollectionReader;
+import org.apache.uima.resource.ResourceInitializationException;
+import org.apache.uima.resource.ResourceManager;
+import org.apache.uima.resource.metadata.MetaDataObject;
+import org.apache.uima.resource.metadata.TypePriorities;
+import org.apache.uima.util.InvalidXMLException;
+import org.apache.uima.util.XMLizable;
+import org.xml.sax.SAXException;
+
+
+/**
+    Use " public XMLSerializer(boolean isFormattedOutput)" for formatting xml
+    public String prettyPrintModel (XMLizable trueDescriptor) {
+
+    UimaApplicationModel -> UimaApplication
+        List of CasProcSettingsOverride (casProcessorName) 
+          - getConfigParamSettingsSet(setName)
+         CasProcessorSettings
+         ConfigParamSettingsSets
+             ConfigParamSettingsSet[]
+                 ConfigParamSettingsSet (need a link to ConfigParametersModel)
+                     
+                     
+        CpeDescriptorModel -> CpeDescription
+         - UimaApplicationModel
+         List of CpeCasProcessorModel
+              - getConfigParametersModel ()
+             ConfigParametersModel
+                 List of ConfigParameterModel
+
+
+
+    <?xml version="1.0" encoding="UTF-8" ?>
+    <uimaApplication uima="1.3">
+        <!-- Link to legacy CPE descriptor -->
+        <cpeDescription href="..."   />
+        
+        <!-- Common Deployment Settings for ALL cas processors -->      
+        <casProcessorCommonSettings>
+            <casProcessors casPoolSize="3" processingUnitThreadCount="1"/> <!-- get from CPE Xml -->
+        </casProcessorCommonSettings>
+     
+        <deploymentDefaultSettings>
+          <errorHandling>
+              <errorRateThreshold action="terminate" count="100" sample_size="1000"/>
+              <maxConsecutiveRestarts action="terminate" value="30"/>
+              <timeout max="10000"/>
+          </errorHandling>
+          <checkpoint batch="10000" frequency="" />
+        </deploymentDefaultSettings>
+     
+        <!-- BEGIN Per CAS Processor -->
+        <uimaCasProcessor name="Meeting Detector TAE">
+        
+            <import location="xml_descriptor.xml" />
+           
+            <deploymentSettings>
+                <!-- get from CPE Xml -->
+            </deploymentSettings>
+         
+            <deploymentOverrides>
+                <!-- may have other overrides than Configuration Parameters -->
+            
+                <!-- Overrides for UIMA Configuration Parameters -->
+                <configParamOverrides>
+     
+                    <configParamOverrideSet name="setName 1" >
+                        <description>
+                            Description of ConfigParamSettingsSet
+                        </description>
+             
+                        <configurationParameterSettings> <!-- Same syntax as UIMA -->
+                          <nameValuePair>
+                            <name>Locations</name>
+                            <value>
+                              <array>
+                                <string>a</string>
+                                <string>b</string>
+                                <string>c</string>
+                                <string>d</string>
+                              </array>
+                            </value>
+                          </nameValuePair> 
+                        </configurationParameterSettings>
+             
+                    </configParamOverrideSet>
+         
+                    <configParamOverrideSet name="setName 2" >
+                    </configParamOverrideSet>
+         
+                </configParamOverrides>
+            </deploymentOverrides>
+        </uimaCasProcessor>
+        <!-- END Per CAS Processor -->
+     
+    </uimaApplication>
+
+ */
+public interface UimaApplication extends MetaDataObject 
+{
+    final public static String TAG_COLLECTION_READER            = "uimaCollectionReader";
+    final public static String TAG_CAS_PROCESSOR                = "uimaCasProcessor";
+    final public static String TAG_NAME                         = "name";
+    final public static String TAG_DESCRIPTION                  = "description";
+    final public static String TAG_IMPORT                       = "import";
+    final public static String TAG_LOCATION                     = "location";
+    
+    final public static String TAG_DEPLOYMENT_DEFAULT_SETTINGS  = "deploymentDefaultSettings";
+    final public static String TAG_DEPLOYMENT_SETTINGS          = "deploymentSettings";
+    final public static String TAG_DEPLOYMENT_OVERRIDES         = "deploymentOverrides";
+
+    final public static String TAG_CONFIG_PARAM_OVERRIDES       = "configParamOverrides";
+    final public static String TAG_CONFIG_PARAM_OVERRIDE_SET    = "configParamOverrideSet";
+
+    static final public int STATUS_DEPLOYMENT_NODE_OK           = 0;
+    static final public int STATUS_DEPLOYMENT_NODE_WARNING      = 1;
+    static final public int STATUS_DEPLOYMENT_NODE_ERROR        = 2;
+    
+    static final public int STATUS_DETAILS_FILE_NOT_FOUND       = 1;
+
+    public IRuntimeContext getRuntimeContext();
+    public void setRuntimeContext(IRuntimeContext runtimeContext);
+    
+    /**
+     * Get UIMA CPE descriptor.
+     * 
+     * @return String
+     */
+    public String getCpeDescriptor ();
+    
+    /**
+     * Set UIMA CPE descriptor.
+     * 
+     * @param descriptor
+     * @return void
+     */
+    // public void setCpeDescriptor (String descriptor);
+    
+    // public CpeDescriptorModel  getCpeDescriptorModel ();
+    
+    /**
+     * Get all UIMA Collection Readers.
+     * 
+     * @return An arry of UimaCollectionReader
+     */
+    public List getUimaCollectionReaders();
+    public UimaCollectionReader getUimaCollectionReader ();
+    public UimaCollectionReader getUimaCollectionReader (String name);
+    
+    public List getUimaCasInitializers();
+    
+    /**
+     * Get all UIMA cas processors.
+     * 
+     * @return An arry of UimaCasProcessor
+     */
+    // public UimaCasProcessor[] getUimaCasProcessors();
+    public List getUimaCasProcessors();
+    public UimaCasProcessor getUimaCasProcessor (String name);
+    
+    // public void setUimaCasProcessors(UimaCasProcessor[] aParams);
+    
+    /**
+     *  Get UIMA cas processor by name.
+     * 
+     * @param casProcessorName
+     * @return UimaCasProcessor
+     */
+//    public UimaCasProcessor getUimaCasProcessor(String casProcessorName);
+    
+    public Object addXMLizable (String xmlizableXmlFile, XMLizable xmlizable) throws InvalidXMLException, ResourceInitializationException, CpeDescriptorException;
+    public void addCpeDescription (String cpeXml, CpeDescription cpeDescription)
+                    throws InvalidXMLException, ResourceInitializationException, 
+                           CpeDescriptorException;
+    // public void addCasProcessor (String cpeXml, CpeDescription cpeDescription) throws InvalidXMLException, ResourceInitializationException, CpeDescriptorException;
+    // public void addCasProcessorsFromCpeDescription (String cpeXml, CpeDescription cpeDescription) throws InvalidXMLException, ResourceInitializationException, CpeDescriptorException;
+    
+    public void removeAll ();
+    public boolean deleteUimaCasProcessor (AbstractUimaCasProcessor u);
+    public boolean moveUimaCasProcessor (AbstractUimaCasProcessor u, boolean moveUp);
+    
+    public String generateCpeXmlDescriptor (String xmlDescriptorFileName, boolean resolve)
+                    throws CpeDescriptorException, SAXException, IOException;
+    
+    public TypePriorities getMergedTypePriorities () 
+                throws InvalidXMLException, ResourceInitializationException;
+    
+    /**
+     * Check if AbstractUimaCasProcessor is movable
+     * 
+     * @param u
+     * @return int  0: non-movable; 0x01: up; 0x02: down; 0x003; both dir
+     */
+    public int isMovable (AbstractUimaCasProcessor u);
+    
+    public void setCurrentDirectory (String currDir);
+    
+    public ResourceManager getResourceManager ();
+    public void setResourceManager (ResourceManager rm);
+    
+    /**
+     * @return Returns the cpeConfiguration.
+     */
+    public CpeConfiguration getCpeConfiguration();
+    
+    /**
+     * @param cpeConfiguration The cpeConfiguration to set.
+     */
+    public void setCpeConfiguration(CpeConfiguration cpeConfiguration);
+    
+    /**
+     * @return Returns the defaultCasProcessorSettings.
+     */
+    public DefaultCasProcessorSettings getDefaultCasProcessorSettings();
+
+    /**
+     * @param defaultCasProcessorSettings The defaultCasProcessorSettings to set.
+     */
+    public void setDefaultCasProcessorSettings (DefaultCasProcessorSettings defaultCasProcessorSettings);
+    
+}

Propchange: incubator/uima/sandbox/trunk/uima-ee/uimaj-ep-runtime-deployeditor/src/main/java/org/apache/uima/application/metadata/UimaApplication.java
------------------------------------------------------------------------------
    svn:eol-style = native