OOoRunner test harness

basicrunner.basichelper
Class DocumentHandler

basicrunner.basichelper.DocumentHandler

public class DocumentHandler

This class provides a handler of the BASIC test document.

See Also:
XSingleServiceFactory, com.sun.star.lang.XServiceInfo

Constructor Summary
DocumentHandler()
           
 
Method Summary
 Object createInstance()
          Create an instance of the document handler.
 Object createInstanceWithArguments(Object[] args)
          Create an instance of the document handler.
 byte[] getImplementationId()
          Get the unique id for this implementation
 String getImplementationName()
          Get the implementation name of this class.
 String[] getSupportedServiceNames()
          Get all supported service names.
 Type[] getTypes()
          Get all implemented types.
 boolean supportsService(String name)
          Is this servioce supported?
 

Constructor Detail

DocumentHandler

public DocumentHandler()
Method Detail

createInstanceWithArguments

public Object createInstanceWithArguments(Object[] args)
Create an instance of the document handler.
Parameters:
args - A boolean value as args[0] determines, if checked XML data is printed to the log. Default is false.
Returns:
The document handler

createInstance

public Object createInstance()
Create an instance of the document handler.
Returns:
The document handler

getImplementationId

public byte[] getImplementationId()
Get the unique id for this implementation
Returns:
The id.

getTypes

public Type[] getTypes()
Get all implemented types.
Returns:
The implemented UNO types.

supportsService

public boolean supportsService(String name)
Is this servioce supported?
Parameters:
name - The service name.
Returns:
True, if the service is supported.

getSupportedServiceNames

public String[] getSupportedServiceNames()
Get all supported service names.
Returns:
All supported servcices.

getImplementationName

public String getImplementationName()
Get the implementation name of this class.
Returns:
The implementation name.

OOoRunner test harness