588
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
package com.nokia.helium.sysdef.ant.types;
|
|
18 |
|
|
19 |
import java.util.ArrayList;
|
|
20 |
import java.util.List;
|
|
21 |
|
|
22 |
import org.apache.tools.ant.types.DataType;
|
|
23 |
|
|
24 |
/**
|
|
25 |
* This Ant type defines a set of system definition
|
|
26 |
* filters.
|
628
|
27 |
* @ant.type name="sysdefFilterSet" category="Sysdef"
|
588
|
28 |
*/
|
|
29 |
public class FilterSet extends DataType {
|
|
30 |
private List<Filter> filters = new ArrayList<Filter>();
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Create a new nested filter.
|
|
34 |
*/
|
628
|
35 |
public SysdefFilter createFilter() {
|
|
36 |
SysdefFilter filter = new SysdefFilter();
|
588
|
37 |
filters.add(filter);
|
|
38 |
return filter;
|
|
39 |
}
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Get the list of filter
|
|
43 |
* @return a list of filters
|
|
44 |
*/
|
|
45 |
public List<Filter> getFilters() {
|
|
46 |
return filters;
|
|
47 |
}
|
628
|
48 |
|
|
49 |
/**
|
|
50 |
* Create a config filter.
|
|
51 |
* @return a config filter.
|
|
52 |
*/
|
|
53 |
public SysdefConfig createConfig() {
|
|
54 |
SysdefConfig filter = new SysdefConfig();
|
|
55 |
filters.add(filter);
|
|
56 |
return filter;
|
|
57 |
}
|
588
|
58 |
|
|
59 |
}
|