Class AceCommandArgs

java.lang.Object
cn.mapway.document.ui.client.component.ace.AceCommandArgs

public class AceCommandArgs extends Object
Ace command's argument could be either string or string-to-string map.
  • Constructor Details

    • AceCommandArgs

      public AceCommandArgs(Map<String,String> data)
      Create map argument. In case data is null map will be empty.
      Parameters:
      data - data
    • AceCommandArgs

      public AceCommandArgs(String value)
      Create text argument.
      Parameters:
      value - string
  • Method Details

    • with

      public AceCommandArgs with(String argKey, String argValue)
      Add key-value pair to map.
      Parameters:
      argKey - argKey
      argValue - argValue
      Returns:
      AceCommandArgs
    • getValue

      public Object getValue()
      Give inner value.
      Returns:
      string or map depending on used constructor