2019-12-10 17:06:52 +01:00
|
|
|
package org.gcube.data.publishing.ckan2zenodo.model.parsing;
|
|
|
|
|
2021-03-08 17:12:28 +01:00
|
|
|
import java.util.ArrayList;
|
2020-07-06 15:50:51 +02:00
|
|
|
import java.util.Collections;
|
2019-12-10 17:06:52 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2021-03-08 17:12:28 +01:00
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
|
|
import javax.xml.bind.annotation.XmlElement;
|
2019-12-10 17:06:52 +01:00
|
|
|
|
2021-03-08 17:12:28 +01:00
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
@Data
|
|
|
|
@AllArgsConstructor
|
|
|
|
@NoArgsConstructor
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
2019-12-10 17:06:52 +01:00
|
|
|
public class ResourceFilter {
|
|
|
|
|
2020-07-06 15:50:51 +02:00
|
|
|
public static final ResourceFilter PASS_ALL=new ResourceFilter(Collections.singletonList(
|
|
|
|
new Filter(Collections.singletonList("$.resources[?(@.format)]"))));
|
|
|
|
|
2021-03-08 17:12:28 +01:00
|
|
|
@XmlElement(name="filter", required= false)
|
|
|
|
private List<Filter> filters=new ArrayList<Filter>();
|
2019-12-10 17:06:52 +01:00
|
|
|
|
|
|
|
}
|