All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almworks.jira.structure.api2g.query.StructureQueryParser Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api2g.query;

import com.almworks.jira.structure.api.StructureException;
import org.jetbrains.annotations.NotNull;

/**
 * Parses a {@link StructureQuery structure query} expressed in the Structured JQL language. The syntax of 
 * the language is the same as of the corresponding argument of the {@code structure()} JQL function
 * bundled with the Structure plugin. See plugin documentation for more details on the syntax.
 * */
public interface StructureQueryParser {
  /** 
   * Parses {@code query} and returns the corresponding {@link StructureQuery}. The returned object will
   * yield {@code query} when {@link StructureQuery#getQueryString()} is called.
   * 
   * @throws NullPointerException if {@code query} is {@code null} 
   * @throws StructureException if the query is not well-formed; call {@link StructureException#getLocalizedMessage()} 
   *  or {@link StructureException#getLocalizedMessage(com.atlassian.crowd.embedded.api.User)} 
   *  to get a human-readable parse error message. 
   * */
  @NotNull
  StructureQuery parse(@NotNull String query) throws StructureException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy