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