Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cvebrowser.util
Class CommandLine  view CommandLine download CommandLine.java

java.lang.Object
  extended bycvebrowser.util.CommandLine

public final class CommandLine
extends java.lang.Object

CommandLine - helper class used to process command line parameters

Version:
0.2 - 10/02/2003

Field Summary
private static java.util.ResourceBundle _bundle
           
static java.lang.String DEFAULT_COUNTRY
          Default country to use on the command line applications
static java.lang.String DEFAULT_LANGUAJE
          Default languaje to use on the command line applications
 
Constructor Summary
CommandLine()
           
 
Method Summary
static boolean checkAllTheParameters(int currentArgCount_, int expectedParams_, boolean exceptionOnError_)
          Validate if the required number of arguments is present.
 java.lang.Object clone()
          Make this class uncloneable.
private  void readObject(java.io.ObjectInputStream in_)
          Make this class undeserializeable.
static void setDefaultLanguaje(java.lang.String languaje_, java.lang.String country_)
          Sets the default languaje for the given JVM at runtime.
private  void writeObject(java.io.ObjectOutputStream out_)
          Make this class unserializable.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_bundle

private static final java.util.ResourceBundle _bundle

DEFAULT_LANGUAJE

public static final java.lang.String DEFAULT_LANGUAJE
Default languaje to use on the command line applications

See Also:
Constant Field Values

DEFAULT_COUNTRY

public static final java.lang.String DEFAULT_COUNTRY
Default country to use on the command line applications

See Also:
Constant Field Values
Constructor Detail

CommandLine

public CommandLine()
Method Detail

checkAllTheParameters

public static boolean checkAllTheParameters(int currentArgCount_,
                                            int expectedParams_,
                                            boolean exceptionOnError_)
                                     throws java.lang.IllegalArgumentException
Validate if the required number of arguments is present. For that
  • Provide the current number of required arguments
  • The expected number of arguments.
Probably this method will be only usefull if all the arguments are required.

Since:
0.1

setDefaultLanguaje

public static void setDefaultLanguaje(java.lang.String languaje_,
                                      java.lang.String country_)
Sets the default languaje for the given JVM at runtime.

Since:
0.1

clone

public final java.lang.Object clone()
                             throws java.lang.CloneNotSupportedException
Make this class uncloneable. Anyone who wants to use this class must use the constructor.


writeObject

private final void writeObject(java.io.ObjectOutputStream out_)
                        throws java.io.IOException
Make this class unserializable. Any attempt to serialize will throw an exception.


readObject

private final void readObject(java.io.ObjectInputStream in_)
                       throws java.io.IOException
Make this class undeserializeable. Throw an exception if this method is ever called.