Package org.jibx.custom
Class CustomizationCommandLineBase.ArgList
- java.lang.Object
-
- org.jibx.custom.CustomizationCommandLineBase.ArgList
-
- Enclosing class:
- CustomizationCommandLineBase
protected static class CustomizationCommandLineBase.ArgList extends java.lang.Object
Wrapper class for command line argument list.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArgList(java.lang.String[] args)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
current()
Get current argument value.boolean
hasNext()
Check if another argument value is present.boolean
isValid()
Check if argument list valid.java.lang.String
next()
Get next argument value.void
setValid(boolean valid)
Set valid state.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Check if another argument value is present.- Returns:
true
if argument present,false
if all processed
-
current
public java.lang.String current()
Get current argument value.- Returns:
- argument, or
null
if none
-
next
public java.lang.String next()
Get next argument value. If this is called with no argument value available it sets the argument list invalid.- Returns:
- argument, or
null
if none
-
setValid
public void setValid(boolean valid)
Set valid state.- Parameters:
valid
-
-
isValid
public boolean isValid()
Check if argument list valid.- Returns:
true
if valid,false
if not
-
-