1 /* 2 Copyright (C) 2020 - 2022 Alexander Kapitman 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package ru.akman.maven.plugins.jlink; 18 19 import java.util.List; 20 21 /** 22 * Compress option. 23 */ 24 public class Compress { 25 26 /** 27 * Compression level. 28 */ 29 private Compression compression = Compression.NO_COMPRESSION; 30 31 /** 32 * List of filters. 33 */ 34 private List<String> filters; 35 36 /** 37 * Get compression level. 38 * 39 * @return compression level 40 */ 41 public Compression getCompression() { 42 return this.compression; 43 } 44 45 /** 46 * Set compression level. 47 * 48 * @param compression compression level 49 */ 50 public void setCompression(final Compression compression) { 51 this.compression = compression; 52 } 53 54 /** 55 * Get list of filters. 56 * 57 * @return the list of filters 58 */ 59 public List<String> getFilters() { 60 return this.filters; 61 } 62 63 /** 64 * Set the list of filters. 65 * 66 * @param filters filter list 67 */ 68 public void setFilters(final List<String> filters) { 69 this.filters = filters; 70 } 71 72 }