com.ptc.windchill.upgrade.dust
Class BlobCheckOpts

java.lang.Object
  extended bycom.ptc.windchill.upgrade.dust.BlobCheckOpts
Direct Known Subclasses:
ExportBlobCheckOpts, ReadBlobCheckOpts, StartBlobCheckOpts

public abstract class BlobCheckOpts
extends Object

Abstract class BlobCheckOpts is the base for StartBlobCheckOpts, ExportBlobCheckOpts, and ReadBlobCheckOpts. Each of these classes is responsible for parsing and validating command line args using gnu-getopt. This class defines the options that are valid for all, then each extending class chooses a subset of options that are valid for its purposes.


Field Summary
(package private)  boolean debugMode
           
private  String DEFAULT_FILE_NAME
           
private static boolean DEVELOPER_MODE
           
(package private)  String directory
           
(package private)  boolean exportBlobs
           
(package private)  String fileName
           
(package private)  gnu.getopt.Getopt getopt
           
(package private)  boolean initSuccess
           
(package private)  int maxObjects
           
(package private)  int pageSize
           
(package private)  boolean quickie
           
(package private)  boolean readBlobs
           
(package private)  String releaseLevel
           
private static String RESOURCE
           
(package private)  String rootClass
           
(package private)  boolean showVersion
           
(package private)  String windchillHome
           
 
Constructor Summary
BlobCheckOpts()
           
 
Method Summary
 String getClassName()
           
 boolean getDebugMode()
           
 String getDirectoryName()
           
 boolean getExportBlobs()
           
 String getFileName()
           
 gnu.getopt.Getopt getGetopt()
           
 boolean getInitSuccess()
           
 int getMaxObjects()
           
protected abstract  String getMethodName()
           
protected abstract  String getOptions()
           
 int getPageSize()
           
 boolean getQuickOption()
           
 boolean getReadBlobs()
           
 String getReleaseLevel()
           
 boolean getShowVersion()
           
 String getWindchillHome()
           
protected  void init(String[] argv)
           
protected abstract  gnu.getopt.LongOpt[] initLongOpts()
           
protected  void parseOptions(String[] argv)
           
 void printDebugMessage(String msg)
           
 void printWarning(String key, Object[] args)
           
 void setExportBlobs(boolean value)
           
 void setInitSuccess(boolean init_success)
           
 void setShowVersion(boolean value)
           
protected  void showHelp()
           
protected  void showVersion()
           
protected  boolean validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVELOPER_MODE

private static boolean DEVELOPER_MODE

RESOURCE

private static final String RESOURCE

DEFAULT_FILE_NAME

private String DEFAULT_FILE_NAME

exportBlobs

boolean exportBlobs

readBlobs

boolean readBlobs

showVersion

boolean showVersion

quickie

boolean quickie

releaseLevel

String releaseLevel

directory

String directory

fileName

String fileName

rootClass

String rootClass

windchillHome

String windchillHome

pageSize

int pageSize

maxObjects

int maxObjects

debugMode

boolean debugMode

initSuccess

boolean initSuccess

getopt

gnu.getopt.Getopt getopt
Constructor Detail

BlobCheckOpts

public BlobCheckOpts()
Method Detail

init

protected void init(String[] argv)

parseOptions

protected void parseOptions(String[] argv)

showVersion

protected void showVersion()

showHelp

protected void showHelp()

validate

protected boolean validate()

getDirectoryName

public String getDirectoryName()

getFileName

public String getFileName()

getClassName

public String getClassName()

getWindchillHome

public String getWindchillHome()

getPageSize

public int getPageSize()

getMaxObjects

public int getMaxObjects()

getReleaseLevel

public String getReleaseLevel()

getDebugMode

public boolean getDebugMode()

getExportBlobs

public boolean getExportBlobs()

setExportBlobs

public void setExportBlobs(boolean value)

getReadBlobs

public boolean getReadBlobs()

getShowVersion

public boolean getShowVersion()

setShowVersion

public void setShowVersion(boolean value)

getInitSuccess

public boolean getInitSuccess()

getQuickOption

public boolean getQuickOption()

setInitSuccess

public void setInitSuccess(boolean init_success)

getGetopt

public gnu.getopt.Getopt getGetopt()

printDebugMessage

public void printDebugMessage(String msg)

printWarning

public void printWarning(String key,
                         Object[] args)

getMethodName

protected abstract String getMethodName()

getOptions

protected abstract String getOptions()

initLongOpts

protected abstract gnu.getopt.LongOpt[] initLongOpts()