|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.util.CommandModel
public class CommandModel
A model of a command line. The expected command line syntax is described by, and this model is created by, an instance of CommandParser.
| Method Summary | ||
|---|---|---|
CommandParser |
getParser()Gets the parser which defines this model. |
|
java.lang.Object |
getValue(java.lang.String name)Gets the value of a parameter or option, or null if absent. |
|
int |
getValue(java.lang.String name, int defaultValue)Gets the int value of a parameter or option, or a default value if absent. |
|
java.lang.String |
getValue(java.lang.String name, java.lang.String defaultValue)Gets the String value of a parameter or option, or a default value if absent. |
|
|
getValue(java.lang.String name, T defaultValue)Gets the value of a parameter or option, or a default value if absent. |
|
boolean |
isAbsent(java.lang.String name)Gets whether a parameter or option is absent. |
|
boolean |
isPresent(java.lang.String name)Gets whether a parameter or option is present. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public CommandParser getParser()
public java.lang.Object getValue(java.lang.String name)
name - The canonical name of the parameter or option.java.lang.IllegalArgumentException - if the name is not defined.
public <T> T getValue(java.lang.String name,
T defaultValue)
name - The canonical name of the value or option.defaultValue - The default value.java.lang.IllegalArgumentException - if the name is not defined.
public int getValue(java.lang.String name,
int defaultValue)
name - The canonical name of the value or option.defaultValue - The default value.java.lang.IllegalArgumentException - if the name is not defined.
public java.lang.String getValue(java.lang.String name,
java.lang.String defaultValue)
name - The canonical name of the value or option.defaultValue - The default value.java.lang.IllegalArgumentException - if the name is not defined.public boolean isAbsent(java.lang.String name)
name - The canonical name of the value or option.java.lang.IllegalArgumentException - if the name is not defined.public boolean isPresent(java.lang.String name)
name - The canonical name of the value or option.java.lang.IllegalArgumentException - if the name is not defined.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||