What this is
This file is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn
Java by Example" TM.
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-2004 Sun
* Microsystems, Inc. All Rights Reserved.
*
*/
package org.netbeans.jmi.javamodel;
/**
* Resource class proxy interface.
* Class representing a metadata source (source or class file).
*
* Note: This type should not be subclassed or implemented by
* clients. It is generated from a MOF metamodel and automatically implemented
* by MDR (see mdr.netbeans.org)
*/
public interface ResourceClass extends javax.jmi.reflect.RefClass {
/**
* The default factory operation used to create an instance object.
* @return The created instance object.
*/
public Resource createResource();
/**
* Creates an instance object having attributes initialized by the passed
* values.
* @param name Name of this element.
* @param timestamp Timestamp of the resource.
* @param classifiers List of classifiers defined in this resource.
* @param imports List of imports declared in this resource.
* @param packageName Package associated with this resource (using package
* keyword).
* @param packageIdentifier
* @return The created instance object.
*/
public Resource createResource(java.lang.String name, long timestamp, java.util.List classifiers, java.util.List imports, java.lang.String packageName, org.netbeans.jmi.javamodel.MultipartId packageIdentifier);
/**
* Returns a resource of a given name. If the resource does not exist then
* it is created (if the create parameter is set to true) or null is returned.
* @param name Name of the resource to be resolved.
* @param create Indicates whether a new resource with a given name should
* be created if it cannot be found.
* @return Returns a resource of a given name. If the resource does not exist
* then it is created (if the create parameter is set to true) or null is
* returned.
*/
public org.netbeans.jmi.javamodel.Resource resolveResource(java.lang.String name, boolean create);
}
|