at.spardat.xma.boot.comp.data
Class SWTPreinstall

java.lang.Object
  extended byat.spardat.xma.boot.comp.data.SWTPreinstall

public class SWTPreinstall
extends java.lang.Object

This class represents the preinstall tag from xma-app.xml. It contains a version number, specifing the version of swt to use if allready installed.


Method Summary
 java.lang.String getVersion()
          returns the version string
 java.lang.String getVersionDir()
          Returns the version string in its directory representation.
 void setVersion(java.lang.String version)
          sets the version string
static java.lang.String toDirName(java.lang.String version)
          Converts the given version string to its directory representation.
 void writeXML(java.io.PrintStream ps)
          write this object to a xml print stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeXML

public void writeXML(java.io.PrintStream ps)
write this object to a xml print stream.

Parameters:
ps - the PrintStream to write to

getVersion

public java.lang.String getVersion()
returns the version string


setVersion

public void setVersion(java.lang.String version)
sets the version string


toDirName

public static java.lang.String toDirName(java.lang.String version)
Converts the given version string to its directory representation. It simply replaces all dots with underscores.


getVersionDir

public java.lang.String getVersionDir()
Returns the version string in its directory representation. All dots are replaced by underscores.