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

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

public class XMASWTDescription
extends java.lang.Object

This class represents the swt-description tag from xma-app.xml. It may contain an ordered list of prefered versions and a set of resources to download if none of the prefered versions is installed.


Method Summary
 void addPreinstall(SWTPreinstall preinstall)
          adds the given preinstall to the list preinstalls
 void addResource(XMAResource resoure)
          adds the given resource to the map resources
 java.util.List getPreinstalls()
          returns the list of preinstalls, containing SWTPreinstall objects
 java.util.HashMap getResources()
          returns the map of resources, containing XMAResource objects
 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

addPreinstall

public void addPreinstall(SWTPreinstall preinstall)
adds the given preinstall to the list preinstalls


addResource

public void addResource(XMAResource resoure)
adds the given resource to the map resources


getPreinstalls

public java.util.List getPreinstalls()
returns the list of preinstalls, containing SWTPreinstall objects


getResources

public java.util.HashMap getResources()
returns the map of resources, containing XMAResource objects