de.java2html.commandline
Class CommandlineArguments

java.lang.Object
  extended by de.java2html.commandline.CommandlineArguments

public class CommandlineArguments
extends java.lang.Object

Author:
Markus Gebhard

Constructor Summary
CommandlineArguments(java.lang.String[] args)
           
 
Method Summary
 void assertContainsNoUnsupportedFlags(java.lang.String[] supportedFlagNames)
           
 void assertContainsNoUnsupportedParameters(java.lang.String[] supportedParameterNames)
           
 int getParameterPositiveIntValue(java.lang.String parameterName, int defaultValue)
           
 java.lang.String getParameterStringValue(java.lang.String parameterName)
           
 java.lang.String getParameterStringValue(java.lang.String parameterName, java.lang.String defaultValue)
           
 java.lang.String getRequiredParameterStringValue(java.lang.String parameterName)
           
 boolean isFlagSet(java.lang.String flagName)
           
 boolean isParameterSet(java.lang.String flagName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandlineArguments

public CommandlineArguments(java.lang.String[] args)
                     throws IllegalCommandlineParametersException
Throws:
IllegalCommandlineParametersException
Method Detail

getParameterStringValue

public java.lang.String getParameterStringValue(java.lang.String parameterName)

getParameterStringValue

public java.lang.String getParameterStringValue(java.lang.String parameterName,
                                                java.lang.String defaultValue)

getParameterPositiveIntValue

public int getParameterPositiveIntValue(java.lang.String parameterName,
                                        int defaultValue)
                                 throws IllegalCommandlineParametersException
Throws:
IllegalCommandlineParametersException

isFlagSet

public boolean isFlagSet(java.lang.String flagName)

isParameterSet

public boolean isParameterSet(java.lang.String flagName)

getRequiredParameterStringValue

public java.lang.String getRequiredParameterStringValue(java.lang.String parameterName)
                                                 throws IllegalCommandlineParametersException
Throws:
IllegalCommandlineParametersException

assertContainsNoUnsupportedFlags

public void assertContainsNoUnsupportedFlags(java.lang.String[] supportedFlagNames)
                                      throws IllegalCommandlineParametersException
Throws:
IllegalCommandlineParametersException

assertContainsNoUnsupportedParameters

public void assertContainsNoUnsupportedParameters(java.lang.String[] supportedParameterNames)
                                           throws IllegalCommandlineParametersException
Throws:
IllegalCommandlineParametersException


Copyright 2003 - 2006