Skip to main content
summaryrefslogtreecommitdiffstats
blob: 19fa696441ed056c07ac67ada3878484eba32a4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2001, 2007 Oracle Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Oracle Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsf.core.internal;

import org.osgi.framework.Version;

/**
 * A value object the describes the current and expected state of the JSF Library
 * Registry
 * 
 * @author cbateman
 *
 */
final class JSFRegistryVersionInfo 
{
    private Version     _curVersion;        // the version of the current registry on disk
    private Version     _expectedVersion;   // the expected or required version of the registry
    
    JSFRegistryVersionInfo(Version oldVersion, Version expectedVersion) 
    {
        super();
        _curVersion = oldVersion;
        _expectedVersion = expectedVersion;
    }

    /**
     * @return the version of the registry found in the current workspace
     */
    public Version getCurVersion() {
        return _curVersion;
    }

    /**
     * @return the version of the registry that is expected
     */
    public Version getExpectedVersion() {
        return _expectedVersion;
    }
}

Back to the top