KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > corba > helper > XMIImportCommon


1 /**
2  * copyright 2002 2003 Laboratoire d'Informatique Paris 6 (LIP6)
3  *
4  * This file is part of ModFact.
5  *
6  * ModFact is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * at your option) any later version.
10  *
11  * ModFact is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with ModFact; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */

20 package org.objectweb.modfact.corba.helper;
21
22 /**
23  *
24  */

25 public interface XMIImportCommon {
26
27     /**
28      * Pass from a TypeCode to the corresponding Java type code
29      * @param _type The CORBA Type Code.
30      * @return A String representing the corresponding Java type.
31      */

32     public String JavaDoc typeCode2Java(org.omg.CORBA.TypeCode JavaDoc _type);
33
34     /**
35      * Tests if a MOF Object is contained in a vector.
36      * @param _vector The vector to parse.
37      * @param _object The MOF Object.
38      * @return TRUE if the vector contains the MOF Object.
39      */

40     public boolean vectorContains(java.util.Vector JavaDoc _vector, org.omg.mof.Reflective.RefBaseObject _object);
41
42     /**
43      * Tests if a MOF Object is contained in a vector.
44      * @param _array The array to parse.
45      * @param _object The MOF Object.
46      * @return TRUE if the vector contains the MOF Object.
47      */

48     public boolean arrayContains(org.omg.CORBA.Object JavaDoc[] _array, org.omg.mof.Reflective.RefBaseObject _object);
49
50     /**
51          * Gets the default value of an Attribute.
52          * @param _type The CORBA Type Code of the attribute.
53          * @return The default value of the attribute.
54          */

55     public String JavaDoc defaultAttributeValue(org.omg.CORBA.TypeCode JavaDoc _type) throws org.omg.mof.Reflective.MofError;
56
57     /**
58      * Gets the default value of an Attribute.
59      * @param _type The CORBA Type Code of the attribute.
60      * @param _classifier The Object type of the attribute.
61      * @return The default value of the attribute.
62      */

63     public String JavaDoc defaultAttributeValue(org.omg.CORBA.TypeCode JavaDoc _type, org.omg.mof.Model.Classifier _classifier)
64         throws org.omg.mof.Reflective.MofError;
65
66     /**
67      * Gets the default value of an Attribute.
68      * @param _classifier The Object type of the attribute.
69      * @return The default value of the attribute.
70      */

71     public String JavaDoc defaultAttributeValue(org.omg.mof.Model.Classifier _classifier) throws org.omg.mof.Reflective.MofError;
72     
73
74     /**
75      * Gets the references of an association.
76      * @param _association The association.
77      * @return The references.
78      */

79     public org.omg.mof.Model.Reference[] getReferences(org.omg.mof.Model.Association _association)
80         throws org.omg.mof.Reflective.MofError, org.omg.mof.Reflective.NotSet;
81         
82         
83     /**
84      * Tests if the DataType Name represents a PrimitiveType.
85      * @param datatype_name The name of the datatype.
86      */

87     public boolean isPrimitiveType(String JavaDoc datatype_name);
88     
89     
90     /**
91      * Add a value to a hashtable composed by an object as key (a model) and a vector as value (models keys).
92      * @param hashtable The hashtable.
93      * @param key The key in the hastable.
94      * @param object The referenced object to add to the vector corresponding to the key of the hashtable.
95      */

96     public void addHashtableValue(java.util.Hashtable JavaDoc hashtable, Object JavaDoc key, Object JavaDoc object);
97     
98
99 }
100
Popular Tags