Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ea17682eb57edce1ed0ac5b4cc596f16320d3560 (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
/*******************************************************************************
 * Copyright (c) 2007, 2008 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.equinox.internal.provisional.p2.ui.query;

import org.eclipse.equinox.internal.provisional.p2.query.*;

/**
 * Data class representing everything needed to run a query, including
 * the object to be queried, the query to use, and the query result.
 * 
 * @since 3.4
 */
public class ElementQueryDescriptor {

	public Query query;
	public Collector collector;
	public IQueryable queryable;

	public ElementQueryDescriptor(IQueryable queryable, Query query, Collector collector) {
		this.query = query;
		this.collector = collector;
		this.queryable = queryable;
	}

	public boolean isComplete() {
		return query != null && collector != null && queryable != null;
	}
}

Back to the top