KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > jmi > javamodel > JavaClass


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.jmi.javamodel;
21
22 /**
23  * Class object instance interface.
24  * Class representing a Java class and interface.
25  *
26  * <p><em><strong>Note:</strong> This type should not be subclassed or implemented
27  * by clients. It is generated from a MOF metamodel and automatically implemented
28  * by MDR (see <a HREF="http://mdr.netbeans.org/">mdr.netbeans.org</a>).</em></p>
29  */

30 public interface JavaClass extends org.netbeans.jmi.javamodel.Statement, org.netbeans.jmi.javamodel.Feature, org.netbeans.jmi.javamodel.ClassDefinition, org.netbeans.jmi.javamodel.GenericElement {
31     /**
32      * @param recursively
33      * @return
34      */

35     public java.util.Collection JavaDoc findSubTypes(boolean recursively);
36     /**
37      * Returns the value of attribute isInterface.
38      * Derived attribute (from modifiers) indicating whether this instance represents
39      * a Java interface or a Java class.
40      * @return Value of attribute isInterface.
41      */

42     public boolean isInterface();
43     /**
44      * Sets the value of isInterface attribute. See {@link #isInterface} for description
45      * on the attribute.
46      * @param newValue New value to be set.
47      */

48     public void setInterface(boolean newValue);
49     /**
50      * Returns the value of attribute simpleName.
51      * Derived attribute (from name) that represents the simple name of the class
52      * (last part of the fully qualified name).
53      * @return Value of attribute simpleName.
54      */

55     public java.lang.String JavaDoc getSimpleName();
56     /**
57      * Sets the value of simpleName attribute. See {@link #getSimpleName} for
58      * description on the attribute.
59      * @param newValue New value to be set.
60      */

61     public void setSimpleName(java.lang.String JavaDoc newValue);
62     /**
63      * Returns the value of attribute isInner.
64      * @return Value of attribute isInner.
65      */

66     public boolean isInner();
67     /**
68      * Returns the value of reference subClasses.
69      * Navigates to all subclasses of a given class.
70      * @return Value of reference subClasses. Element type: {@link org.netbeans.jmi.javamodel.ClassDefinition}
71      */

72     public java.util.Collection JavaDoc/*<org.netbeans.jmi.javamodel.ClassDefinition>*/ getSubClasses();
73     /**
74      * Returns the value of reference implementors.
75      * Returns all implementors (and subinterfaces) of a given interface.
76      * @return Value of reference implementors. Element type: {@link org.netbeans.jmi.javamodel.ClassDefinition}
77      */

78     public java.util.Collection JavaDoc/*<org.netbeans.jmi.javamodel.ClassDefinition>*/ getImplementors();
79 }
80
Popular Tags