blob: a333209790ccf4abb5bb6e1433feac2e3300cec3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.ti.goals;
public abstract class ItemReference {
public final static int ACCURATE = 0;
public final static int POSSIBLE = 1;
private final int accuracy;
private final String name;
private final String parentModelKey;
private final PossiblePosition position;
public ItemReference(String name, String parentModelKey,
PossiblePosition pos) {
super();
this.name = name;
this.parentModelKey = parentModelKey;
position = pos;
accuracy = 0;
}
public ItemReference(String name, String parentModelKey,
PossiblePosition pos, int accuracy) {
super();
this.name = name;
this.parentModelKey = parentModelKey;
position = pos;
this.accuracy = accuracy;
}
public int getAccuracy() {
return accuracy;
}
public String getName() {
return name;
}
public String getParentModelKey() {
return parentModelKey;
}
public PossiblePosition getPosition() {
return position;
}
}