Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/extension/spi/TypeInfo.java


1   package javax.ide.extension.spi;
2   
3   import javax.ide.util.MetaClass;
4   
5   /**
6    * Record of information identifying an object type. The information used 
7    * to initialize this class comes from an extension manifest.  <p>
8    *
9    * The information kept in this class includes the object type identifier
10   * and the object {@link MetaClass}. Object type identifiers are
11   * unique labels given to objects declared in an extension manifest. 
12   * By convention these labels are dash or dot separated strings. 
13   * Sample identifiers can be found in the {@link javax.ide.IDEConstants} class.
14   */
15  public class TypeInfo 
16  {
17    private String _id;
18    private MetaClass _mclass;
19  
20    /**
21     * Constructor.
22     */
23    public TypeInfo() 
24    {
25    }
26  
27    /**
28     * Get the object type identifier. 
29     * @return The object type identifier.
30     */
31    public String getTypeIdentifier()
32    {
33      return _id;
34    }
35  
36    /**
37     * Set the object type identifier. 
38     * @param id The object type identifier.
39     */
40    public void setTypeIdentifier( String id )
41    {
42      _id = id;
43    }
44  
45    /**
46     * Get the class of the object. 
47     *
48     * @return The object {@link MetaClass}.
49     */
50    public MetaClass getMetaClass()
51    {
52      return _mclass;
53    }
54  
55    /**
56     * Set the class of the object. 
57     *
58     * @param mclass The object class name.
59     */
60    public void setMetaClass( MetaClass mclass )
61    {
62      _mclass = mclass;
63    }
64  }