KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > core > Verifier


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.core;
12  
13 import org.eclipse.core.runtime.*;
14
15 /**
16  * Convenience implementation of a verifier.
17  * <p>
18  * This class may be subclassed by clients.
19  * </p>
20  * <p>
21  * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
22  * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
23  * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
24  * (repeatedly) as the API evolves.
25  * </p>
26  * @see org.eclipse.update.core.IVerifier
27  * @since 2.0
28  */

29 public abstract class Verifier implements IVerifier {
30     
31     private IVerifier parent;
32
33     /**
34      * @see IVerifier#verify(IFeature, ContentReference, boolean, InstallMonitor)
35      */

36     public abstract IVerificationResult verify(
37         IFeature feature,
38         ContentReference reference,
39         boolean isFeatureVerification,
40         InstallMonitor monitor)
41         throws CoreException ;
42
43     /**
44      * @see IVerifier#verify(IFeature, ContentReference, boolean, InstallMonitor)
45      */

46     public void setParent(IVerifier parentVerifier){
47         if (this.parent==null){
48             this.parent = parentVerifier;
49         }
50     }
51     
52     /**
53      * Returns the parent verifier
54      *
55      * @return the parent verifier
56      * @since 2.0
57      */

58     public IVerifier getParent(){
59         return parent;
60     }
61
62 }
63
Popular Tags