Descarga la aplicación para disfrutar aún más
Esta es una vista previa del archivo. Inicie sesión para ver el archivo original
Documentos Practica3 TP/.DS_Store __MACOSX/Documentos Practica3 TP/._.DS_Store Documentos Practica3 TP/Pr3/.classpath Documentos Practica3 TP/Pr3/.DS_Store __MACOSX/Documentos Practica3 TP/Pr3/._.DS_Store Documentos Practica3 TP/Pr3/.project Pr3 org.eclipse.jdt.core.javabuilder org.eclipse.jdt.core.javanature Documentos Practica3 TP/Pr3/.settings/org.eclipse.jdt.core.prefs eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.source=1.6 Documentos Practica3 TP/Pr3/bin/Controladores/Ayuda.class package Controladores; public synchronized class Ayuda implements Comandos { public void Ayuda(); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/Comandos.class package Controladores; public abstract interface Comandos { public abstract void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public abstract Comandos parsea(String[]); public abstract String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/Controlador.class package Controladores; public synchronized class Controlador { private java.util.Scanner sc; private Model.Jugadores.Jugador jugador1; private Model.Jugadores.Jugador jugador2; private Factorias.FactoriaJuegos factoria; private Model.Reglas.ReglasJuego reglas; private Model.Partida partida; private boolean salir; public void Controlador(Factorias.FactoriaJuegos, Model.Partida, java.util.Scanner); public Model.Reglas.ReglasJuego getReglasjuego(); public void setReglasJuego(Model.Reglas.ReglasJuego); public void setFactoria(Factorias.FactoriaJuegos); public void reset(Factorias.FactoriaJuegos); public void jugar(Factorias.FactoriaJuegos) throws Model.Exceptions.ErrorDeEjecucion; public void ponerJugador(Model.Enumerate.Ficha, String) throws Model.Exceptions.ErrorDeEjecucion; private Model.Jugadores.Jugador getjugador(); public void poner(); public void undo() throws Model.Exceptions.ErrorDeEjecucion; public void salir(); private String leerLineaDeComando(); private void menu(); public void run(); } Documentos Practica3 TP/Pr3/bin/Controladores/Deshacer.class package Controladores; public synchronized class Deshacer implements Comandos { public void Deshacer(); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/Factorias/FactoriaJuegoComplica.class package Controladores.Factorias; public synchronized class FactoriaJuegoComplica implements FactoriaJuegos { public void FactoriaJuegoComplica(); public Model.Reglas.ReglasJuego creaReglas(); public Model.Movimientos.Movimiento creaMovimiento(int, int, Model.Enumerate.Ficha); public Model.Jugadores.Jugador creaJugadorAleatorio(); public Model.Jugadores.Jugador creaJugadorHumano(java.util.Scanner); public int leerFila(java.util.Scanner); } Documentos Practica3 TP/Pr3/bin/Controladores/Factorias/FactoriaJuegoConecta4.class package Controladores.Factorias; public synchronized class FactoriaJuegoConecta4 implements FactoriaJuegos { public void FactoriaJuegoConecta4(); public Model.Reglas.ReglasJuego creaReglas(); public Model.Movimientos.Movimiento creaMovimiento(int, int, Model.Enumerate.Ficha); public Model.Jugadores.Jugador creaJugadorAleatorio(); public Model.Jugadores.Jugador creaJugadorHumano(java.util.Scanner); } Documentos Practica3 TP/Pr3/bin/Controladores/Factorias/FactoriaJuegoGravity.class package Controladores.Factorias; public synchronized class FactoriaJuegoGravity implements FactoriaJuegos { private int filas; private int columnas; public void FactoriaJuegoGravity(); public void FactoriaJuegoGravity(int, int); public int getFilas(); public int getColumnas(); public void setFilas(int); public void setColumnas(int); public Model.Reglas.ReglasJuego creaReglas(); public Model.Movimientos.Movimiento creaMovimiento(int, int, Model.Enumerate.Ficha); public Model.Jugadores.Jugador creaJugadorAleatorio(); public Model.Jugadores.Jugador creaJugadorHumano(java.util.Scanner); } Documentos Practica3 TP/Pr3/bin/Controladores/Factorias/FactoriaJuegos.class package Controladores.Factorias; public abstract interface FactoriaJuegos { public abstract Model.Reglas.ReglasJuego creaReglas(); public abstract Model.Movimientos.Movimiento creaMovimiento(int, int, Model.Enumerate.Ficha); public abstract Model.Jugadores.Jugador creaJugadorAleatorio(); public abstract Model.Jugadores.Jugador creaJugadorHumano(java.util.Scanner); } Documentos Practica3 TP/Pr3/bin/Controladores/Jugar.class package Controladores; public synchronized class Jugar implements Comandos { private Factorias.FactoriaJuegos factoria; public void Jugar(); public void Jugar(Factorias.FactoriaJuegos); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/ParserAyudaComandos.class package Controladores; public synchronized class ParserAyudaComandos { private static Comandos[] comandos; static void <clinit>(); public void ParserAyudaComandos(); public static Comandos parseaComando(String) throws Model.Exceptions.ErrorDeEjecucion; public static String ayudaComandos(); } Documentos Practica3 TP/Pr3/bin/Controladores/Poner.class package Controladores; public synchronized class Poner implements Comandos { public void Poner(); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/PonerJugador.class package Controladores; public synchronized class PonerJugador implements Comandos { private Model.Enumerate.Ficha color; private String tipoJugador; public void PonerJugador(); public void PonerJugador(String, Model.Enumerate.Ficha); public Model.Enumerate.Ficha getColor(); public String getTipoJugador(); public void setColor(Model.Enumerate.Ficha); public void setTipoJugador(String); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/Reiniciar.class package Controladores; public synchronized class Reiniciar implements Comandos { private Factorias.FactoriaJuegos factoria; public void Reiniciar(); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Controladores/Salir.class package Controladores; public synchronized class Salir implements Comandos { public void Salir(); public void execute(Controlador) throws Model.Exceptions.ErrorDeEjecucion; public Comandos parsea(String[]); public String textoAyuda(); } Documentos Practica3 TP/Pr3/bin/Main/Main$SetupConfigurator.class package Main; synchronized class Main$SetupConfigurator { private static Model.Enumerate.TipoJuego juego; private static String numFilas; private static String numColumnas; public void Main$SetupConfigurator(Model.Enumerate.TipoJuego, String, String); public Model.Enumerate.TipoJuego getJuego(); public String getNumFilas(); public String getNumColumnas(); } Documentos Practica3 TP/Pr3/bin/Main/Main.class package Main; public synchronized class Main { private static final String GET_HELP = Use -h|--help para mas detalle.; private static final String ERR_PARAM = Uso incorrecto: ; private static final String NO_GAME = Uso incorrecto: Juego ; private static final String MORE_PARAM = Uso incorrecto: Argumentos no entendidos: ; public void Main(); private static void showHelp(); private static Main$SetupConfigurator setupMode(org.apache.commons.cli.CommandLine, Model.Enumerate.TipoJuego); private static Main$SetupConfigurator optionSelector(String[]); private static void generaConecta4(); private static void generaComplica(); private static void generaGravity(); public static void main(String[]); } Documentos Practica3 TP/Pr3/bin/Model/.DS_Store Documentos Practica3 TP/Pr3/bin/Model/Enumerate/Ficha.class package Model.Enumerate; public final synchronized enum Ficha { public static final Ficha VACIA; public static final Ficha BLANCA; public static final Ficha NEGRA; static void <clinit>(); private void Ficha(String, int); public static Ficha[] values(); public static Ficha valueOf(String); } Documentos Practica3 TP/Pr3/bin/Model/Enumerate/TipoJuego.class package Model.Enumerate; public final synchronized enum TipoJuego { public static final TipoJuego COMPLICA; public static final TipoJuego CONECTA4; public static final TipoJuego GRAVITY; static void <clinit>(); private void TipoJuego(String, int); public static TipoJuego[] values(); public static TipoJuego valueOf(String); } Documentos Practica3 TP/Pr3/bin/Model/Exceptions/ColumnaIncorrecta.class package Model.Exceptions; public synchronized class ColumnaIncorrecta extends MovimientoInvalido { private static final long serialVersionUID = 1; public void ColumnaIncorrecta(int); } Documentos Practica3 TP/Pr3/bin/Model/Exceptions/ColumnaLlena.class package Model.Exceptions; public synchronized class ColumnaLlena extends MovimientoInvalido { private static final long serialVersionUID = 1; public void ColumnaLlena(int); } Documentos Practica3 TP/Pr3/bin/Model/Exceptions/DatosIncorrectos.class package Model.Exceptions; public synchronized class DatosIncorrectos extends MovimientoInvalido { private static final long serialVersionUID = 1; public void DatosIncorrectos(String); } Documentos Practica3 TP/Pr3/bin/Model/Exceptions/ErrorDeEjecucion.class package Model.Exceptions; public synchronized class ErrorDeEjecucion extends MovimientoInvalido { private static final long serialVersionUID = 1; public void ErrorDeEjecucion(String); } Documentos Practica3 TP/Pr3/bin/Model/Exceptions/FilaIncorrecta.class package Model.Exceptions; public synchronized class FilaIncorrecta extends MovimientoInvalido { private static final long serialVersionUID = 1; public void FilaIncorrecta(int); } Documentos Practica3 TP/Pr3/bin/Model/Exceptions/MovimientoInvalido.class package Model.Exceptions; public synchronized class MovimientoInvalido extends Exception { private static final long serialVersionUID = 1; public void MovimientoInvalido(String); } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/Jugador.class package Model.Jugadores; public abstract synchronized class Jugador { protected int fila; protected int columna; public void Jugador(); public int getFila(); public int getColumna(); public abstract void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); public Model.Movimientos.Movimiento getMovimiento(Controladores.Factorias.FactoriaJuegos, Model.Tablero, Model.Enumerate.Ficha) throws Model.Exceptions.DatosIncorrectos; } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/JugadorAleatorioComplica.class package Model.Jugadores; public synchronized class JugadorAleatorioComplica extends Jugador { public void JugadorAleatorioComplica(); public void setColumna(int); public void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/JugadorAleatorioConecta4.class package Model.Jugadores; public synchronized class JugadorAleatorioConecta4 extends Jugador { public void JugadorAleatorioConecta4(); public void setColumna(int); public void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/JugadorAleatorioGravity.class package Model.Jugadores; public synchronized class JugadorAleatorioGravity extends Jugador { public void JugadorAleatorioGravity(); public void setFila(int); public void setColumna(int); public void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/JugadorHumanoComplica.class package Model.Jugadores; public synchronized class JugadorHumanoComplica extends Jugador { private java.util.Scanner sc; public void JugadorHumanoComplica(java.util.Scanner); public void setColumna(int); public void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/JugadorHumanoConecta4.class package Model.Jugadores; public synchronized class JugadorHumanoConecta4 extends Jugador { private java.util.Scanner sc; public void JugadorHumanoConecta4(java.util.Scanner); public void setColumna(int); public void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); } Documentos Practica3 TP/Pr3/bin/Model/Jugadores/JugadorHumanoGravity.class package Model.Jugadores; public synchronized class JugadorHumanoGravity extends Jugador { private java.util.Scanner sc; public void JugadorHumanoGravity(java.util.Scanner); public void setFila(int); public void setColumna(int); public void obtenFilaColumna(Model.Tablero, Model.Enumerate.Ficha); public int leerColumna(java.util.Scanner); public int leerFila(java.util.Scanner); } Documentos Practica3 TP/Pr3/bin/Model/Movimientos/Movimiento.class package Model.Movimientos; public abstract synchronized class Movimiento { protected int fila; protected int columna; protected Model.Enumerate.Ficha color; public void Movimiento(int, Model.Enumerate.Ficha); public void Movimiento(int, int, Model.Enumerate.Ficha); public Model.Enumerate.Ficha getTurno(); public void setTurno(Model.Enumerate.Ficha); public int getFila(); public void setFila(int); public int getColumna(); public void setColumna(int); public abstract void ejecutaMovimiento(Model.Tablero) throws Model.Exceptions.ColumnaLlena, Model.Exceptions.FilaIncorrecta, Model.Exceptions.ColumnaIncorrecta, Model.Exceptions.ErrorDeEjecucion; public abstract void undo(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Movimientos/MovimientoComplica.class package Model.Movimientos; public synchronized class MovimientoComplica extends Movimiento { private Model.Enumerate.Ficha fichaExpulsada; public void MovimientoComplica(int, Model.Enumerate.Ficha); public Model.Enumerate.Ficha getFichaExpulsada(); public void setFichaExpulsada(Model.Enumerate.Ficha); private boolean columnaCorrecta(Model.Tablero); private int devuelveFilaLibre(int, Model.Tablero); private void bajarFichas(int, Model.Tablero); public void ejecutaMovimiento(Model.Tablero) throws Model.Exceptions.ColumnaIncorrecta; private void subirFichas(int, Model.Tablero); public void undo(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Movimientos/MovimientoConecta4.class package Model.Movimientos; public synchronized class MovimientoConecta4 extends Movimiento { public void MovimientoConecta4(int, Model.Enumerate.Ficha); private int devuelveFilaLibre(int, Model.Tablero); private boolean columnaCorrecta(Model.Tablero); private boolean columnaLlena(Model.Tablero); public void ejecutaMovimiento(Model.Tablero) throws Model.Exceptions.ColumnaLlena, Model.Exceptions.ColumnaIncorrecta; public void undo(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Movimientos/MovimientoGravity.class package Model.Movimientos; public synchronized class MovimientoGravity extends Movimiento { public void MovimientoGravity(int, int, Model.Enumerate.Ficha); private boolean columnaCorrecta(Model.Tablero); private boolean filaCorrecta(Model.Tablero); private void desplazaArriba(Model.Tablero); private void desplazarAbajo(Model.Tablero); private void desplazarDerecha(Model.Tablero); private void desplazarIzquierda(Model.Tablero); private void desplazarArribaDerecha(Model.Tablero); private void desplazarArribaIzquierda(Model.Tablero); private void desplazarAbajoDerecha(Model.Tablero); private void desplazarAbajoIzquierda(Model.Tablero); private void desplazaFicha(Model.Tablero); public void ejecutaMovimiento(Model.Tablero) throws Model.Exceptions.ColumnaLlena, Model.Exceptions.FilaIncorrecta, Model.Exceptions.ColumnaIncorrecta, Model.Exceptions.ErrorDeEjecucion; public void undo(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Partida.class package Model; public synchronized class Partida { private Tablero tablero; private Enumerate.Ficha turno; private boolean terminada; private Enumerate.Ficha ganador; private boolean tablas; private java.util.Stack movimientosStack; private Reglas.ReglasJuego reglas; public static final int MAX_UNDO = 10; public void Partida(Reglas.ReglasJuego); public Enumerate.Ficha getTurno(); private void setTurno(Enumerate.Ficha); public Enumerate.Ficha getGanador(); public void setGanador(Enumerate.Ficha); public void reset(Reglas.ReglasJuego); public boolean partidaEnTablas(); public boolean partidaTerminada(); public Movimientos.Movimiento getMovimiento(Controladores.Factorias.FactoriaJuegos, Jugadores.Jugador) throws Exceptions.DatosIncorrectos; public void ejecutaMovimiento(Movimientos.Movimiento) throws Exceptions.MovimientoInvalido; public void undo() throws Exceptions.ErrorDeEjecucion; public String indicarTurno(); public String escribeGanador(); public String toString(); } Documentos Practica3 TP/Pr3/bin/Model/Reglas/ReglasComplica.class package Model.Reglas; public synchronized class ReglasComplica extends ReglasJuego { public static final int FILAS = 7; public static final int COLUMNAS = 4; public void ReglasComplica(); public Model.Tablero iniciaTablero(); private boolean hayCuatroEnLineaBlancas(Model.Tablero); private boolean hayCuatroEnLineaNegras(Model.Tablero); public Model.Enumerate.Ficha hayGanador(int, int, Model.Enumerate.Ficha, Model.Tablero); public boolean tablas(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Reglas/ReglasConecta4.class package Model.Reglas; public synchronized class ReglasConecta4 extends ReglasJuego { public static final int FILAS = 6; public static final int COLUMNAS = 7; public void ReglasConecta4(); public Model.Tablero iniciaTablero(); public Model.Enumerate.Ficha hayGanador(int, int, Model.Enumerate.Ficha, Model.Tablero); public boolean tablas(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Reglas/ReglasGravity.class package Model.Reglas; public synchronized class ReglasGravity extends ReglasJuego { private int filas; private int columnas; public static final int FILAS = 10; public static final int COLUMNAS = 10; public void ReglasGravity(); public void ReglasGravity(int, int); public Model.Tablero iniciaTablero(); public Model.Enumerate.Ficha hayGanador(int, int, Model.Enumerate.Ficha, Model.Tablero); public boolean tablas(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Reglas/ReglasJuego.class package Model.Reglas; public abstract synchronized class ReglasJuego { protected int filas; protected int columnas; public void ReglasJuego(); public int getFilas(); public int getColumnas(); public void setFilas(int); public void setColumnas(int); public abstract Model.Tablero iniciaTablero(); public Model.Enumerate.Ficha jugadorInicial(); public Model.Enumerate.Ficha siguienteTurno(Model.Enumerate.Ficha); public abstract Model.Enumerate.Ficha hayGanador(int, int, Model.Enumerate.Ficha, Model.Tablero); public abstract boolean tablas(Model.Tablero); } Documentos Practica3 TP/Pr3/bin/Model/Reglas/ReglasJuegoCuatroEnLinea.class package Model.Reglas; public final synchronized class ReglasJuegoCuatroEnLinea { private static final int LINEA = 4; public void ReglasJuegoCuatroEnLinea(); private static boolean cuatroEnVertical(Model.Tablero, Model.Enumerate.Ficha, int, int); private static boolean cuatroEnHorizontal(Model.Tablero, Model.Enumerate.Ficha, int, int); private static boolean cuatroEnDiagonalADerecha(Model.Tablero, Model.Enumerate.Ficha, int, int); private static boolean cuatroEnDiagonalAIzquierda(Model.Tablero, Model.Enumerate.Ficha, int, int); public static boolean cuatroEnLinea(Model.Tablero, Model.Enumerate.Ficha, int, int); } Documentos Practica3 TP/Pr3/bin/Model/Tablero.class package Model; public synchronized class Tablero { private Enumerate.Ficha[][] tablero; private int ancho; private int alto; private int casillasOcupadas; public void Tablero(); public void Tablero(int, int); public int getAlto(); public int getAncho(); public void setAlto(int); public void setAncho(int); public int getCasillasOcupadas(); public void setCasillasOcupadas(int); public Enumerate.Ficha getFicha(int, int); public void setFicha(int, int, Enumerate.Ficha); public void reset(); public boolean columnaCorrecta(int); public boolean filaCorrecta(int); public boolean completo(); public String toString(); } Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/allclasses-frame.html All Classes AlreadySelectedException BasicParser CommandLine CommandLineParser GnuParser HelpFormatter MissingArgumentException MissingOptionException Option OptionBuilder OptionGroup Options ParseException Parser PatternOptionBuilder PosixParser TypeHandler UnrecognizedOptionException Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/allclasses-noframe.html All Classes AlreadySelectedException BasicParser CommandLine CommandLineParser GnuParser HelpFormatter MissingArgumentException MissingOptionException Option OptionBuilder OptionGroup Options ParseException Parser PatternOptionBuilder PosixParser TypeHandler UnrecognizedOptionException Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/constant-values.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Constant Field Values Contents org.apache.* org.apache.* org.apache.commons.cli.HelpFormatter public static final String DEFAULT_ARG_NAME "arg" public static final int DEFAULT_DESC_PAD 3 public static final int DEFAULT_LEFT_PAD 1 public static final String DEFAULT_LONG_OPT_PREFIX "--" public static final String DEFAULT_OPT_PREFIX "-" public static final String DEFAULT_SYNTAX_PREFIX "usage: " public static final int DEFAULT_WIDTH 74 org.apache.commons.cli.Option public static final int UNINITIALIZED -1 public static final int UNLIMITED_VALUES -2 Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/deprecated-list.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Deprecated API Contents Deprecated Fields Deprecated Methods Deprecated Fields org.apache.commons.cli.HelpFormatter.defaultArgName Scope will be made private for next major version - use get/setArgName methods instead. org.apache.commons.cli.HelpFormatter.defaultDescPad Scope will be made private for next major version - use get/setDescPadding methods instead. org.apache.commons.cli.HelpFormatter.defaultLeftPad Scope will be made private for next major version - use get/setLeftPadding methods instead. org.apache.commons.cli.HelpFormatter.defaultLongOptPrefix Scope will be made private for next major version - use get/setLongOptPrefix methods instead. org.apache.commons.cli.HelpFormatter.defaultNewLine Scope will be made private for next major version - use get/setNewLine methods instead. org.apache.commons.cli.HelpFormatter.defaultOptPrefix Scope will be made private for next major version - use get/setOptPrefix methods instead. org.apache.commons.cli.HelpFormatter.defaultSyntaxPrefix Scope will be made private for next major version - use get/setSyntaxPrefix methods instead. org.apache.commons.cli.HelpFormatter.defaultWidth Scope will be made private for next major version - use get/setWidth methods instead. Deprecated Methods org.apache.commons.cli.Option.addValue(String) org.apache.commons.cli.CommandLine.getOptionObject(String) due to System.err message. Instead use getParsedOptionValue(String) Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/help-doc.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes How This API Document Is Organized This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows. Package Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories: Interfaces (italic) Classes Enums Exceptions Errors Annotation Types Class/Interface Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions: Class inheritance diagram Direct Subclasses All Known Subinterfaces All Known Implementing Classes Class/interface declaration Class/interface description Nested Class Summary Field Summary Constructor Summary Method Summary Field Detail Constructor Detail Method Detail Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer. Annotation Type Each annotation type has its own separate page with the following sections: Annotation Type declaration Annotation Type description Required Element Summary Optional Element Summary Element Detail Enum Each enum has its own separate page with the following sections: Enum declaration Enum description Enum Constant Summary Enum Constant Detail Use Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar. Tree (Class Hierarchy) There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages. When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package. Deprecated API The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations. Index The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields. Prev/Next These links take you to the next or previous class, interface, package, or related page. Frames/No Frames These links show and hide the HTML frames. All pages are available with or without frames. Serialized Form Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. Constant Field Values The Constant Field Values page lists the static final fields and their values. This help file applies to API documentation generated using the standard doclet. Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/index-all.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes A B C D E F G H I M N O P R S T U W A addOption(Option) - Method in class org.apache.commons.cli.OptionGroup Add the specified Option to this group. addOption(String, boolean, String) - Method in class org.apache.commons.cli.Options Add an option that only contains a short-name. addOption(String, String, boolean, String) - Method in class org.apache.commons.cli.Options Add an option that contains a short-name and a long-name. addOption(Option) - Method in class org.apache.commons.cli.Options Adds an option instance addOptionGroup(OptionGroup) - Method in class org.apache.commons.cli.Options Add the specified option group. addValue(String) - Method in class org.apache.commons.cli.Option Deprecated. AlreadySelectedException - Exception in org.apache.commons.cli Thrown when more than one option in an option group has been provided. AlreadySelectedException(String) - Constructor for exception org.apache.commons.cli.AlreadySelectedException Construct a new AlreadySelectedException with the specified detail message. AlreadySelectedException(OptionGroup, Option) - Constructor for exception org.apache.commons.cli.AlreadySelectedException Construct a new AlreadySelectedException for the specified option group. B BasicParser - Class in org.apache.commons.cli The class BasicParser provides a very simple implementation of the flatten method. BasicParser() - Constructor for class org.apache.commons.cli.BasicParser burstToken(String, boolean) - Method in class org.apache.commons.cli.PosixParser Breaks token into its constituent parts using the following algorithm. C checkRequiredOptions() - Method in class org.apache.commons.cli.Parser Throws a MissingOptionException if all of the required options are not present. CLASS_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder Class class clone() - Method in class org.apache.commons.cli.Option A rather odd clone method - due to incorrect code in 1.0 it is public and in 1.1 rather than throwing a CloneNotSupportedException it throws a RuntimeException so as to maintain backwards compat at the API level. cmd - Variable in class org.apache.commons.cli.Parser commandline instance CommandLine - Class in org.apache.commons.cli Represents list of arguments parsed against a Options descriptor. CommandLineParser - Interface in org.apache.commons.cli A class that implements the CommandLineParser interface can parse a String array according to the Options specified and return a CommandLine. create(char) - Static method in class org.apache.commons.cli.OptionBuilder Create an Option using the current settings and with the specified Option char. create() - Static method in class org.apache.commons.cli.OptionBuilder Create an Option using the current settings create(String) - Static method in class org.apache.commons.cli.OptionBuilder Create an Option using the current settings and with the specified Option char. createClass(String) - Static method in class org.apache.commons.cli.TypeHandler Returns the class whose name is classname. createDate(String) - Static method in class org.apache.commons.cli.TypeHandler Returns the date represented by str. createFile(String) - Static method in class org.apache.commons.cli.TypeHandler Returns the File represented by str. createFiles(String) - Static method in class org.apache.commons.cli.TypeHandler Returns the File[] represented by str. createNumber(String) - Static method in class org.apache.commons.cli.TypeHandler Create a number from a String. createObject(String) - Static method in class org.apache.commons.cli.TypeHandler Create an Object from the classname and empty constructor. createPadding(int) - Method in class org.apache.commons.cli.HelpFormatter Return a String of padding of length len. createURL(String) - Static method in class org.apache.commons.cli.TypeHandler Returns the URL represented by str. createValue(String, Object) - Static method in class org.apache.commons.cli.TypeHandler Returns the Object of type obj with the value of str. createValue(String, Class) - Static method in class org.apache.commons.cli.TypeHandler Returns the Object of type clazz with the value of str. D DATE_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder Date class DEFAULT_ARG_NAME - Static variable in class org.apache.commons.cli.HelpFormatter default name for an argument DEFAULT_DESC_PAD - Static variable in class org.apache.commons.cli.HelpFormatter the number of characters of padding to be prefixed to each description line DEFAULT_LEFT_PAD - Static variable in class org.apache.commons.cli.HelpFormatter default padding to the left of each line DEFAULT_LONG_OPT_PREFIX - Static variable in class org.apache.commons.cli.HelpFormatter default prefix for long Option DEFAULT_OPT_PREFIX - Static variable in class org.apache.commons.cli.HelpFormatter default prefix for shortOpts DEFAULT_SYNTAX_PREFIX - Static variable in class org.apache.commons.cli.HelpFormatter the string to display at the beginning of the usage statement DEFAULT_WIDTH - Static variable in class org.apache.commons.cli.HelpFormatter default number of characters per line defaultArgName - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setArgName methods instead. defaultDescPad - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setDescPadding methods instead. defaultLeftPad - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setLeftPadding methods instead. defaultLongOptPrefix - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setLongOptPrefix methods instead. defaultNewLine - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setNewLine methods instead. defaultOptPrefix - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setOptPrefix methods instead. defaultSyntaxPrefix - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setSyntaxPrefix methods instead. defaultWidth - Variable in class org.apache.commons.cli.HelpFormatter Deprecated. Scope will be made private for next major version - use get/setWidth methods instead. E equals(Object) - Method in class org.apache.commons.cli.Option EXISTING_FILE_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder FileInputStream class F FILE_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder File class FILES_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder File array class findWrapPos(String, int, int) - Method in class org.apache.commons.cli.HelpFormatter Finds the next text wrap position after startPos for the text in text with the column width width. flatten(Options, String[], boolean) - Method in class org.apache.commons.cli.BasicParser A simple implementation of Parser's abstract flatten method. flatten(Options, String[], boolean) - Method in class org.apache.commons.cli.GnuParser This flatten method does so using the following rules: If an Option exists for the first character of the arguments entry AND an Option does not exist for the whole argument then add the first character as an option to the processed tokens list e.g. flatten(Options, String[], boolean) - Method in class org.apache.commons.cli.Parser Subclasses must implement this method to reduce the arguments that have been passed to the parse method. flatten(Options, String[], boolean) - Method in class org.apache.commons.cli.PosixParser An implementation of Parser's abstract flatten method. G getArgList() - Method in class org.apache.commons.cli.CommandLine Retrieve any left-over non-recognized options and arguments getArgName() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'argName'. getArgName() - Method in class org.apache.commons.cli.Option Gets the display name for the argument value. getArgs() - Method in class org.apache.commons.cli.CommandLine Retrieve any left-over non-recognized options and arguments getArgs() - Method in class org.apache.commons.cli.Option Returns the number of argument values this Option can take. getDescPadding() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'descPadding'. getDescription() - Method in class org.apache.commons.cli.Option Retrieve the self-documenting description of this Option getId() - Method in class org.apache.commons.cli.Option Returns the id of this Option. getLeftPadding() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'leftPadding'. getLongOpt() - Method in class org.apache.commons.cli.Option Retrieve the long name of this Option. getLongOptPrefix() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'longOptPrefix'. getMissingOptions() - Method in exception org.apache.commons.cli.MissingOptionException Return the list of options (as strings) missing in the command line parsed. getNames() - Method in class org.apache.commons.cli.OptionGroup getNewLine() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'newLine'. getOpt() - Method in class org.apache.commons.cli.Option Retrieve the name of this Option. getOption() - Method in exception org.apache.commons.cli.AlreadySelectedException Returns the option that was added to the group and triggered the exception. getOption() - Method in exception org.apache.commons.cli.MissingArgumentException Return the option requiring an argument that wasn't provided on the command line. getOption(String) - Method in class org.apache.commons.cli.Options Retrieve the Option matching the long or short name specified. getOption() - Method in exception org.apache.commons.cli.UnrecognizedOptionException Returns the unrecognized option. getOptionComparator() - Method in class org.apache.commons.cli.HelpFormatter Comparator used to sort the options when they output in help text Defaults to case-insensitive alphabetical sorting by option key getOptionGroup() - Method in exception org.apache.commons.cli.AlreadySelectedException Returns the option group where another option has been selected. getOptionGroup(Option) - Method in class org.apache.commons.cli.Options Returns the OptionGroup the opt belongs to. getOptionObject(String) - Method in class org.apache.commons.cli.CommandLine Deprecated. due to System.err message. Instead use getParsedOptionValue(String) getOptionObject(char) - Method in class org.apache.commons.cli.CommandLine Return the Object type of this Option. getOptionProperties(String) - Method in class org.apache.commons.cli.CommandLine Retrieve the map of values associated to the option. getOptions() - Method in class org.apache.commons.cli.CommandLine Returns an array of the processed Options. getOptions() - Method in class org.apache.commons.cli.OptionGroup getOptions() - Method in class org.apache.commons.cli.Options Retrieve a read-only list of options in this set getOptions() - Method in class org.apache.commons.cli.Parser getOptionValue(String) - Method in class org.apache.commons.cli.CommandLine Retrieve the argument, if any, of this option. getOptionValue(char) - Method in class org.apache.commons.cli.CommandLine Retrieve the argument, if any, of this option. getOptionValue(String, String) - Method in class org.apache.commons.cli.CommandLine Retrieve the argument, if any, of an option. getOptionValue(char, String) - Method in class org.apache.commons.cli.CommandLine Retrieve the argument, if any, of an option. getOptionValues(String) - Method in class org.apache.commons.cli.CommandLine Retrieves the array of values, if any, of an option. getOptionValues(char) - Method in class org.apache.commons.cli.CommandLine Retrieves the array of values, if any, of an option. getOptPrefix() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'optPrefix'. getParsedOptionValue(String) - Method in class org.apache.commons.cli.CommandLine Return a version of this Option converted to a particular type. getRequiredOptions() - Method in class org.apache.commons.cli.Options Returns the required options. getRequiredOptions() - Method in class org.apache.commons.cli.Parser getSelected() - Method in class org.apache.commons.cli.OptionGroup getSyntaxPrefix() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'syntaxPrefix'. getType() - Method in class org.apache.commons.cli.Option Retrieve the type of this Option. getValue() - Method in class org.apache.commons.cli.Option Returns the specified value of this Option or null if there is no value. getValue(int) - Method in class org.apache.commons.cli.Option Returns the specified value of this Option or null if there is no value. getValue(String) - Method in class org.apache.commons.cli.Option Returns the value/first value of this Option or the defaultValue if there is no value. getValueClass(char) - Static method in class org.apache.commons.cli.PatternOptionBuilder Retrieve the class that ch represents. getValues() - Method in class org.apache.commons.cli.Option Return the values of this Option as a String array or null if there are no values getValueSeparator() - Method in class org.apache.commons.cli.Option Returns the value separator character. getValuesList() - Method in class org.apache.commons.cli.Option getWidth() - Method in class org.apache.commons.cli.HelpFormatter Returns the 'width'. GnuParser - Class in org.apache.commons.cli The class GnuParser provides an implementation of the flatten method. GnuParser() - Constructor for class org.apache.commons.cli.GnuParser H hasArg() - Method in class org.apache.commons.cli.Option Query to see if this Option requires an argument hasArg() - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will require an argument value. hasArg(boolean) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will require an argument value if hasArg is true. hasArgName() - Method in class org.apache.commons.cli.Option Returns whether the display name for the argument value has been set. hasArgs() - Method in class org.apache.commons.cli.Option Query to see if this Option can take many values. hasArgs() - Static method in class org.apache.commons.cli.OptionBuilder The next Option created can have unlimited argument values. hasArgs(int) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created can have num argument values. hashCode() - Method in class org.apache.commons.cli.Option hasLongOpt() - Method in class org.apache.commons.cli.Option Query to see if this Option has a long name hasOption(String) - Method in class org.apache.commons.cli.CommandLine Query to see if an option has been set. hasOption(char) - Method in class org.apache.commons.cli.CommandLine Query to see if an option has been set. hasOption(String) - Method in class org.apache.commons.cli.Options Returns whether the named Option is a member of this Options. hasOptionalArg() - Method in class org.apache.commons.cli.Option hasOptionalArg() - Static method in class org.apache.commons.cli.OptionBuilder The next Option can have an optional argument. hasOptionalArgs() - Static method in class org.apache.commons.cli.OptionBuilder The next Option can have an unlimited number of optional arguments. hasOptionalArgs(int) - Static method in class org.apache.commons.cli.OptionBuilder The next Option can have the specified number of optional arguments. hasValueSeparator() - Method in class org.apache.commons.cli.Option Return whether this Option has specified a value separator. HelpFormatter - Class in org.apache.commons.cli A formatter of help messages for the current command line options HelpFormatter() - Constructor for class org.apache.commons.cli.HelpFormatter I isRequired() - Method in class org.apache.commons.cli.Option Query to see if this Option requires an argument isRequired() - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will be required. isRequired(boolean) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will be required if required is true. isRequired() - Method in class org.apache.commons.cli.OptionGroup Returns whether this option group is required. isValueCode(char) - Static method in class org.apache.commons.cli.PatternOptionBuilder Returns whether ch is a value code, i.e. iterator() - Method in class org.apache.commons.cli.CommandLine Returns an iterator over the Option members of CommandLine. M MissingArgumentException - Exception in org.apache.commons.cli Thrown when an option requiring an argument is not provided with an argument. MissingArgumentException(String) - Constructor for exception org.apache.commons.cli.MissingArgumentException Construct a new MissingArgumentException with the specified detail message. MissingArgumentException(Option) - Constructor for exception org.apache.commons.cli.MissingArgumentException Construct a new MissingArgumentException with the specified detail message. MissingOptionException - Exception in org.apache.commons.cli Thrown when a required option has not been provided. MissingOptionException(String) - Constructor for exception org.apache.commons.cli.MissingOptionException Construct a new MissingSelectedException with the specified detail message. MissingOptionException(List) - Constructor for exception org.apache.commons.cli.MissingOptionException Constructs a new MissingSelectedException with the specified list of missing options. N NUMBER_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder Number class O OBJECT_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder Object class Option - Class in org.apache.commons.cli Describes a single command-line option. Option(String, String) - Constructor for class org.apache.commons.cli.Option Creates an Option using the specified parameters. Option(String, boolean, String) - Constructor for class org.apache.commons.cli.Option Creates an Option using the specified parameters. Option(String, String, boolean, String) - Constructor for class org.apache.commons.cli.Option Creates an Option using the specified parameters. OptionBuilder - Class in org.apache.commons.cli OptionBuilder allows the user to create Options using descriptive methods. optionComparator - Variable in class org.apache.commons.cli.HelpFormatter Comparator used to sort the options when they output in help text Defaults to case-insensitive alphabetical sorting by option key OptionGroup - Class in org.apache.commons.cli A group of mutually exclusive options. OptionGroup() - Constructor for class org.apache.commons.cli.OptionGroup Options - Class in org.apache.commons.cli Main entry-point into the library. Options() - Constructor for class org.apache.commons.cli.Options org.apache.commons.cli - package org.apache.commons.cli Commons CLI 1.2 P parse(Options, String[]) - Method in interface org.apache.commons.cli.CommandLineParser Parse the arguments according to the specified options. parse(Options, String[], boolean) - Method in interface org.apache.commons.cli.CommandLineParser Parse the arguments according to the specified options. parse(Options, String[]) - Method in class org.apache.commons.cli.Parser Parses the specified arguments based on the specifed Options. parse(Options, String[], Properties) - Method in class org.apache.commons.cli.Parser Parse the arguments according to the specified options and properties. parse(Options, String[], boolean) - Method in class org.apache.commons.cli.Parser Parses the specified arguments based on the specifed Options. parse(Options, String[], Properties, boolean) - Method in class org.apache.commons.cli.Parser Parse the arguments according to the specified options and properties. ParseException - Exception in org.apache.commons.cli Base for Exceptions thrown during parsing of a command-line. ParseException(String) - Constructor for exception org.apache.commons.cli.ParseException Construct a new ParseException with the specified detail message. parsePattern(String) - Static method in class org.apache.commons.cli.PatternOptionBuilder Returns the Options instance represented by pattern. Parser - Class in org.apache.commons.cli Parser creates CommandLines. Parser() - Constructor for class org.apache.commons.cli.Parser PatternOptionBuilder - Class in org.apache.commons.cli Allows Options to be created from a single String. PatternOptionBuilder() - Constructor for class org.apache.commons.cli.PatternOptionBuilder PosixParser - Class in org.apache.commons.cli The class PosixParser provides an implementation of the flatten method. PosixParser() - Constructor for class org.apache.commons.cli.PosixParser printHelp(String, Options) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(String, Options, boolean) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(String, String, Options, String) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(String, String, Options, String, boolean) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(int, String, String, Options, String) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(int, String, String, Options, String, boolean) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(PrintWriter, int, String, String, Options, int, int, String) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printHelp(PrintWriter, int, String, String, Options, int, int, String, boolean) - Method in class org.apache.commons.cli.HelpFormatter Print the help for options with the specified command line syntax. printOptions(PrintWriter, int, Options, int, int) - Method in class org.apache.commons.cli.HelpFormatter Print the help for the specified Options to the specified writer, using the specified width, left padding and description padding. printUsage(PrintWriter, int, String, Options) - Method in class org.apache.commons.cli.HelpFormatter Prints the usage statement for the specified application. printUsage(PrintWriter, int, String) - Method in class org.apache.commons.cli.HelpFormatter Print the cmdLineSyntax to the specified writer, using the specified width. printWrapped(PrintWriter, int, String) - Method in class org.apache.commons.cli.HelpFormatter Print the specified text to the specified PrintWriter. printWrapped(PrintWriter, int, int, String) - Method in class org.apache.commons.cli.HelpFormatter Print the specified text to the specified PrintWriter. processArgs(Option, ListIterator) - Method in class org.apache.commons.cli.Parser Process the argument values for the specified Option opt using the values retrieved from the specified iterator iter. processOption(String, ListIterator) - Method in class org.apache.commons.cli.Parser Process the Option specified by arg using the values retrieved from the specfied iterator iter. processProperties(Properties) - Method in class org.apache.commons.cli.Parser Sets the values of Options using the values in properties. R renderOptions(StringBuffer, int, Options, int, int) - Method in class org.apache.commons.cli.HelpFormatter Render the specified Options and return the rendered Options in a StringBuffer. renderWrappedText(StringBuffer, int, int, String) - Method in class org.apache.commons.cli.HelpFormatter Render the specified text and return the rendered Options in a StringBuffer. rtrim(String) - Method in class org.apache.commons.cli.HelpFormatter Remove the trailing whitespace from the specified String. S setArgName(String) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'argName'. setArgName(String) - Method in class org.apache.commons.cli.Option Sets the display name for the argument value. setArgs(int) - Method in class org.apache.commons.cli.Option Sets the number of argument values this Option can take. setDescPadding(int) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'descPadding'. setDescription(String) - Method in class org.apache.commons.cli.Option Sets the self-documenting description of this Option setLeftPadding(int) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'leftPadding'. setLongOpt(String) - Method in class org.apache.commons.cli.Option Sets the long name of this Option. setLongOptPrefix(String) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'longOptPrefix'. setNewLine(String) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'newLine'. setOptionalArg(boolean) - Method in class org.apache.commons.cli.Option Sets whether this Option can have an optional argument. setOptionComparator(Comparator) - Method in class org.apache.commons.cli.HelpFormatter Set the comparator used to sort the options when they output in help text Passing in a null parameter will set the ordering to the default mode setOptions(Options) - Method in class org.apache.commons.cli.Parser setOptPrefix(String) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'optPrefix'. setRequired(boolean) - Method in class org.apache.commons.cli.Option Sets whether this Option is mandatory. setRequired(boolean) - Method in class org.apache.commons.cli.OptionGroup setSelected(Option) - Method in class org.apache.commons.cli.OptionGroup Set the selected option of this group to name. setSyntaxPrefix(String) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'syntaxPrefix'. setType(Object) - Method in class org.apache.commons.cli.Option Sets the type of this Option. setValueSeparator(char) - Method in class org.apache.commons.cli.Option Sets the value separator. setWidth(int) - Method in class org.apache.commons.cli.HelpFormatter Sets the 'width'. STRING_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder String class T toString() - Method in class org.apache.commons.cli.Option Dump state, suitable for debugging. toString() - Method in class org.apache.commons.cli.OptionGroup Returns the stringified version of this OptionGroup. toString() - Method in class org.apache.commons.cli.Options Dump state, suitable for debugging. TypeHandler - Class in org.apache.commons.cli This is a temporary implementation. TypeHandler() - Constructor for class org.apache.commons.cli.TypeHandler U UNINITIALIZED - Static variable in class org.apache.commons.cli.Option constant that specifies the number of argument values has not been specified UNLIMITED_VALUES - Static variable in class org.apache.commons.cli.Option constant that specifies the number of argument values is infinite UnrecognizedOptionException - Exception in org.apache.commons.cli Exception thrown during parsing signalling an unrecognized option was seen. UnrecognizedOptionException(String) - Constructor for exception org.apache.commons.cli.UnrecognizedOptionException Construct a new UnrecognizedArgumentException with the specified detail message. UnrecognizedOptionException(String, String) - Constructor for exception org.apache.commons.cli.UnrecognizedOptionException Construct a new UnrecognizedArgumentException with the specified option and detail message. URL_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder URL class W withArgName(String) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will have the specified argument value name. withDescription(String) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will have the specified description withLongOpt(String) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will have the following long option value. withType(Object) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created will have a value that will be an instance of type. withValueSeparator(char) - Static method in class org.apache.commons.cli.OptionBuilder The next Option created uses sep as a means to separate argument values. withValueSeparator() - Static method in class org.apache.commons.cli.OptionBuilder The next Option created uses '=' as a means to separate argument values. A B C D E F G H I M N O P R S T U W Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/index.html Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/options -classpath '/Users/hen/apache/commons-proper/cli-1.x/cli-1.2-RC7/target/classes' -encoding 'iso-8859-1' -protected -source '1.4' -sourcepath '/Users/hen/apache/commons-proper/cli-1.x/cli-1.2-RC7/src/java' -author -bottom 'Copyright © 2002-2009 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.' -charset 'ISO-8859-1' -d '/Users/hen/apache/commons-proper/cli-1.x/cli-1.2-RC7/target/site/apidocs' -doctitle 'Commons CLI 1.2 API' -link 'http://java.sun.com/javase/6/docs/api' -linksource -use -version -windowtitle 'Commons CLI 1.2 API' Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/AlreadySelectedException.html Package Class Use Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD org.apache.commons.cli Class AlreadySelectedException java.lang.Object java.lang.Throwable java.lang.Exception org.apache.commons.cli.ParseException org.apache.commons.cli.AlreadySelectedException All Implemented Interfaces: Serializable public class AlreadySelectedException extends ParseException Thrown when more than one option in an option group has been provided. Version: $Revision: 680644 $, $Date: 2008-07-29 01:13:48 -0700 (Tue, 29 Jul 2008) $ Author: John Keyes ( john at integralsource.com ) See Also: Serialized Form Constructor Summary AlreadySelectedException(OptionGroup group, Option option) Construct a new AlreadySelectedException for the specified option group. AlreadySelectedException(String message) Construct a new AlreadySelectedException with the specified detail message. Method Summary Option getOption() Returns the option that was added to the group and triggered the exception. OptionGroup getOptionGroup() Returns the option group where another option has been selected. Methods inherited from class java.lang.Throwable fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait Constructor Detail AlreadySelectedException public AlreadySelectedException(String message) Construct a new AlreadySelectedException with the specified detail message. Parameters: message - the detail message AlreadySelectedException public AlreadySelectedException(OptionGroup group, Option option) Construct a new AlreadySelectedException for the specified option group. Parameters: group - the option group already selected option - the option that triggered the exception Since: 1.2 Method Detail getOptionGroup public OptionGroup getOptionGroup() Returns the option group where another option has been selected. Returns: the related option group Since: 1.2 getOption public Option getOption() Returns the option that was added to the group and triggered the exception. Returns: the related option Since: 1.2 Package Class Use Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/BasicParser.html Package Class Use Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD org.apache.commons.cli Class BasicParser java.lang.Object org.apache.commons.cli.Parser org.apache.commons.cli.BasicParser All Implemented Interfaces: CommandLineParser public class BasicParser extends Parser The class BasicParser provides a very simple implementation of the flatten method. Version: $Revision: 680644 $, $Date: 2008-07-29 01:13:48 -0700 (Tue, 29 Jul 2008) $ Author: John Keyes (john at integralsource.com) Field Summary Fields inherited from class org.apache.commons.cli.Parser cmd Constructor Summary BasicParser() Method Summary protected String[] flatten(Options options, String[] arguments, boolean stopAtNonOption) A simple implementation of Parser's abstract flatten method. Methods inherited from class org.apache.commons.cli.Parser checkRequiredOptions, getOptions, getRequiredOptions, parse, parse, parse, parse, processArgs, processOption, processProperties, setOptions Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Constructor Detail BasicParser public BasicParser() Method Detail flatten protected String[] flatten(Options options, String[] arguments, boolean stopAtNonOption) A simple implementation of Parser's abstract flatten method. Note: options and stopAtNonOption are not used in this flatten method. Specified by: flatten in class Parser Parameters: options - The command line Options arguments - The command line arguments to be parsed stopAtNonOption - Specifies whether to stop flattening when an non option is found. Returns: The arguments String array. Package Class Use Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/AlreadySelectedException.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.AlreadySelectedException Uses of AlreadySelectedException in org.apache.commons.cli Methods in org.apache.commons.cli that throw AlreadySelectedException void OptionGroup.setSelected(Option option) Set the selected option of this group to name. Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/BasicParser.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.BasicParser No usage of org.apache.commons.cli.BasicParser Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/CommandLine.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.CommandLine Uses of CommandLine in org.apache.commons.cli Fields in org.apache.commons.cli declared as CommandLine protected CommandLine Parser.cmd commandline instance Methods in org.apache.commons.cli that return CommandLine CommandLine Parser.parse(Options options, String[] arguments) Parses the specified arguments based on the specifed Options. CommandLine CommandLineParser.parse(Options options, String[] arguments) Parse the arguments according to the specified options. CommandLine Parser.parse(Options options, String[] arguments, boolean stopAtNonOption) Parses the specified arguments based on the specifed Options. CommandLine CommandLineParser.parse(Options options, String[] arguments, boolean stopAtNonOption) Parse the arguments according to the specified options. CommandLine Parser.parse(Options options, String[] arguments, Properties properties) Parse the arguments according to the specified options and properties. CommandLine Parser.parse(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) Parse the arguments according to the specified options and properties. Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/CommandLineParser.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Interface org.apache.commons.cli.CommandLineParser Uses of CommandLineParser in org.apache.commons.cli Classes in org.apache.commons.cli that implement CommandLineParser class BasicParser The class BasicParser provides a very simple implementation of the flatten method. class GnuParser The class GnuParser provides an implementation of the flatten method. class Parser Parser creates CommandLines. class PosixParser The class PosixParser provides an implementation of the flatten method. Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/GnuParser.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.GnuParser No usage of org.apache.commons.cli.GnuParser Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/HelpFormatter.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.HelpFormatter No usage of org.apache.commons.cli.HelpFormatter Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/MissingArgumentException.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.MissingArgumentException No usage of org.apache.commons.cli.MissingArgumentException Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/MissingOptionException.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.MissingOptionException Uses of MissingOptionException in org.apache.commons.cli Methods in org.apache.commons.cli that throw MissingOptionException protected void Parser.checkRequiredOptions() Throws a MissingOptionException if all of the required options are not present. Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/Option.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.Option Uses of Option in org.apache.commons.cli Methods in org.apache.commons.cli that return Option static Option OptionBuilder.create() Create an Option using the current settings static Option OptionBuilder.create(char opt) Create an Option using the current settings and with the specified Option char. static Option OptionBuilder.create(String opt) Create an Option using the current settings and with the specified Option char. Option MissingArgumentException.getOption() Return the option requiring an argument that wasn't provided on the command line. Option AlreadySelectedException.getOption() Returns the option that was added to the group and triggered the exception. Option Options.getOption(String opt) Retrieve the Option matching the long or short name specified. Option[] CommandLine.getOptions() Returns an array of the processed Options. Methods in org.apache.commons.cli with parameters of type Option Options Options.addOption(Option opt) Adds an option instance OptionGroup OptionGroup.addOption(Option option) Add the specified Option to this group. OptionGroup Options.getOptionGroup(Option opt) Returns the OptionGroup the opt belongs to. void Parser.processArgs(Option opt, ListIterator iter) Process the argument values for the specified Option opt using the values retrieved from the specified iterator iter. void OptionGroup.setSelected(Option option) Set the selected option of this group to name. Constructors in org.apache.commons.cli with parameters of type Option AlreadySelectedException(OptionGroup group, Option option) Construct a new AlreadySelectedException for the specified option group. MissingArgumentException(Option option) Construct a new MissingArgumentException with the specified detail message. Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved. Documentos Practica3 TP/Pr3/lib/commons-cli-1.2/apidocs/org/apache/commons/cli/class-use/OptionBuilder.html Package Class Use Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES All Classes Uses of Class org.apache.commons.cli.OptionBuilder Uses of OptionBuilder in org.apache.commons.cli Methods in org.apache.commons.cli that return OptionBuilder static OptionBuilder OptionBuilder.hasArg() The next Option created will require an argument value. static OptionBuilder OptionBuilder.hasArg(boolean hasArg) The next Option created will require an argument value if hasArg is true. static OptionBuilder OptionBuilder.hasArgs() The next Option created can have unlimited argument values. static OptionBuilder OptionBuilder.hasArgs(int
Compartir