org.openoffice.da.comp.w2lcommon.filter

Class ExportFilterBase

public abstract class ExportFilterBase extends Object implements XExportFilter, XServiceName, XServiceInfo, XDocumentHandler, XTypeProvider

This class provides an abstract uno component which implements an XExportFilter. The filter is actually generic and only then constructor and 3 strings needs to changed by the subclass.
Field Summary
protected static XMultiServiceFactoryxMSF
static String__displayName
Filter name to include in error messages
static String__implementationName
Implementation name for the component
static String__serviceName
Service name for the component
Constructor Summary
ExportFilterBase(XComponentContext xComponentContext1)
We need to get the Service Manager from the Component context to instantiate certain services, hence this constructor.
Method Summary
voidcharacters(String str)
voidconvert(XInputStream xml, XOutputStream exportStream)
voidendDocument()
voidendElement(String str)
booleanexporter(PropertyValue[] aSourceData, String[] msUserData)
byte[]getImplementationId()
StringgetImplementationName()
StringgetServiceName()
String[]getSupportedServiceNames()
Type[]getTypes()
voidignorableWhitespace(String str)
StringneedsMask(String origString)
voidprocessingInstruction(String aTarget, String aData)
Stringreplace(String origString, String origChar, String replaceChar)
voidsetDocumentLocator(XLocator xLocator)
voidstartDocument()
voidstartElement(String str, XAttributeList xattribs)
booleansupportsService(String stringServiceName)

Field Detail

xMSF

protected static XMultiServiceFactory xMSF

__displayName

public static final String __displayName
Filter name to include in error messages

__implementationName

public static final String __implementationName
Implementation name for the component

__serviceName

public static final String __serviceName
Service name for the component

Constructor Detail

ExportFilterBase

public ExportFilterBase(XComponentContext xComponentContext1)
We need to get the Service Manager from the Component context to instantiate certain services, hence this constructor. The subclass must override this to set xMSF properly from the reigstration class

Method Detail

characters

public void characters(String str)

convert

public void convert(XInputStream xml, XOutputStream exportStream)

endDocument

public void endDocument()

endElement

public void endElement(String str)

exporter

public boolean exporter(PropertyValue[] aSourceData, String[] msUserData)

getImplementationId

public byte[] getImplementationId()

getImplementationName

public String getImplementationName()

getServiceName

public String getServiceName()

getSupportedServiceNames

public String[] getSupportedServiceNames()

getTypes

public Type[] getTypes()

ignorableWhitespace

public void ignorableWhitespace(String str)

needsMask

public String needsMask(String origString)

processingInstruction

public void processingInstruction(String aTarget, String aData)

replace

public String replace(String origString, String origChar, String replaceChar)

setDocumentLocator

public void setDocumentLocator(XLocator xLocator)

startDocument

public void startDocument()

startElement

public void startElement(String str, XAttributeList xattribs)

supportsService

public boolean supportsService(String stringServiceName)