org.jibx.custom
Class CustomizationCommandLineBase.ArgList

java.lang.Object
  extended by org.jibx.custom.CustomizationCommandLineBase.ArgList
Enclosing class:
CustomizationCommandLineBase

protected static class CustomizationCommandLineBase.ArgList
extends java.lang.Object

Wrapper class for command line argument list.


Field Summary
private  java.lang.String[] m_args
           
private  int m_offset
           
private  boolean m_valid
           
 
Constructor Summary
protected CustomizationCommandLineBase.ArgList(java.lang.String[] args)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_offset

private int m_offset

m_args

private final java.lang.String[] m_args

m_valid

private boolean m_valid
Constructor Detail

CustomizationCommandLineBase.ArgList

protected CustomizationCommandLineBase.ArgList(java.lang.String[] args)
Constructor.

Parameters:
args -
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


Project Web Site