blob: 2a621e770192234c45263b245673a6419a66ea0c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.preferences;
/**
* Object used to store the look-up order for preference
* scope searching.
*
* @since 3.0
*/
public class LookupOrder {
private String qualifier;
private String key;
private String[] order;
LookupOrder(String qualifier, String key, String[] order) {
super();
if (qualifier == null || order == null)
throw new IllegalArgumentException();
for (int i = 0; i < order.length; i++)
if (order[i] == null)
throw new IllegalArgumentException();
this.qualifier = qualifier;
this.key = key;
this.order = order;
}
public String getQualifier() {
return qualifier;
}
public String getKey() {
return key;
}
public String[] getOrder() {
return order;
}
}