/** * Gets the switchyard namespace for the scan. * @return the switchyard namespace */ public SwitchYardNamespace getSwitchyardNamespace() { return isSwitchyardNamespaceSet() ? _switchyardNamespace : SwitchYardNamespace.DEFAULT; }
/** * Gets the switchyard namespace for the scan. * @return the switchyard namespace */ public SwitchYardNamespace getSwitchyardNamespace() { return isSwitchyardNamespaceSet() ? _switchyardNamespace : SwitchYardNamespace.DEFAULT; }
@Override public ScannerOutput<M> scan(ScannerInput<M> input) throws IOException { ScannerOutput<M> output = super.scan(input); M model = output.getModel(); if (model != null) { Model root = model.getModelRoot(); if (root instanceof SwitchYardModel) { if (!input.isSwitchyardNamespaceSet()) { String uri = root.getModelRootNamespace(); SwitchYardNamespace ns = SwitchYardNamespace.fromUri(uri); input.setSwitchyardNamespace(ns); } } } return output; } });
@Override public ScannerOutput<M> scan(ScannerInput<M> input) throws IOException { ScannerOutput<M> output = super.scan(input); M model = output.getModel(); if (model != null) { Model root = model.getModelRoot(); if (root instanceof SwitchYardModel) { if (!input.isSwitchyardNamespaceSet()) { String uri = root.getModelRootNamespace(); SwitchYardNamespace ns = SwitchYardNamespace.fromUri(uri); input.setSwitchyardNamespace(ns); } } } return output; } });