1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.pde.internal.core.ischema; 12 13 /** 14 * Classes that implement this interface store a reference 15 * to a schema object defined elsewhere. 16 */ 17 public interface ISchemaObjectReference { 18 /** 19 * Returns a name of this reference. 20 * @return reference object name 21 */ 22 public String getName(); 23 /** 24 * Returns a schema object that is referenced by this object. 25 * @return referenced schema object 26 */ 27 public ISchemaObject getReferencedObject(); 28 /** 29 * Returns a real Java class of the referenced object. 30 * @return Java class of the referenced object. 31 */ 32 public Class getReferencedObjectClass(); 33 /** 34 * Associates this reference with a schema object. 35 * @param referencedObject associates this reference with the object it references 36 */ 37 public void setReferencedObject(ISchemaObject referencedObject); 38 } 39