public class LeoPearDescriptor extends Object implements LeoDelegate
| Modifier and Type | Field and Description | 
|---|---|
protected URI | 
descriptorLocator  | 
protected org.apache.uima.resource.PearSpecifier | 
resourceSpecifier  | 
| Constructor and Description | 
|---|
LeoPearDescriptor(File pearDescFile)  | 
LeoPearDescriptor(String pearDescPath)  | 
LeoPearDescriptor(URI pearDescFile)  | 
| Modifier and Type | Method and Description | 
|---|---|
LeoPearDescriptor | 
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. 
 | 
LeoPearDescriptor | 
setDescriptorLocator(URI descriptorLocator)
Set the location where the descriptor should be generated. 
 | 
LeoPearDescriptor | 
setIsDeleteOnExit(boolean deleteOnExit)
Set the flag to TRUE if generated descriptors should be deleted when the program exits, FALSE to persist them. 
 | 
LeoPearDescriptor | 
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. 
 | 
protected org.apache.uima.resource.PearSpecifier resourceSpecifier
protected URI descriptorLocator
public LeoPearDescriptor(String pearDescPath) throws IOException, org.apache.uima.util.InvalidXMLException
IOExceptionorg.apache.uima.util.InvalidXMLExceptionpublic LeoPearDescriptor(File pearDescFile) throws IOException, org.apache.uima.util.InvalidXMLException
IOExceptionorg.apache.uima.util.InvalidXMLExceptionpublic LeoPearDescriptor(URI pearDescFile) throws IOException, org.apache.uima.util.InvalidXMLException
IOExceptionorg.apache.uima.util.InvalidXMLExceptionpublic org.apache.uima.resource.ResourceSpecifier getResourceSpecifier()
LeoDelegategetResourceSpecifier in interface LeoDelegatepublic LeoPearDescriptor setDescriptorLocator(URI descriptorLocator)
LeoDelegatesetDescriptorLocator in interface LeoDelegatedescriptorLocator - URI path where the descriptors should be locatedpublic String getDescriptorLocator()
getDescriptorLocator in interface LeoDelegatepublic String getName()
LeoDelegategetName in interface LeoDelegatepublic LeoPearDescriptor setName(String name) throws IOException
LeoDelegatesetName in interface LeoDelegatename - String name of the delegate to setIOException - if there is an error setting the name of the delegate descriptorpublic boolean isDeleteOnExit()
LeoDelegateisDeleteOnExit in interface LeoDelegatepublic LeoPearDescriptor setIsDeleteOnExit(boolean deleteOnExit)
LeoDelegatesetIsDeleteOnExit in interface LeoDelegatedeleteOnExit - true if the descriptors should auto deletepublic void toXML()
           throws Exception
LeoDelegatetoXML in interface LeoDelegateException - if there is an error serializing the XMLpublic void toXML(String filename) throws Exception
LeoDelegatetoXML in interface LeoDelegatefilename - Base filename for the XML fileException - if there is an error serializing the XMLpublic LeoPearDescriptor analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor) throws SAXException
LeoDelegateanalysisEngineSection in interface LeoDelegatethd - 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.