Static Public Member Functions | Static Package Attributes

com.cosylab.cdb.CDBDefault Class Reference

List of all members.

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

Detailed Description

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"

Author:
cparedes

Member Function Documentation

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.

Parameters:
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().


Member Data Documentation

String com.cosylab.cdb.CDBDefault.curl [static, package]
ORB com.cosylab.cdb.CDBDefault.orb [static, package]
String com.cosylab.cdb.CDBDefault.strIOR [static, package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties