org.ninjasoft.macpackager
Class InfoBuilder

java.lang.Object
  extended byorg.ninjasoft.macpackager.InfoBuilder

public class InfoBuilder
extends java.lang.Object

A simple builder of the Info.plist file. This could have alternately been done by loading an XML file and XPathing various results (or XSLT), but to keep dependencies low, basic strings are what we ended up using.

Author:
Brian Enigma

Constructor Summary
InfoBuilder()
           
 
Method Summary
 void addJarFile(java.lang.String filename)
           
 java.lang.String getBundleName()
           
 java.lang.String getInfoString()
           
 java.lang.String getMainClass()
           
 java.lang.String getVersion()
           
 java.lang.String getVmOptions()
           
 java.lang.String getXml()
           
 void setBundleName(java.lang.String bundleName)
           
 void setInfoString(java.lang.String infoString)
           
 void setMainClass(java.lang.String mainClass)
           
 void setVersion(java.lang.String version)
           
 void setVmOptions(java.lang.String vmOptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoBuilder

public InfoBuilder()
Method Detail

getXml

public java.lang.String getXml()

getBundleName

public java.lang.String getBundleName()
Returns:
Returns the bundleName.

setBundleName

public void setBundleName(java.lang.String bundleName)
Parameters:
bundleName - The bundleName to set.

getInfoString

public java.lang.String getInfoString()
Returns:
Returns the infoString.

setInfoString

public void setInfoString(java.lang.String infoString)
Parameters:
infoString - The infoString to set.

addJarFile

public void addJarFile(java.lang.String filename)

getMainClass

public java.lang.String getMainClass()
Returns:
Returns the mainClass.

setMainClass

public void setMainClass(java.lang.String mainClass)
Parameters:
mainClass - The mainClass to set.

getVersion

public java.lang.String getVersion()
Returns:
Returns the version.

setVersion

public void setVersion(java.lang.String version)
Parameters:
version - The version to set.

getVmOptions

public java.lang.String getVmOptions()
Returns:
Returns the vmOptions.

setVmOptions

public void setVmOptions(java.lang.String vmOptions)
Parameters:
vmOptions - The vmOptions to set.


Copyright © 2004 Ninjasoft. All Rights Reserved.