blob: b7b54e93a1de6c3420162a5f5781c6e032cc96b7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2006 IBM 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.boot;
import org.eclipse.core.boot.IPlatformConfiguration.ISitePolicy;
import org.eclipse.update.configurator.IPlatformConfiguration;
public class SitePolicy implements ISitePolicy {
private IPlatformConfiguration.ISitePolicy newPolicy;
public SitePolicy(IPlatformConfiguration.ISitePolicy policy) {
newPolicy = policy;
}
public int getType() {
return newPolicy.getType();
}
public String[] getList() {
return newPolicy.getList();
}
public void setList(String[] list) {
newPolicy.setList(list);
}
public IPlatformConfiguration.ISitePolicy getNewPolicy() {
return newPolicy;
}
public boolean equals(Object o) {
if (o instanceof SitePolicy)
return newPolicy.equals(((SitePolicy) o).newPolicy);
return false;
}
public int hashCode() {
return newPolicy.hashCode();
}
}