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.core.plugin;
11:
12: /**
13: * This factory should be used to create
14: * instances of the extensions model objects.
15: *
16: * @since 3.0
17: */
18: public interface IExtensionsModelFactory {
19: /**
20: * Creates a new attribute instance for the
21: * provided element.
22: *
23: * @param element the parent element
24: * @return the new attribute instance
25: */
26: IPluginAttribute createAttribute(IPluginElement element);
27:
28: /**
29: * Creates a new element instance for the
30: * provided parent.
31: *
32: * @param parent the parent element
33: * @return the new element instance
34: */
35: IPluginElement createElement(IPluginObject parent);
36:
37: /**
38: * Creates a new extension instance.
39: * @return the new extension instance
40: */
41: IPluginExtension createExtension();
42:
43: /**
44: * Creates a new extension point instance
45: *
46: * @return a new extension point
47: */
48: IPluginExtensionPoint createExtensionPoint();
49: }
|