Static Public Member Functions | |
static void | main (String args[]) |
static void | setDefault (XMLTreeNode node_root, String in_type, String in_name) |
Static Package Attributes | |
static String | strIOR |
static String | curl |
static String | curl_allComponents |
static ORB | orb |
Allow switching the default component of a given IDL type. This is useful if there is only one component instance per type, but the CDB contains two entries, one for the real component, and one for a simulator. The client (test code or real component in the system) is then not affected by this switching, because it always uses the IDL type to retrieve the component.
Sets Default=true the given component and sets Default=false the other components with the same type. Assumes the curl of the components = "MACI/Components"
static void com.cosylab.cdb.CDBDefault.main | ( | String | args[] | ) | [static] |
static void com.cosylab.cdb.CDBDefault.setDefault | ( | XMLTreeNode | node_root, | |
String | in_type, | |||
String | in_name | |||
) | [static] |
Recursively go throw the xml finding nodes with the same Type. If the type match, compares the Name. If is the same name, sets the Default=true, in the other case sets the Default attribute to false.
node_root | the root of all components xml . | |
in_type | the type of the component. | |
in_name | the name of the component to set up default. |
References com.cosylab.cdb.CDBDefault.curl, com.cosylab.cdb.CDBDefault.curl_allComponents, com.cosylab.cdb.jdal.XMLTreeNode.getFieldMap(), com.cosylab.cdb.jdal.XMLTreeNode.getNodesMap(), com.cosylab.cdb.CDBDefault.orb, and com.cosylab.cdb.CDBDefault.strIOR.
Referenced by com.cosylab.cdb.CDBDefault.main().
String com.cosylab.cdb.CDBDefault.curl [static, package] |
Referenced by com.cosylab.cdb.CDBDefault.main(), and com.cosylab.cdb.CDBDefault.setDefault().
String com.cosylab.cdb.CDBDefault.curl_allComponents [static, package] |
Referenced by com.cosylab.cdb.CDBDefault.main(), and com.cosylab.cdb.CDBDefault.setDefault().
ORB com.cosylab.cdb.CDBDefault.orb [static, package] |
Referenced by com.cosylab.cdb.CDBDefault.main(), and com.cosylab.cdb.CDBDefault.setDefault().
String com.cosylab.cdb.CDBDefault.strIOR [static, package] |
Referenced by com.cosylab.cdb.CDBDefault.main(), and com.cosylab.cdb.CDBDefault.setDefault().