LibreOffice Module xmerge (master)
1
|
The. More...
Public Member Functions | |
ConverterInfoReader (String jar, boolean shouldvalidate) throws IOException, ParserConfigurationException, org.xml.sax.SAXException, RegistryException | |
Constructor. More... | |
Iterator< ConverterInfo > | getConverterInfoEnumeration () |
Returns an. More... | |
Private Member Functions | |
void | parseDocument () throws RegistryException |
Loops over the converter More... | |
void | parseConverterNode (Element e) throws RegistryException |
Parses a converter node, pulling the information out of the. More... | |
String | getTextValue (Element e) |
Helper function to get the text value of an. 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.
pulls a
file out of a jar file and parses it, providing access to this information in a
of
objects.
Definition at line 35 of file ConverterInfoReader.java.
|
inline |
Constructor.
A jar file is passed in. The jar file is parsed and the
of
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
|
org.xml.sax.SAXException | If the converter.xml file can not be parsed. |
RegistryException | If the ConverterFactory
|
Definition at line 72 of file ConverterInfoReader.java.
References org.openoffice.xmerge.util.registry.ConverterInfoReader.parseDocument(), System, and URL.
|
inline |
Returns an.
of
objects.
Definition at line 242 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.ActiveSyncDriver.Convert(), XMergeBridge._XMergeBridge.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.
.
e | The Element
|
Definition at line 220 of file ConverterInfoReader.java.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
|
inlineprivate |
Parses a converter node, pulling the information out of the.
and placing it in a
object, and adds that object to a
of
objects.
e | The Element
|
RegistryException | If the plug-in cannot be loaded. |
Definition at line 143 of file ConverterInfoReader.java.
References org.openoffice.xmerge.util.registry.ConverterInfoReader.getTextValue(), i, name, and String.
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.parseDocument().
|
inlineprivate |
Loops over the converter
in the converter.xml file and processes them.
RegistryException | If the plug-in associated with a specific converter cannot be loaded. |
Definition at line 120 of file ConverterInfoReader.java.
References i, and org.openoffice.xmerge.util.registry.ConverterInfoReader.parseConverterNode().
Referenced by org.openoffice.xmerge.util.registry.ConverterInfoReader.ConverterInfoReader().
|
staticprivate |
Definition at line 45 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 38 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 39 of file ConverterInfoReader.java.
|
private |
Definition at line 50 of file ConverterInfoReader.java.
|
private |
Definition at line 49 of file ConverterInfoReader.java.
|
private |
Definition at line 48 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 43 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 37 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 41 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 40 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 44 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 42 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 46 of file ConverterInfoReader.java.
|
staticprivate |
Definition at line 47 of file ConverterInfoReader.java.