LibreOffice Module xmerge (master) 1
|
The ConverterInfoReader
pulls a META-INF/converter.xml
file out of a jar file and parses it, providing access to this information in a Vector
of ConverterInfo
objects.
More...
Public Member Functions | |
ConverterInfoReader (String jar, boolean shouldvalidate) throws IOException, ParserConfigurationException, org.xml.sax.SAXException, RegistryException | |
Constructor. More... | |
Iterator< ConverterInfo > | getConverterInfoEnumeration () |
Returns an Enumeration of ConverterInfo objects. More... | |
Private Member Functions | |
void | parseDocument () throws RegistryException |
Loops over the converter Node in the converter.xml file and processes them. More... | |
void | parseConverterNode (Element e) throws RegistryException |
Parses a converter node, pulling the information out of the Node and placing it in a ConverterInfo object, and adds that object to a Vector of ConverterInfo objects. More... | |
String | getTextValue (Element e) |
Helper function to get the text value of an Element . More... | |
Private Attributes | |
final String | jarfilename |
final Document | document |
final ArrayList< ConverterInfo > | converterInfoList |
Static Private Attributes | |
static final String | TAG_CONVERTER = "converter" |
static final String | ATTRIB_OFFICE_TYPE = "type" |
static final String | ATTRIB_VERSION = "version" |
static final String | TAG_NAME = "converter-display-name" |
static final String | TAG_DESC = "converter-description" |
static final String | TAG_VENDOR = "converter-vendor" |
static final String | TAG_CLASS_IMPL = "converter-class-impl" |
static final String | TAG_TARGET = "converter-target" |
static final String | ATTRIB_DEVICE_TYPE = "type" |
static final String | TAG_XSLT_DESERIAL = "converter-xslt-deserialize" |
static final String | TAG_XSLT_SERIAL = "converter-xslt-serialize" |
The ConverterInfoReader
pulls a META-INF/converter.xml
file out of a jar file and parses it, providing access to this information in a Vector
of ConverterInfo
objects.
Definition at line 35 of file ConverterInfoReader.java.
|
inline |
Constructor.
A jar file is passed in. The jar file is parsed and the Vector
of ConverterInfo
objects is built.
jar | The URL of the jar file to process. |
shouldvalidate | Boolean to enable or disable xml validation. |
IOException | If the jar file cannot be read or if the META-INF/converter.xml can not be read in the jar file. |
ParserConfigurationException | If the DocumentBuilder can not be built. |
org.xml.sax.SAXException | If the converter.xml file can not be parsed. |
RegistryException | If the ConverterFactory implementation of a plug-in cannot be loaded. |
Definition at line 72 of file ConverterInfoReader.java.
References org.openoffice.xmerge.util.registry.ConverterInfoReader.converterInfoList, org.openoffice.xmerge.util.registry.ConverterInfoReader.document, org.openoffice.xmerge.util.registry.ConverterInfoReader.jarfilename, org.openoffice.xmerge.util.registry.ConverterInfoReader.parseDocument(), System, and URL.
|
inline |
Returns an Enumeration
of ConverterInfo
objects.
Enumeration
of ConverterInfo
objects. Definition at line 242 of file ConverterInfoReader.java.
References org.openoffice.xmerge.util.registry.ConverterInfoReader.converterInfoList.
Referenced by XMergeBridge._XMergeBridge.convert(), org.openoffice.xmerge.util.ActiveSyncDriver.Convert(), org.openoffice.xmerge.test.Driver.main(), and org.openoffice.xmerge.util.registry.ConverterInfoMgr.main().
|
inlineprivate |
Helper function to get the text value of an Element
.
e | The Element to process. |
Element
. Definition at line 220 of file ConverterInfoReader.java.
References String, and text().
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
inlineprivate |
Parses a converter node, pulling the information out of the Node
and placing it in a ConverterInfo
object, and adds that object to a Vector
of ConverterInfo
objects.
e | The Element corresponding to the converter XML tag. |
RegistryException | If the plug-in cannot be loaded. |
Definition at line 143 of file ConverterInfoReader.java.
References org.openoffice.xmerge.util.registry.ConverterInfoReader.ATTRIB_DEVICE_TYPE, org.openoffice.xmerge.util.registry.ConverterInfoReader.ATTRIB_OFFICE_TYPE, org.openoffice.xmerge.util.registry.ConverterInfoReader.ATTRIB_VERSION, org.openoffice.xmerge.util.registry.ConverterInfoReader.converterInfoList, org.openoffice.xmerge.util.registry.ConverterInfoReader.getTextValue(), i, org.openoffice.xmerge.util.registry.ConverterInfoReader.jarfilename, name, String, org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_CLASS_IMPL, org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_DESC, org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_NAME, org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_TARGET, org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_VENDOR, org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_XSLT_DESERIAL, and org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_XSLT_SERIAL.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseDocument().
|
inlineprivate |
Loops over the converter Node
in the converter.xml file and processes them.
RegistryException | If the plug-in associated with a specific converter Node cannot be loaded. |
Definition at line 120 of file ConverterInfoReader.java.
References org.openoffice.xmerge.util.registry.ConverterInfoReader.document, i, org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode(), and org.openoffice.xmerge.util.registry.ConverterInfoReader.TAG_CONVERTER.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.ConverterInfoReader().
|
staticprivate |
Definition at line 45 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 38 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 39 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
private |
Definition at line 50 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.ConverterInfoReader(), org.openoffice.xmerge.util.registry.ConverterInfoReader.getConverterInfoEnumeration(), and org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
private |
Definition at line 49 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.ConverterInfoReader(), and org.openoffice.xmerge.util.registry.ConverterInfoReader.parseDocument().
|
private |
Definition at line 48 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.ConverterInfoReader(), and org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 43 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 37 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseDocument().
|
staticprivate |
Definition at line 41 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 40 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 44 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 42 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 46 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
staticprivate |
Definition at line 47 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().