|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.api.mdr; import javax.jmi.reflect.*; import org.netbeans.api.mdr.events.MDRChangeSource; /** Interface for accessing content of a metadata repository. * * @author Martin Matula * @version 0.4 */ public interface MDRepository extends MDRChangeSource { /** Instantiates MOF Model package. * @param substName name (unique within the repository) for the new MOF package extent * @throws CreationFailedException instantiation of the package failed (e.g. if an extent with a given name already exists) * @return reference to the created package extent */ public RefPackage createExtent(String substName) throws CreationFailedException; /** Instantiates given package. * If the package that has to be instantiated clusters some other packages, these clustered packages will be instantiated * automatically but they will be not associated with any names so they will not be accessible directly. If the instantiated package will be deleted, * the automatically created extents will also be deleted (if there are no other references to them). * @param substName name (unique within the repository) for the new package extent * @param metaPackage reference to the package that should be instantiated * @throws CreationFailedException instantiation of the package failed (e.g. if an extent with a given name already exists) * @return reference to the created extent */ public RefPackage createExtent(String substName, RefObject metaPackage) throws CreationFailedException; /** Instantiates given package. * If the package that is to be instantiated clusters some other packages, repository will use a corresponding existing package extent passed * in existingExtents parameter for clustering. If an instance of some particular package cannot be found in existingExtents paramter, it * will be automatically created (this instance will not have any name and thus it won't be accessible directly; * once none of existing extents will cluster it, it should be deleted automatically). * @param substName name (unique within the repository) for the new package extent * @param metaPackage reference to the package that should be instantiated * @param existingInstances existing package extents that will be used instead of creating a new extent if a package is clustered * @throws CreationFailedException instantiation of the package failed (e.g. if an extent with a given name already exists) * @return reference to the created extent */ public RefPackage createExtent(String substName, RefObject metaPackage, RefPackage existingInstances[]) throws CreationFailedException; /** Returns reference to a package extent of a given name. * @param name name of the package extent to be returned * @return reference to the package extent (returns null if extent of a given name was not found) */ public RefPackage getExtent(String name); /** Returns names for all named package extents in the repository. * @return Array of extent names. */ public String[] getExtentNames(); /** * Returns the object with the given MOF ID. * * @param mofId the MOF ID of the object to be returned * @return the object with the given MOF ID or |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.