Tabnine Logo
GenericJsonArrayParser
Code IndexAdd Tabnine to your IDE (free)

How to use
GenericJsonArrayParser
in
com.atlassian.jira.rest.client.internal.json

Best Java code snippets using com.atlassian.jira.rest.client.internal.json.GenericJsonArrayParser (Showing top 18 results out of 315)

origin: org.jboss.set/jboss-aphrodite-jira

public PageParser(final JsonObjectParser<V> valueParser) {
  this.valueParser = valueParser;
  this.valuesParser = GenericJsonArrayParser.create(valueParser);
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public Iterable<CimProject> parse(final JSONObject json) throws JSONException {
    return projectsParser.parse(json.getJSONArray("projects"));
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

public static <K> GenericJsonArrayParser<K> create(JsonObjectParser<K> jsonParser) {
  return new GenericJsonArrayParser<K>(jsonParser);
}
origin: com.atlassian.jira/jira-rest-java-client

  valuesToParse = allowedValues;
return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
origin: com.atlassian.jira/jira-rest-java-client-core

    valuesToParse = allowedValues;
  return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
} else {
origin: org.openengsb.wrapped/jira-rest-java-client-core

    valuesToParse = allowedValues;
  return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
} else {
origin: com.atlassian.jira/jira-rest-java-client-core

  @Override
  public Iterable<CimProject> parse(final JSONObject json) throws JSONException {
    return projectsParser.parse(json.getJSONArray("projects"));
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  public static JsonArrayParser<Iterable<Field>> createFieldsArrayParser() {
    return GenericJsonArrayParser.create(new FieldJsonParser());
  }
}
origin: com.atlassian.jira/jira-rest-java-client-p3

public static <K> GenericJsonArrayParser<K> create(JsonObjectParser<K> jsonParser) {
  return new GenericJsonArrayParser<K>(jsonParser);
}
origin: com.atlassian.jira/jira-rest-java-client-p3

  valuesToParse = allowedValues;
return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
origin: com.atlassian.jira/jira-rest-java-client

  @Override
  public Iterable<CimProject> parse(final JSONObject json) throws JSONException {
    return projectsParser.parse(json.getJSONArray("projects"));
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

  public static JsonArrayParser<Iterable<Field>> createFieldsArrayParser() {
    return GenericJsonArrayParser.create(new FieldJsonParser());
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

public static <K> GenericJsonArrayParser<K> create(JsonObjectParser<K> jsonParser) {
  return new GenericJsonArrayParser<K>(jsonParser);
}
origin: com.atlassian.jira/jira-rest-java-client-core

  @Override
  public SearchResult parse(JSONObject json) throws JSONException {
    final int startAt = json.getInt("startAt");
    final int maxResults = json.getInt("maxResults");
    final int total = json.getInt("total");
    final JSONArray issuesJsonArray = json.getJSONArray("issues");

    final Iterable<Issue> issues;
    if (issuesJsonArray.length() > 0) {
      final IssueJsonParser issueParser = new IssueJsonParser(json.getJSONObject("names"), json.getJSONObject("schema"));
      final GenericJsonArrayParser<Issue> issuesParser = GenericJsonArrayParser.create(issueParser);
      issues = issuesParser.parse(issuesJsonArray);
    } else {
      issues = Collections.emptyList();
    }
    return new SearchResult(startAt, maxResults, total, issues);
  }
}
origin: com.atlassian.jira/jira-rest-java-client-p3

  @Override
  public Iterable<CimProject> parse(final JSONObject json) throws JSONException {
    return projectsParser.parse(json.getJSONArray("projects"));
  }
}
origin: com.atlassian.jira/jira-rest-java-client

public static <K> GenericJsonArrayParser<K> create(JsonObjectParser<K> jsonParser) {
  return new GenericJsonArrayParser<K>(jsonParser);
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public SearchResult parse(JSONObject json) throws JSONException {
    final int startAt = json.getInt("startAt");
    final int maxResults = json.getInt("maxResults");
    final int total = json.getInt("total");
    final JSONArray issuesJsonArray = json.getJSONArray("issues");

    final Iterable<Issue> issues;
    if (issuesJsonArray.length() > 0) {
      final IssueJsonParser issueParser = new IssueJsonParser(json.getJSONObject("names"), json.getJSONObject("schema"));
      final GenericJsonArrayParser<Issue> issuesParser = GenericJsonArrayParser.create(issueParser);
      issues = issuesParser.parse(issuesJsonArray);
    } else {
      issues = Collections.emptyList();
    }
    return new SearchResult(startAt, maxResults, total, issues);
  }
}
origin: org.jboss.set/jboss-aphrodite-jira

  @Override
  public Iterable<Board> parse(final JSONObject json) throws JSONException {
    return valuesParser.parse(json.getJSONArray("values"));
  }
}
com.atlassian.jira.rest.client.internal.jsonGenericJsonArrayParser

Most used methods

  • create
  • parse
  • <init>

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFileChooser (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now