Class ArgumentProperties

java.lang.Object
org.nmap4j.core.flags.ArgumentProperties

public class ArgumentProperties extends Object
Instances of this class are used to manage the flags for a given execution.

Flags are ordered, so the order in which you add them is retained.

This class also manages hosts (included and excluded) as well, even though the hosts are not explicitly flagged the way other things are.

Hosts are not ordered when stored, as nmap is agnostic in this regard.

  • Constructor Details

    • ArgumentProperties

      public ArgumentProperties()
  • Method Details

    • addFlag

      public void addFlag(Flag f)
    • addFlag

      public void addFlag(Flag f, String value)
    • addFlag

      public void addFlag(String singleFlag)
    • addFlag

      public void addFlag(String flag, String arg)
    • replaceFlag

      public void replaceFlag(Flag f, String value)
    • removeFlag

      public void removeFlag(Flag f)
    • getFlagMap

      public LinkedHashMap<String,String> getFlagMap()
    • setFlagMap

      public void setFlagMap(LinkedHashMap<String,String> newMap)
    • getFlags

      public String getFlags()
    • addIncludedHost

      public void addIncludedHost(String host)
    • removeIncludedHost

      public void removeIncludedHost(String host)
    • getIncludedHostsAsString

      public String getIncludedHostsAsString()
    • getIncludedHosts

      public Set<String> getIncludedHosts()
    • addExcludedHost

      public void addExcludedHost(String host)
    • removeExcludedHost

      public void removeExcludedHost(String host)
    • getExcludeHost

      public Set<String> getExcludeHost()
    • getExcludedHostsAsString

      public String getExcludedHostsAsString()
    • clearFlags

      public void clearFlags()