Class CustomizationCommandLineBase.ArgList

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

protected static class CustomizationCommandLineBase.ArgList extends Object
Wrapper class for command line argument list.
  • Field Details

    • m_offset

      private int m_offset
    • m_args

      private final String[] m_args
    • m_valid

      private boolean m_valid
  • Constructor Details

    • ArgList

      protected ArgList(String[] args)
      Constructor.
      Parameters:
      args -
  • Method Details

    • hasNext

      public boolean hasNext()
      Check if another argument value is present.
      Returns:
      true if argument present, false if all processed
    • current

      public String current()
      Get current argument value.
      Returns:
      argument, or null if none
    • next

      public 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