Class Option.Query

java.lang.Object
org.proto4j.swing.annotation.Option.Query
All Implemented Interfaces:
java.util.function.Supplier<java.lang.String>
Enclosing class:
Option

public static final class Option.Query
extends java.lang.Object
implements java.util.function.Supplier<java.lang.String>
A class interpreting an option string and returning a qualified String as a result.
Since:
1.1.0
See Also:
Option
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static char indicator
    The query string indicator, which is currently defined to be @.
    static char separator
    The currently defined query separator that marks the start for the query argument.
  • Constructor Summary

    Constructors 
    Constructor Description
    Query​(java.lang.String data, java.lang.Object component)
    Creates a new Option.Query object and tries to parse the given query string.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String get()
    Fetches a result.
    static boolean isQuery​(java.lang.String text)  

    Methods inherited from class java.lang.Object

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

    • indicator

      public static final char indicator
      The query string indicator, which is currently defined to be @.
      Since:
      1.1.0
      See Also:
      Constant Field Values
    • separator

      public static final char separator
      The currently defined query separator that marks the start for the query argument.
      Since:
      1.1.0
      See Also:
      Constant Field Values
  • Constructor Details

    • Query

      public Query​(java.lang.String data, java.lang.Object component)
      Creates a new Option.Query object and tries to parse the given query string.
      Parameters:
      data - the statement to parse
      component - the referenced component
  • Method Details

    • isQuery

      public static boolean isQuery​(java.lang.String text)
    • get

      public java.lang.String get()
      Fetches a result.
      Specified by:
      get in interface java.util.function.Supplier<java.lang.String>
      Returns:
      a result