check-style

Provides checkstyle information for the project

Лицензия

Лицензия

Группа

Группа

com.pressassociation.partial-response
Идентификатор

Идентификатор

check-style
Последняя версия

Последняя версия

1
Дата

Дата

Тип

Тип

jar
Описание

Описание

check-style
Provides checkstyle information for the project
Ссылка на сайт

Ссылка на сайт

https://github.com/PressAssociation/partial-response
Система контроля версий

Система контроля версий

https://github.com/PressAssociation/partial-response

Скачать check-style

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.pressassociation.partial-response/check-style/ -->
<dependency>
    <groupId>com.pressassociation.partial-response</groupId>
    <artifactId>check-style</artifactId>
    <version>1</version>
</dependency>
// https://jarcasting.com/artifacts/com.pressassociation.partial-response/check-style/
implementation 'com.pressassociation.partial-response:check-style:1'
// https://jarcasting.com/artifacts/com.pressassociation.partial-response/check-style/
implementation ("com.pressassociation.partial-response:check-style:1")
'com.pressassociation.partial-response:check-style:jar:1'
<dependency org="com.pressassociation.partial-response" name="check-style" rev="1">
  <artifact name="check-style" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.pressassociation.partial-response', module='check-style', version='1')
)
libraryDependencies += "com.pressassociation.partial-response" % "check-style" % "1"
[com.pressassociation.partial-response/check-style "1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Partial Response

Build Status

This project provides a library to help with the processing and implementation of partial response in an API.

The core library consists of parsers, AST, visitors and matcher for working with a partial response value. Higher level functionality may be added over time including http filters for xml and json to post process your responses for inclusion in the partial response.

Usage

To use this in your Maven project simply include the dependency

<dependency>
  <groupId>com.pressassociation.partial-response</groupId>
  <artifactId>matcher</artifactId>
  <version>1.0</version>
</dependency>

This will give you the Matcher class which is the core concept for partial response. The Matcher gives you a way to parse and match against a partial response pattern.

Matcher matcher = Matcher.of("name,address,spouse(name,address),children/*");

// matches all of these Leafs
assertTrue(matcher.matches("/name"));
assertTrue(matcher.matches("/address"));
assertTrue(matcher.matches("/address/houseNumber"));
assertTrue(matcher.matches("/spouse/name"));
assertTrue(matcher.matches("/spouse/address"));
assertTrue(matcher.matches("/children"));
assertTrue(matcher.matches("/children/any/path"));

// doesn't match any of these
assertFalse(matcher.matches("/unknown"));
assertFalse(matcher.matches("/spouse/children"));
// Note: spouse as a leaf is not included, only certain sub properties are
assertFalse(matcher.matches("/spouse"));

Out of the box

This project consists of a number of sub-projects to cover different use cases for partial-response.

  • Matcher - contains the core pattern parsers and Matcher class. This is the low level functionality behind all partial response support
  • Jackson JSON Filter - Partial response filter for Jackson JSON serialisation.
  • JAX-RS Jackson JSON Filter - JAX-RS response filter for applying partial-response to JAX-RS based REST API responses.
com.pressassociation.partial-response

PA Media Group (formerly Press Association)

We have rebranded, please visit: https://github.com/pa-media-group

Версии библиотеки

Версия
1