Class CustomizationCommandLineBase.ArgList

  • Enclosing class:
    CustomizationCommandLineBase

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] m_args  
      private int m_offset  
      private boolean m_valid  
    • 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.
      • 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

      • ArgList

        protected 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