Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

org.openoffice
Class RunnerService

org.openoffice.RunnerService

public class RunnerService

The main class, will call ClParser and CfgParser to
fill the TestParameters.
Will then call the appropriate Testbase to run the tests.


Field Summary
static String __implName
           
static String __serviceName
           
 
Constructor Summary
RunnerService(XMultiServiceFactory xMSF)
          ct'tor Construct an own office provider for tests
 
Method Summary
static XSingleServiceFactory __getServiceFactory(String implName, XMultiServiceFactory multiFactory, XRegistryKey regKey)
          Gives a factory for creating the service.
static boolean __writeRegistryServiceInfo(XRegistryKey regKey)
          Writes the service information into the given registry key.
 Object execute(NamedValue[] args)
           
 byte[] getImplementationId()
          Get the implementation id.
 String getImplementationName()
          Function for reading the implementation name.
 PropertyValue[] getPropertyValues()
          Return all valid testcases from the object descriptions
 String getServiceName()
          This function provides the service name
 String[] getSupportedServiceNames()
          Function for reading all supported services
 Type[] getTypes()
          Get all implemented types of this class.
 void setPropertyValues(PropertyValue[] propertyValue)
          empty: not needed here.
 boolean supportsService(String serviceName)
          Does the implementation support this service?
 

Field Detail

__serviceName

public static final String __serviceName

__implName

public static final String __implName
Constructor Detail

RunnerService

public RunnerService(XMultiServiceFactory xMSF)
ct'tor Construct an own office provider for tests
Method Detail

execute

public Object execute(NamedValue[] args)

getServiceName

public String getServiceName()
This function provides the service name
Returns:
the service name

getTypes

public Type[] getTypes()
Get all implemented types of this class.
Returns:
An array of implemented interface types.
See Also:
com.sun.star.lang.XTypeProvider

getImplementationId

public byte[] getImplementationId()
Get the implementation id.
Returns:
An empty implementation id.
See Also:
com.sun.star.lang.XTypeProvider

getImplementationName

public String getImplementationName()
Function for reading the implementation name.
Returns:
the implementation name
See Also:
com.sun.star.lang.XServiceInfo

supportsService

public boolean supportsService(String serviceName)
Does the implementation support this service?
Parameters:
serviceName - The name of the service in question
Returns:
true, if service is supported, false otherwise
See Also:
com.sun.star.lang.XServiceInfo

getSupportedServiceNames

public String[] getSupportedServiceNames()
Function for reading all supported services
Returns:
An aaray with all supported service names
See Also:
com.sun.star.lang.XServiceInfo

getPropertyValues

public PropertyValue[] getPropertyValues()
Return all valid testcases from the object descriptions
Returns:
The valid testcases as property values

__getServiceFactory

public static XSingleServiceFactory __getServiceFactory(String implName,
                                                        XMultiServiceFactory multiFactory,
                                                        XRegistryKey regKey)
Gives a factory for creating the service. This method is called by the JavaLoader

Parameters:
implName - the name of the implementation for which a service is desired
multiFactory - the service manager to be used if needed
regKey - the registryKey
Returns:
returns a XSingleServiceFactory for creating the component
See Also:
com.sun.star.comp.loader.JavaLoader

__writeRegistryServiceInfo

public static boolean __writeRegistryServiceInfo(XRegistryKey regKey)
Writes the service information into the given registry key. This method is called by the JavaLoader

Parameters:
regKey - the registryKey
Returns:
returns true if the operation succeeded
See Also:
com.sun.star.comp.loader.JavaLoader

setPropertyValues

public void setPropertyValues(PropertyValue[] propertyValue)
                       throws UnknownPropertyException,
                              PropertyVetoException,
                              IllegalArgumentException,
                              WrappedTargetException
empty: not needed here.

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.