org.apache.uima.adapter.vinci.util
Class Descriptor

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.uima.adapter.vinci.util.Descriptor
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class Descriptor
extends org.xml.sax.helpers.DefaultHandler

Instance of this class handles parsing of the xml descriptor files. It also retrieves values of the named attributes of the named elements.


Constructor Summary
Descriptor(java.lang.String filePath)
          Constructor responsible for parsing the descriptor file named in filePath.
 
Method Summary
 java.lang.String getFilterString()
          Returns the filterString.
 int getInstanceCount()
          Returns the instanceCount.
 java.lang.String getNamingServiceHost()
           
 java.lang.String getResourceSpecifierPath()
          Returns the resourceSpecifierPath.
 int getServerSocketTimeout()
           
 java.lang.String getServiceName()
          Returns the serviceName.
 int getThreadPoolMaxSize()
           
 int getThreadPoolMinSize()
           
 void setFilterString(java.lang.String filterString)
          Sets the filterString.
 void setInstanceCount(int instanceCount)
          Sets the instanceCount.
 void setNamingServiceHost(java.lang.String namingServiceHost)
           
 void setResourceSpecifierPath(java.lang.String resourceSpecifierPath)
          Sets the resourceSpecifierPath.
 void setServerSocketTimeout(int serverSocketTimeout)
           
 void setServiceName(java.lang.String serviceName)
          Sets the serviceName.
 void setThreadPoolMaxSize(int threadPoolMaxSize)
           
 void setThreadPoolMinSize(int threadPoolMinSize)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attribs)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Descriptor

public Descriptor(java.lang.String filePath)
Constructor responsible for parsing the descriptor file named in filePath.

Parameters:
Fully - qualified path the xml descriptor.
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attribs)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

getThreadPoolMaxSize

public int getThreadPoolMaxSize()

setThreadPoolMaxSize

public void setThreadPoolMaxSize(int threadPoolMaxSize)

getThreadPoolMinSize

public int getThreadPoolMinSize()

setThreadPoolMinSize

public void setThreadPoolMinSize(int threadPoolMinSize)

getInstanceCount

public int getInstanceCount()
Returns the instanceCount.

Returns:
int

getResourceSpecifierPath

public java.lang.String getResourceSpecifierPath()
Returns the resourceSpecifierPath.

Returns:
String

getServiceName

public java.lang.String getServiceName()
Returns the serviceName.

Returns:
String

setInstanceCount

public void setInstanceCount(int instanceCount)
Sets the instanceCount.

Parameters:
instanceCount - The instanceCount to set

setResourceSpecifierPath

public void setResourceSpecifierPath(java.lang.String resourceSpecifierPath)
Sets the resourceSpecifierPath.

Parameters:
resourceSpecifierPath - The resourceSpecifierPath to set

setServiceName

public void setServiceName(java.lang.String serviceName)
Sets the serviceName.

Parameters:
serviceName - The serviceName to set

getFilterString

public java.lang.String getFilterString()
Returns the filterString.

Returns:
String

setFilterString

public void setFilterString(java.lang.String filterString)
Sets the filterString.

Parameters:
filterString - The filterString to set

getNamingServiceHost

public java.lang.String getNamingServiceHost()

setNamingServiceHost

public void setNamingServiceHost(java.lang.String namingServiceHost)

getServerSocketTimeout

public int getServerSocketTimeout()

setServerSocketTimeout

public void setServerSocketTimeout(int serverSocketTimeout)


Copyright © 2012. All Rights Reserved.