001/* 002 * Minify Maven Plugin 003 * https://github.com/samaxes/minify-maven-plugin 004 * 005 * Copyright (c) 2009 samaxes.com 006 * 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 */ 019package com.samaxes.maven.minify.common; 020 021import java.util.Collections; 022import java.util.List; 023 024/** 025 * Maps a single bundle defined in {@link AggregationConfiguration}. 026 */ 027public class Aggregation { 028 029 /** 030 * Defines the aggregation type. 031 */ 032 public enum AggregationType { 033 css, js 034 } 035 036 private AggregationType type; 037 038 private String name; 039 040 private List<String> files = Collections.emptyList(); 041 042 /** 043 * Gets the type. 044 * 045 * @return the type 046 */ 047 public AggregationType getType() { 048 return type; 049 } 050 051 /** 052 * Sets the type. 053 * 054 * @param type the type to set 055 */ 056 public void setType(AggregationType type) { 057 this.type = type; 058 } 059 060 /** 061 * Gets the name. 062 * 063 * @return the name 064 */ 065 public String getName() { 066 return name; 067 } 068 069 /** 070 * Sets the name. 071 * 072 * @param name the name to set 073 */ 074 public void setName(String name) { 075 this.name = name; 076 } 077 078 /** 079 * Gets the files. 080 * 081 * @return the files 082 */ 083 public List<String> getFiles() { 084 return files; 085 } 086 087 /** 088 * Sets the files. 089 * 090 * @param files the files to set 091 */ 092 public void setFiles(List<String> files) { 093 this.files = files; 094 } 095}