|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.instassm.XmlFragment
com.ptc.windchill.instassm.InstallerComponentMap
An internal-use-only class that provides simple Java APIs for manipulating the
Installer component map.
Supported API: false
Extendable: false
Field Summary | |
private Document |
doc_
|
private ArrayList |
extensionNodes_
|
private Element |
root_
|
private static String |
ROOT_COMMENT
|
private static String |
ROOT_ELEMENT
|
private static String |
ROOT_VERSION
|
private String |
saveFileName_
|
Constructor Summary | |
(package private) |
InstallerComponentMap(Element element)
|
|
InstallerComponentMap(File file)
Read an Installer component map from the given file. |
|
InstallerComponentMap(InputStream input_stream)
Read an Installer component map from the given file. |
Method Summary | |
private void |
analyzeDocument(Element element)
Scan the DOM document for Installer component map information. |
(package private) static String |
checkGetOptarg(int c,
String arg)
|
(package private) static String |
checkGetOptarg(int c,
String arg,
String not_string)
|
(package private) ArrayList |
debugGetExtensionNodes()
|
Element |
getRootElement()
Get the Installer component map root element. |
protected String |
getRootElementName()
|
protected String |
getSaveToFileName()
|
protected void |
initFrom(Element element)
|
static void |
main(String[] args)
Command line interface to the InstallerComponentMap. |
void |
saveToDir(File dir)
Save the fragment as a file into a specified directory. |
void |
saveToRegistryDir()
Save the fragment as a file into the registry dir that IAConstants has been initialized with. |
protected void |
setAttributesOn(Element element)
|
protected void |
setSaveToFileName(String file_name)
|
private static void |
usage(int status)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String ROOT_ELEMENT
private static final String ROOT_VERSION
private static final String ROOT_COMMENT
private Document doc_
private Element root_
private String saveFileName_
private ArrayList extensionNodes_
Constructor Detail |
public InstallerComponentMap(File file) throws IAException
file
-
IAException
- if the file is not found or if the contents of the file are malformed.public InstallerComponentMap(InputStream input_stream) throws IAException
input_stream
- InputStream containing just the Installer component map content. The stream will not be closed when reading is complete.
IAException
- if the file is not found or if the contents of the file are malformed.InstallerComponentMap(Element element) throws IAException
Method Detail |
private void analyzeDocument(Element element) throws IAException
IAException
protected void initFrom(Element element) throws IAException
initFrom
in class XmlFragment
IAException
protected void setAttributesOn(Element element) throws IAException
setAttributesOn
in class XmlFragment
IAException
protected String getRootElementName()
getRootElementName
in class XmlFragment
public Element getRootElement()
protected String getSaveToFileName()
getSaveToFileName
in class XmlFragment
protected void setSaveToFileName(String file_name)
ArrayList debugGetExtensionNodes()
public static void main(String[] args) throws Exception
For usage information, execute:
java -cp ... com.ptc.windchill.instassm.InstallerComponentMap component_map_fileat the command prompt.
Exception
private static void usage(int status)
static String checkGetOptarg(int c, String arg)
static String checkGetOptarg(int c, String arg, String not_string)
public void saveToRegistryDir() throws IAException
IAException
IAConstants
public void saveToDir(File dir) throws IAException
IAException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |