com.ptc.windchill.instassm
Class InstalledTempPatch

java.lang.Object
  extended bycom.ptc.windchill.instassm.XmlFragment
      extended bycom.ptc.windchill.instassm.InstalledTempPatch

public final class InstalledTempPatch
extends XmlFragment

A class for reading the temporary patch files for individual installed assemblies.

Supported API: false

Extendable: false


Field Summary
private  String description_
           
private  String name_
           
 
Constructor Summary
(package private) InstalledTempPatch(Element element)
           
  InstalledTempPatch(File file)
          Read the installed temporary patch file from the given file.
  InstalledTempPatch(InputStream input_stream)
          Read the installed temporary patch file from the given file.
  InstalledTempPatch(String name, String description)
           
 
Method Summary
(package private) static InstalledTempPatch[] findInstalledTempPatches()
           
 String getDescription()
          The description of the installed temporary patch.
 String getName()
          The name for the installed temporary patch.
protected  String getRootElementName()
           
protected  String getSaveToFileName()
           
protected  void initFrom(Element element)
           
static void main(String[] args)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name_

private String name_

description_

private String description_
Constructor Detail

InstalledTempPatch

public InstalledTempPatch(File file)
                   throws IAException
Read the installed temporary patch file from the given file.

Parameters:
file -
Throws:
IAException - if the file is not found, if the contents of the file are malformed, or if the rel id in the file is inconsistent with the name fo the file

InstalledTempPatch

public InstalledTempPatch(InputStream input_stream)
                   throws IAException
Read the installed temporary patch file from the given file.

Parameters:
input_stream - InputStream containing just the .ia content. The stream will not be closed when reading is complete.
Throws:
IAException - if the file is not found, if the contents of the file are malformed, or if the rel id in the file is inconsistent with the name fo the file

InstalledTempPatch

InstalledTempPatch(Element element)
             throws IAException

InstalledTempPatch

public InstalledTempPatch(String name,
                          String description)
                   throws IAException
Method Detail

initFrom

protected void initFrom(Element element)
                 throws IAException
Specified by:
initFrom in class XmlFragment
Throws:
IAException

setAttributesOn

protected void setAttributesOn(Element element)
Specified by:
setAttributesOn in class XmlFragment

getName

public String getName()
The name for the installed temporary patch.

Supported API: false

Extendable: false

Returns:
a non-null release identifier

getDescription

public String getDescription()
The description of the installed temporary patch.

Supported API: false

Extendable: false

Returns:
a non-null, possibly empty string

getSaveToFileName

protected String getSaveToFileName()
Specified by:
getSaveToFileName in class XmlFragment

getRootElementName

protected String getRootElementName()
Specified by:
getRootElementName in class XmlFragment

findInstalledTempPatches

static InstalledTempPatch[] findInstalledTempPatches()
                                              throws IAException
Throws:
IAException

main

public static void main(String[] args)
                 throws IAException
Throws:
IAException

saveToRegistryDir

public void saveToRegistryDir()
                       throws IAException
Save the fragment as a file into the registry dir that IAConstants has been initialized with.

Throws:
IAException
See Also:
IAConstants

saveToDir

public void saveToDir(File dir)
               throws IAException
Save the fragment as a file into a specified directory.

Throws:
IAException