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
IOException
org.apache.uima.util.InvalidXMLException
public LeoPearDescriptor(File pearDescFile) throws IOException, org.apache.uima.util.InvalidXMLException
IOException
org.apache.uima.util.InvalidXMLException
public LeoPearDescriptor(URI pearDescFile) throws IOException, org.apache.uima.util.InvalidXMLException
IOException
org.apache.uima.util.InvalidXMLException
public org.apache.uima.resource.ResourceSpecifier getResourceSpecifier()
LeoDelegate
getResourceSpecifier
in interface LeoDelegate
public LeoPearDescriptor setDescriptorLocator(URI descriptorLocator)
LeoDelegate
setDescriptorLocator
in interface LeoDelegate
descriptorLocator
- URI path where the descriptors should be locatedpublic String getDescriptorLocator()
getDescriptorLocator
in interface LeoDelegate
public String getName()
LeoDelegate
getName
in interface LeoDelegate
public LeoPearDescriptor setName(String name) throws IOException
LeoDelegate
setName
in interface LeoDelegate
name
- String name of the delegate to setIOException
- if there is an error setting the name of the delegate descriptorpublic boolean isDeleteOnExit()
LeoDelegate
isDeleteOnExit
in interface LeoDelegate
public LeoPearDescriptor setIsDeleteOnExit(boolean deleteOnExit)
LeoDelegate
setIsDeleteOnExit
in interface LeoDelegate
deleteOnExit
- true if the descriptors should auto deletepublic void toXML() throws Exception
LeoDelegate
toXML
in interface LeoDelegate
Exception
- if there is an error serializing the XMLpublic void toXML(String filename) throws Exception
LeoDelegate
toXML
in interface LeoDelegate
filename
- Base filename for the XML fileException
- if there is an error serializing the XMLpublic LeoPearDescriptor analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor) throws SAXException
LeoDelegate
analysisEngineSection
in interface LeoDelegate
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.