Class Commandline.Argument

  • All Implemented Interfaces:
    Arg
    Enclosing class:
    Commandline

    public static class Commandline.Argument
    extends java.lang.Object
    implements Arg
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean mask  
      private java.lang.String[] parts  
    • Constructor Summary

      Constructors 
      Constructor Description
      Argument()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String[] getParts()  
      boolean isMask()  
      void setFile​(java.io.File value)
      void setLine​(java.lang.String line)
      void setMask​(boolean mask)
      To mask the argument value when a command line ask to print his arguments.
      void setValue​(java.lang.String value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parts

        private java.lang.String[] parts
      • mask

        private boolean mask
    • Constructor Detail

      • Argument

        public Argument()
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        Specified by:
        setValue in interface Arg
        Parameters:
        value - Set the value.
      • setFile

        public void setFile​(java.io.File value)
        Specified by:
        setFile in interface Arg
        Parameters:
        value - The file to be set.
      • setMask

        public void setMask​(boolean mask)
        To mask the argument value when a command line ask to print his arguments.
        Specified by:
        setMask in interface Arg
        Parameters:
        mask - new state of the maks property
      • getParts

        private java.lang.String[] getParts()
        Returns:
        The parts.
      • isMask

        public boolean isMask()
        Returns:
        true/false