KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > UpdateCheck


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/
5  * http://developer.berlios.de/projects/izpack/
6  *
7  * Copyright 2001 Johannes Lehtinen
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package com.izforge.izpack;
23
24 import java.io.Serializable JavaDoc;
25 import java.util.ArrayList JavaDoc;
26
27 /**
28  * Encloses information about an update check.
29  *
30  * @author Tino Schwarze <tino.schwarze@community4you.de>
31  */

32 public class UpdateCheck implements Serializable JavaDoc
33 {
34
35     static final long serialVersionUID = -3721254065037691999L;
36
37     /**
38      * ant-fileset-like list of include patterns, based on INSTALL_PATH if relative
39      */

40     public ArrayList JavaDoc includesList = null;
41
42     /**
43      * ant-fileset-like list of exclude patterns, based on INSTALL_PATH if relative
44      */

45     public ArrayList JavaDoc excludesList = null;
46
47     /** Whether pattern matching is performed case-sensitive */
48     boolean caseSensitive = true;
49
50     /** Constructs a new uninitialized instance. */
51     public UpdateCheck()
52     {
53     }
54
55     /**
56      * Constructs and initializes a new instance.
57      *
58      * @param includes The patterns to include in the check.
59      * @param excludes The patterns to exclude from the check.
60      */

61     public UpdateCheck(ArrayList JavaDoc includes, ArrayList JavaDoc excludes)
62     {
63         this.includesList = includes;
64         this.excludesList = excludes;
65     }
66
67     /**
68      * Constructs and initializes a new instance.
69      *
70      * @param includes The patterns to include in the check.
71      * @param excludes The patterns to exclude from the check.
72      * @param casesensitive If "yes", matches are performed case sensitive.
73      */

74     public UpdateCheck(ArrayList JavaDoc includes, ArrayList JavaDoc excludes, String JavaDoc casesensitive)
75     {
76         this.includesList = includes;
77         this.excludesList = excludes;
78         this.caseSensitive = ((casesensitive != null) && "yes".equalsIgnoreCase(casesensitive));
79     }
80
81 }
82
Popular Tags