OpenOffice.org
XMerge API

org.openoffice.xmerge.util.registry
Class ConverterInfo

java.lang.Object
  |
  +--org.openoffice.xmerge.util.registry.ConverterInfo

public class ConverterInfo
extends java.lang.Object

Class for storing the information about a converter plugin.


Field Summary
static java.lang.String SxcType
           
static java.lang.String SxwType
           
 
Constructor Summary
ConverterInfo(java.lang.String jarName, java.lang.String officeMime, java.util.Vector deviceMime, java.lang.String displayName, java.lang.String description, java.lang.String version, java.lang.String vendor, java.lang.String impl)
          The constructor builds a ConverterInfo structure.
ConverterInfo(java.lang.String jarName, java.lang.String officeMime, java.util.Vector deviceMime, java.lang.String displayName, java.lang.String description, java.lang.String version, java.lang.String vendor, java.lang.String impl, java.lang.String xsltSerial, java.lang.String xsltDeserial)
          The constructor builds a ConverterInfo structure.
 
Method Summary
 boolean canDeserialize()
          Returns true if this plug-in has a deserializier, false otherwise.
 boolean canMerge()
          Returns true if this plug-in has a merger, false otherwise.
 boolean canSerialize()
          Returns true if this plug-in has a serializier, false otherwise.
 java.lang.String getClassImpl()
          Returns the implementation class name of PluginFactory.
 java.lang.String getDescription()
          Returns the description.
 java.util.Enumeration getDeviceMime()
          Returns an Enumeration of String objects indicating the device mime-type.
 java.lang.String getDisplayName()
          Returns the display name.
 DocumentDeserializerFactory getDocDeserializerFactory()
          Returns an instance of the DocumentSerializerFactory interface.
 DocumentMergerFactory getDocMergerFactory()
          Returns an instance of the DocumentMergerFactory interface.
 DocumentSerializerFactory getDocSerializerFactory()
          Returns an instance of the DocumentDeserializerFactory interface.
 java.lang.String getJarName()
          Returns the jar file name.
 java.lang.String getOfficeMime()
          Returns the office mime-type.
 PluginFactory getPluginFactory()
          Returns the PluginFactory instance for this plug-in.
 java.lang.String getVendor()
          Returns the vendor name.
 java.lang.String getVersion()
          Returns the version.
 java.lang.String getXsltDeserial()
          Returns a String containing the xslt stylesheet url that is to be used by the Xslt Plugin Deserializer.
 java.lang.String getXsltSerial()
          Returns a String containing the Xslt stylesheet url that is to be used by the Xslt Plugin Serializer.
static boolean isValidOfficeType(java.lang.String officeMime)
          Returns true if the officeMime is a valid Office mime type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SxcType

public static java.lang.String SxcType

SxwType

public static java.lang.String SxwType
Constructor Detail

ConverterInfo

public ConverterInfo(java.lang.String jarName,
                     java.lang.String officeMime,
                     java.util.Vector deviceMime,
                     java.lang.String displayName,
                     java.lang.String description,
                     java.lang.String version,
                     java.lang.String vendor,
                     java.lang.String impl)
              throws RegistryException
The constructor builds a ConverterInfo structure.
Parameters:
jarName - The URL of the jarfile.
officeMime - The office mime-type.
deviceMime - The device mime-type.
displayName - The display name.
description - The description.
version - The version.
vendor - The vendor name.
impl - The implementation class name of PluginFactory.
Throws:
RegistryException - If ci cannot be loaded.

ConverterInfo

public ConverterInfo(java.lang.String jarName,
                     java.lang.String officeMime,
                     java.util.Vector deviceMime,
                     java.lang.String displayName,
                     java.lang.String description,
                     java.lang.String version,
                     java.lang.String vendor,
                     java.lang.String impl,
                     java.lang.String xsltSerial,
                     java.lang.String xsltDeserial)
              throws RegistryException
The constructor builds a ConverterInfo structure.
Parameters:
jarName - The URL of the jarfile.
officeMime - The office mime-type.
deviceMime - The device mime-type.
displayName - The display name.
description - The description.
version - The version.
vendor - The vendor name.
impl - The implementation class name of PluginFactory.
xsltSerial - The url of the serializer xsl stylesheet
xsltDeserial - The url of the deserializer xsl stylesheet
Throws:
RegistryException - If ci cannot be loaded.
Method Detail

canDeserialize

public boolean canDeserialize()
Returns true if this plug-in has a deserializier, false otherwise.
Returns:
true if this plug-in has a deserializier, false otherwise.

canMerge

public boolean canMerge()
Returns true if this plug-in has a merger, false otherwise.
Returns:
true if this plug-in has a merger, false otherwise.

canSerialize

public boolean canSerialize()
Returns true if this plug-in has a serializier, false otherwise.
Returns:
true if this plug-in has a serializier, false otherwise.

getClassImpl

public java.lang.String getClassImpl()
Returns the implementation class name of PluginFactory.
Returns:
The implementation class name of PluginFactory, null if none exists.

getDescription

public java.lang.String getDescription()
Returns the description.
Returns:
The description, null if none exists.

getDeviceMime

public java.util.Enumeration getDeviceMime()
Returns an Enumeration of String objects indicating the device mime-type.
Returns:
An Enumeration of String objects indicating the device mime-type.

getDisplayName

public java.lang.String getDisplayName()
Returns the display name.
Returns:
The display name, null if none exists.

getDocDeserializerFactory

public DocumentDeserializerFactory getDocDeserializerFactory()
Returns an instance of the DocumentSerializerFactory interface.
Returns:
instance of the DocumentSerializer for this ConverterInfo.

getDocMergerFactory

public DocumentMergerFactory getDocMergerFactory()
Returns an instance of the DocumentMergerFactory interface.
Returns:
instance of the DocumentMergerFactory for this ConverterInfo.

getDocSerializerFactory

public DocumentSerializerFactory getDocSerializerFactory()
Returns an instance of the DocumentDeserializerFactory interface.
Returns:
instance of the DocumentDeserializer for this ConverterInfo.

getJarName

public java.lang.String getJarName()
Returns the jar file name.
Returns:
The jar file name, null if none exists.

getOfficeMime

public java.lang.String getOfficeMime()
Returns the office mime-type.
Returns:
The office mime-type, null if none exists.

getPluginFactory

public PluginFactory getPluginFactory()
Returns the PluginFactory instance for this plug-in.
Returns:
The PluginFactory instance for this plug-in.

getVendor

public java.lang.String getVendor()
Returns the vendor name.
Returns:
The vendor name, null if none exists.

getVersion

public java.lang.String getVersion()
Returns the version.
Returns:
The version, null if none exists.

getXsltDeserial

public java.lang.String getXsltDeserial()
Returns a String containing the xslt stylesheet url that is to be used by the Xslt Plugin Deserializer.
Returns:
String

getXsltSerial

public java.lang.String getXsltSerial()
Returns a String containing the Xslt stylesheet url that is to be used by the Xslt Plugin Serializer.
Returns:
String

isValidOfficeType

public static boolean isValidOfficeType(java.lang.String officeMime)
Returns true if the officeMime is a valid Office mime type.
Returns:
true if the officeMime is a valid Office mime type.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org