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.ObjectWrapper class for command line argument list.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedArgList(java.lang.String[] args)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcurrent()Get current argument value.booleanhasNext()Check if another argument value is present.booleanisValid()Check if argument list valid.java.lang.Stringnext()Get next argument value.voidsetValid(boolean valid)Set valid state.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Check if another argument value is present.- Returns:
trueif argument present,falseif all processed
-
current
public java.lang.String current()
Get current argument value.- Returns:
- argument, or
nullif 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
nullif none
-
setValid
public void setValid(boolean valid)
Set valid state.- Parameters:
valid-
-
isValid
public boolean isValid()
Check if argument list valid.- Returns:
trueif valid,falseif not
-
-