On Tue, Mar 31, 2009 at 10:19 PM, Duan, Nick <[email protected]> wrote: > In CPE component descriptors (AE, Collection Reader, and CASConsumer), one > can specify user-defined parameters in the <ConfigurationParameters/> and > <ConfigurationParameterSettings/> elements. Are there similar tags in CPE > descriptor?
Yes, there's a <configurationParameterSettings> tag that you can use in the CPE descriptor to set parameter values for each of the CPE components. Documentation is here (see section 3.6.1.2): http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.cpe_descriptor.descriptor.cas_processors.individual >What would be the API for retrieving the parameter values? I am trying to define some run-time parameters for the CPE. It would be convenient to have the parameters in the CPE descriptor. Otherwise, I would have to define them in a property file, and that means more code to maintain and more configurations for the end user... > I forget the exact API, but look at the Javadocs for CpeDescription. The API structure should more or less be parallel with the XML format. -Adam
