net.sf.jpackit.config
Class BuildType

java.lang.Object
  extended by net.sf.jpackit.config.BuildType
All Implemented Interfaces:
java.io.Serializable

public final class BuildType
extends java.lang.Object
implements java.io.Serializable

Enumeration for available build types

Version:
$Id: BuildType.java,v 1.3 2005/01/24 13:23:33 ignath Exp $
Author:
Ignat Aleksandrov
See Also:
Serialized Form

Field Summary
static BuildType CLASS
          Build package as single class file
static BuildType EXE
          Build package as Windows executable file
static BuildType JAR
          Build package as jar file
 
Method Summary
 java.lang.String getExtenstion()
          Get file extension for package file created with current build type
static BuildType getInstance(java.lang.String name)
          Get BuildType instance according to build type name
 java.lang.String getName()
          Get displayable name of current build type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR

public static final BuildType JAR
Build package as jar file


CLASS

public static final BuildType CLASS
Build package as single class file


EXE

public static final BuildType EXE
Build package as Windows executable file

Method Detail

getInstance

public static BuildType getInstance(java.lang.String name)
Get BuildType instance according to build type name

Parameters:
name - name of build type
Returns:
instance of BuildType corresponding to its name
Throws:
java.lang.IllegalArgumentException - if there is no build type with specified name

getName

public java.lang.String getName()
Get displayable name of current build type.

Returns:
name

getExtenstion

public java.lang.String getExtenstion()
Get file extension for package file created with current build type

Returns:
extnsion