/** * If not already created, a new <code>drivers</code> element with the given value will be created. * Otherwise, the existing <code>drivers</code> element will be returned. * @return a new or existing instance of <code>DriversType<DatasourcesType<T>></code> */ public DriversType<DatasourcesType<T>> getOrCreateDrivers() { Node node = childNode.getOrCreate("drivers"); DriversType<DatasourcesType<T>> drivers = new DriversTypeImpl<DatasourcesType<T>>(this, "drivers", childNode, node); return drivers; }
/** * If not already created, a new <code>driver</code> element will be created and returned. * Otherwise, the first existing <code>driver</code> element will be returned. * @return the instance defined for the element <code>driver</code> */ public DriverType<DriversType<T>> getOrCreateDriver() { List<Node> nodeList = childNode.get("driver"); if (nodeList != null && nodeList.size() > 0) { return new DriverTypeImpl<DriversType<T>>(this, "driver", childNode, nodeList.get(0)); } return createDriver(); }
/** * If not already created, a new <code>driver</code> element will be created and returned. * Otherwise, the first existing <code>driver</code> element will be returned. * @return the instance defined for the element <code>driver</code> */ public DriverType<DriversType<T>> getOrCreateDriver() { List<Node> nodeList = childNode.get("driver"); if (nodeList != null && nodeList.size() > 0) { return new DriverTypeImpl<DriversType<T>>(this, "driver", childNode, nodeList.get(0)); } return createDriver(); }
/** * If not already created, a new <code>drivers</code> element with the given value will be created. * Otherwise, the existing <code>drivers</code> element will be returned. * @return a new or existing instance of <code>DriversType<DatasourcesDescriptor></code> */ public DriversType<DatasourcesDescriptor> getOrCreateDrivers() { Node node = model.getOrCreate("drivers"); DriversType<DatasourcesDescriptor> drivers = new DriversTypeImpl<DatasourcesDescriptor>(this, "drivers", model, node); return drivers; }
/** * If not already created, a new <code>drivers</code> element with the given value will be created. * Otherwise, the existing <code>drivers</code> element will be returned. * @return a new or existing instance of <code>DriversType<DatasourcesType<T>></code> */ public DriversType<DatasourcesType<T>> getOrCreateDrivers() { Node node = childNode.getOrCreate("drivers"); DriversType<DatasourcesType<T>> drivers = new DriversTypeImpl<DatasourcesType<T>>(this, "drivers", childNode, node); return drivers; }
/** * If not already created, a new <code>drivers</code> element with the given value will be created. * Otherwise, the existing <code>drivers</code> element will be returned. * @return a new or existing instance of <code>DriversType<DatasourcesDescriptor></code> */ public DriversType<DatasourcesDescriptor> getOrCreateDrivers() { Node node = model.getOrCreate("drivers"); DriversType<DatasourcesDescriptor> drivers = new DriversTypeImpl<DatasourcesDescriptor>(this, "drivers", model, node); return drivers; }