com.ptc.windchill.instassm
Class XmlFragment

java.lang.Object
  extended bycom.ptc.windchill.instassm.XmlFragment
Direct Known Subclasses:
InstalledAssembly, InstalledLocale, InstalledTempPatch, InstallerComponentMap

abstract class XmlFragment
extends Object


Constructor Summary
(package private) XmlFragment()
           
(package private) XmlFragment(Element element)
           
(package private) XmlFragment(File file)
           
(package private) XmlFragment(InputStream input_stream)
           
 
Method Summary
protected abstract  String getRootElementName()
           
protected abstract  String getSaveToFileName()
           
private  void init(InputStream input_stream)
           
protected abstract  void initFrom(Element element)
           
private static Document readDocFrom(InputStream input_stream)
          Parse the XML file with no validation.
 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 abstract  void setAttributesOn(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFragment

XmlFragment()

XmlFragment

XmlFragment(File file)
      throws IAException

XmlFragment

XmlFragment(InputStream input_stream)
      throws IAException

XmlFragment

XmlFragment(Element element)
      throws IAException
Method Detail

init

private void init(InputStream input_stream)
           throws IAException
Throws:
IAException

readDocFrom

private static Document readDocFrom(InputStream input_stream)
                             throws IAException
Parse the XML file with no validation.

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

initFrom

protected abstract void initFrom(Element element)
                          throws IAException
Throws:
IAException

setAttributesOn

protected abstract void setAttributesOn(Element element)
                                 throws IAException
Throws:
IAException

getSaveToFileName

protected abstract String getSaveToFileName()

getRootElementName

protected abstract String getRootElementName()