/** * Utility to search for an instance of EnergyConsumer within the * CIM model * * @param id * the id to search * @return EnergyConsumer a reference to the class corresponding to * this id, to NULL if not found */ public EnergyConsumer searchEnergyConsumer(final String id) { if (this.getId_EnergyConsumer().containsKey(id)) { return this.getId_EnergyConsumer().get(id); } return null; }
addName(idMapping, names, sm); for (cim1.model.EnergyConsumer ec : model.getId_EnergyConsumer().values()) { addName(idMapping, names, ec);