Is it possible to create ResourceSpecifier objects without an XML
descriptor file? Currently I'm use code like this::

XMLInputSource xmlInput = new XMLInputSource(new File(descriptorPath));
XMLParser parser = UIMAFramework.getXMLParser();
ResourceSpecifier specifier = parser.parseResourceSpecifier(xmlInput);

As you can see, I parse an XML descriptor file in the standard way.
I'd love to be able to manually create a ResourceSpecifier with some
series of Java object creations and method calls.  Is that possible?

(I'd mainly like to do this for tests. I'd like to be able to create
an AnalysisEngine directly, without having to write an XML descriptor
file, so that I don't have to rely on a bunch of external files and
all my testing code can be in the same place.)

Steve
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy

Reply via email to