public interface LeoDelegate
Modifier and Type | Method and Description |
---|---|
<T extends LeoDelegate> |
analysisEngineSection(TransformerHandler thd,
boolean isTopDescriptor)
Produce the Analysis Engine section for the Deployment Descriptor XML.
|
String |
getDescriptorLocator() |
String |
getName()
Get the name of this delegate.
|
org.apache.uima.resource.ResourceSpecifier |
getResourceSpecifier()
Return a reference to the internal ResourceSpecifier that is the backend model for the delegate.
|
boolean |
isDeleteOnExit()
Returns TRUE if the generated descriptors will be deleted when the program exits.
|
<T extends LeoDelegate> |
setDescriptorLocator(URI descriptorLocator)
Set the location where the descriptor should be generated.
|
<T extends LeoDelegate> |
setIsDeleteOnExit(boolean deleteOnExit)
Set the flag to TRUE if generated descriptors should be deleted when the program exits, FALSE to persist them.
|
<T extends LeoDelegate> |
setName(String name)
Set the name of this delegate, return a reference to the delegate type object in each implementation.
|
void |
toXML()
Write the descriptor file out based on the locator information in the object.
|
void |
toXML(String filename)
Write the descriptor out to a temp XML file with the name provided as the base filename.
|
org.apache.uima.resource.ResourceSpecifier getResourceSpecifier()
<T extends LeoDelegate> T setDescriptorLocator(URI descriptorLocator)
T
- reference to this LeoAEDescriptor object instance for builder patterndescriptorLocator
- URI path where the descriptors should be locatedString getDescriptorLocator()
String getName()
<T extends LeoDelegate> T setName(String name) throws IOException
T
- delegate return typename
- String name of the delegate to setIOException
- if there is an error setting the name of the delegate descriptorboolean isDeleteOnExit()
<T extends LeoDelegate> T setIsDeleteOnExit(boolean deleteOnExit)
T
- Generic type template for extending classes.deleteOnExit
- true if the descriptors should auto deletevoid toXML() throws Exception
Exception
- if there is an error serializing the XMLvoid toXML(String filename) throws Exception
filename
- Base filename for the XML fileException
- if there is an error serializing the XML<T extends LeoDelegate> T analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor) throws SAXException
T
- Generic type template for extending classes.thd
- TransformerHandler for SAX XML outputisTopDescriptor
- if true then this is the top descriptor in the remote deploymentSAXException
- If there is an error serializing the XMLCopyright © 2018 Department of Veterans Affairs. All Rights Reserved.