LibreOffice Module xmerge (master) 1
|
Class for storing the information about a converter plug-in. More...
Public Member Functions | |
ConverterInfo (String jarName, String officeMime, ArrayList< String > deviceMime, String displayName, String description, String version, String vendor, String impl, String xsltSerial, String xsltDeserial) throws RegistryException | |
The constructor builds a ConverterInfo structure. More... | |
ConverterInfo (String jarName, String officeMime, ArrayList< String > deviceMime, String displayName, String description, String version, String vendor, String impl) throws RegistryException | |
The constructor builds a ConverterInfo structure. More... | |
DocumentSerializerFactory | getDocSerializerFactory () |
Returns an instance of the DocumentDeserializerFactory interface. More... | |
DocumentDeserializerFactory | getDocDeserializerFactory () |
Returns an instance of the DocumentSerializerFactory interface. More... | |
DocumentMergerFactory | getDocMergerFactory () |
Returns an instance of the DocumentMergerFactory interface. More... | |
String | getJarName () |
Returns the jar file name. More... | |
String | getOfficeMime () |
Returns the office mime-type. More... | |
Iterator< String > | getDeviceMime () |
Returns an Enumeration of String objects indicating the device mime-type. More... | |
String | getDisplayName () |
Returns the display name. More... | |
String | getDescription () |
Returns the description. More... | |
String | getVersion () |
Returns the version. More... | |
String | getVendor () |
Returns the vendor name. More... | |
String | getClassImpl () |
Returns the implementation class name of PluginFactory. More... | |
PluginFactory | getPluginFactory () |
Returns the PluginFactory instance for this plug-in. More... | |
boolean | canSerialize () |
Returns true if this plug-in has a serializer, false otherwise. More... | |
boolean | canDeserialize () |
Returns true if this plug-in has a deserializer, false otherwise. More... | |
boolean | canMerge () |
Returns true if this plug-in has a merger, false otherwise. More... | |
String | getXsltSerial () |
Returns a String containing the Xslt stylesheet URL that is to be used by the Xslt Plug-in Serializer. More... | |
String | getXsltDeserial () |
Returns a String containing the xslt stylesheet URL that is to be used by the Xslt Plug-in Deserializer. More... | |
Static Public Member Functions | |
static boolean | isValidOfficeType (String officeMime) |
Returns true if the officeMime is a valid Office mime type. More... | |
Private Attributes | |
final String | piJarName |
final String | piOfficeMime |
final ArrayList< String > | piDeviceMime |
final String | piDisplayName |
final String | piDescription |
final String | piVersion |
final String | piVendor |
final String | piClassImpl |
String | piXsltSerial |
String | piXsltDeserial |
boolean | piCanSerialize = false |
boolean | piCanDeserialize = false |
boolean | piCanMerge = false |
final ClassLoader | piClassLoader |
PluginFactory | piPluginFactory |
Static Private Attributes | |
static final String[] | validOfficeTypes |
Keep track of the valid Office mime types. More... | |
Class for storing the information about a converter plug-in.
Definition at line 37 of file ConverterInfo.java.
|
inline |
The constructor builds a ConverterInfo structure.
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 |
RegistryException | If ci cannot be loaded. |
Definition at line 80 of file ConverterInfo.java.
References Exception, getClass(), i, org.openoffice.xmerge.util.registry.ConverterInfo.isValidOfficeType(), loader, Object, org.openoffice.xmerge.util.registry.ConverterInfo.piCanDeserialize, org.openoffice.xmerge.util.registry.ConverterInfo.piCanMerge, org.openoffice.xmerge.util.registry.ConverterInfo.piCanSerialize, org.openoffice.xmerge.util.registry.ConverterInfo.piClassImpl, org.openoffice.xmerge.util.registry.ConverterInfo.piClassLoader, org.openoffice.xmerge.util.registry.ConverterInfo.piDescription, org.openoffice.xmerge.util.registry.ConverterInfo.piDeviceMime, org.openoffice.xmerge.util.registry.ConverterInfo.piDisplayName, org.openoffice.xmerge.util.registry.ConverterInfo.piJarName, org.openoffice.xmerge.util.registry.ConverterInfo.piOfficeMime, org.openoffice.xmerge.util.registry.ConverterInfo.piPluginFactory, org.openoffice.xmerge.util.registry.ConverterInfo.piVendor, org.openoffice.xmerge.util.registry.ConverterInfo.piVersion, org.openoffice.xmerge.util.registry.ConverterInfo.piXsltDeserial, org.openoffice.xmerge.util.registry.ConverterInfo.piXsltSerial, run(), and URL.
|
inline |
The constructor builds a ConverterInfo structure.
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 . |
RegistryException | If ci cannot be loaded. |
Definition at line 158 of file ConverterInfo.java.
References Exception, getClass(), i, org.openoffice.xmerge.util.registry.ConverterInfo.isValidOfficeType(), loader, Object, org.openoffice.xmerge.util.registry.ConverterInfo.piCanDeserialize, org.openoffice.xmerge.util.registry.ConverterInfo.piCanMerge, org.openoffice.xmerge.util.registry.ConverterInfo.piCanSerialize, org.openoffice.xmerge.util.registry.ConverterInfo.piClassImpl, org.openoffice.xmerge.util.registry.ConverterInfo.piClassLoader, org.openoffice.xmerge.util.registry.ConverterInfo.piDescription, org.openoffice.xmerge.util.registry.ConverterInfo.piDeviceMime, org.openoffice.xmerge.util.registry.ConverterInfo.piDisplayName, org.openoffice.xmerge.util.registry.ConverterInfo.piJarName, org.openoffice.xmerge.util.registry.ConverterInfo.piOfficeMime, org.openoffice.xmerge.util.registry.ConverterInfo.piPluginFactory, org.openoffice.xmerge.util.registry.ConverterInfo.piVendor, org.openoffice.xmerge.util.registry.ConverterInfo.piVersion, run(), and URL.
|
inline |
Returns true
if this plug-in has a deserializer, false
otherwise.
true
if this plug-in has a deserializer, false
otherwise. Definition at line 355 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piCanDeserialize.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns true
if this plug-in has a merger, false
otherwise.
true
if this plug-in has a merger, false
otherwise. Definition at line 366 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piCanMerge.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns true
if this plug-in has a serializer, false
otherwise.
true
if this plug-in has a serializer, false
otherwise. Definition at line 344 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piCanSerialize.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns the implementation class name of PluginFactory.
PluginFactory
, null
if none exists. Definition at line 324 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piClassImpl, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns the description.
null
if none exists. Definition at line 296 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piDescription, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns an Enumeration
of String
objects indicating the device mime-type.
Enumeration
of String
objects indicating the device mime-type. Definition at line 278 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piDeviceMime.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.findConverterInfoChain(), org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.getDeviceFileExtension(), and org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns the display name.
null
if none exists. Definition at line 287 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piDisplayName, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main(), and org.openoffice.xmerge.util.registry.ConverterInfoMgr.removeByName().
|
inline |
Returns an instance of the DocumentSerializerFactory
interface.
DocumentSerializer
for this ConverterInfo
. Definition at line 239 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piPluginFactory.
Referenced by org.openoffice.xmerge.Convert.convert().
|
inline |
Returns an instance of the DocumentMergerFactory interface.
DocumentMergerFactory
for this ConverterInfo
. Definition at line 249 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piPluginFactory.
Referenced by org.openoffice.xmerge.Convert.getDocumentMerger().
|
inline |
Returns an instance of the DocumentDeserializerFactory
interface.
DocumentDeserializer
for this ConverterInfo
. Definition at line 229 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piPluginFactory.
Referenced by org.openoffice.xmerge.Convert.convert().
|
inline |
Returns the jar file name.
null
if none exists. Definition at line 258 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piJarName, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main(), org.openoffice.xmerge.util.registry.ConverterInfoMgr.removeByJar(), org.openoffice.xmerge.converter.xml.xslt.DocumentDeserializerImpl.resolve(), org.openoffice.xmerge.converter.xml.xslt.DocumentSerializerImpl.resolve(), org.openoffice.xmerge.converter.xml.xslt.DocumentSerializerImpl.transform(), and org.openoffice.xmerge.converter.xml.xslt.DocumentDeserializerImpl.transform().
|
inline |
Returns the office mime-type.
null
if none exists. Definition at line 267 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piOfficeMime, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.findConverterInfoChain(), and org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns the PluginFactory
instance for this plug-in.
PluginFactory
instance for this plug-in. Definition at line 333 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piPluginFactory.
Referenced by org.openoffice.xmerge.Convert.addInputStream(), and org.openoffice.xmerge.Convert.getOfficeDocument().
|
inline |
Returns the vendor name.
null
if none exists. Definition at line 314 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piVendor, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns the version.
null
if none exists. Definition at line 305 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piVersion, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inline |
Returns a String
containing the xslt stylesheet URL that is to be used by the Xslt Plug-in Deserializer.
String
. Definition at line 403 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piXsltDeserial, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main(), and org.openoffice.xmerge.converter.xml.xslt.DocumentDeserializerImpl.transform().
|
inline |
Returns a String
containing the Xslt stylesheet URL that is to be used by the Xslt Plug-in Serializer.
String
. Definition at line 393 of file ConverterInfo.java.
References org.openoffice.xmerge.util.registry.ConverterInfo.piXsltSerial, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoMgr.main(), and org.openoffice.xmerge.converter.xml.xslt.DocumentSerializerImpl.transform().
|
inlinestatic |
Returns true
if the officeMime is a valid Office mime type.
true
if the officeMime is a valid Office mime type. Definition at line 375 of file ConverterInfo.java.
References String, and org.openoffice.xmerge.util.registry.ConverterInfo.validOfficeTypes.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), org.openoffice.xmerge.util.registry.ConverterInfoMgr.findConverterInfo(), and org.openoffice.xmerge.ConverterFactory.getConverter().
|
private |
Definition at line 57 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.canDeserialize(), and org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo().
|
private |
Definition at line 58 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.canMerge(), and org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo().
|
private |
Definition at line 56 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.canSerialize(), and org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo().
|
private |
Definition at line 53 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getClassImpl().
|
private |
Definition at line 59 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo().
|
private |
Definition at line 50 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getDescription().
|
private |
Definition at line 48 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getDeviceMime().
|
private |
Definition at line 49 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getDisplayName().
|
private |
Definition at line 46 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getJarName().
|
private |
Definition at line 47 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getOfficeMime().
|
private |
Definition at line 60 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), org.openoffice.xmerge.util.registry.ConverterInfo.getDocDeserializerFactory(), org.openoffice.xmerge.util.registry.ConverterInfo.getDocMergerFactory(), org.openoffice.xmerge.util.registry.ConverterInfo.getDocSerializerFactory(), and org.openoffice.xmerge.util.registry.ConverterInfo.getPluginFactory().
|
private |
Definition at line 52 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getVendor().
|
private |
Definition at line 51 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getVersion().
|
private |
Definition at line 55 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getXsltDeserial().
|
private |
Definition at line 54 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.ConverterInfo(), and org.openoffice.xmerge.util.registry.ConverterInfo.getXsltSerial().
|
staticprivate |
Keep track of the valid Office mime types.
Definition at line 40 of file ConverterInfo.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfo.isValidOfficeType().