Remove yang-test
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / ConfigExecution.java
index 0d49dbf63715b273267d6ebcbf21b3d267d4ebe8..d6179c793b5940cd1c988c777a5c9d9b11e9d9e6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -28,7 +28,8 @@ public class ConfigExecution {
     private final Config configResolver;
     private final XmlElement configElement;
 
-    public ConfigExecution(Config configResolver, XmlElement configElement, TestOption testOption, EditStrategyType defaultStrategy) throws DocumentedException {
+    public ConfigExecution(final Config configResolver, final XmlElement configElement, final TestOption testOption,
+            final EditStrategyType defaultStrategy) throws DocumentedException {
         Config.checkUnrecognisedChildren(configElement);
         this.configResolver = configResolver;
         this.configElement = configElement;
@@ -45,17 +46,21 @@ public class ConfigExecution {
         return testOption == TestOption.set || testOption == TestOption.testThenSet;
     }
 
-    public Map<String, Multimap<String, ModuleElementResolved>> getResolvedXmlElements(ServiceReferenceReadableRegistry serviceRegistry) throws DocumentedException {
-        return configResolver.fromXmlModulesResolved(configElement, defaultEditStrategyType, getServiceRegistryWrapper(serviceRegistry));
+    public Map<String, Multimap<String, ModuleElementResolved>> getResolvedXmlElements(
+            final ServiceReferenceReadableRegistry serviceRegistry) throws DocumentedException {
+        return configResolver.fromXmlModulesResolved(configElement, defaultEditStrategyType,
+                getServiceRegistryWrapper(serviceRegistry));
     }
 
-    public ServiceRegistryWrapper getServiceRegistryWrapper(ServiceReferenceReadableRegistry serviceRegistry) {
+    public ServiceRegistryWrapper getServiceRegistryWrapper(final ServiceReferenceReadableRegistry serviceRegistry) {
         // TODO cache service registry
         return new ServiceRegistryWrapper(serviceRegistry);
     }
 
-    public Map<String, Multimap<String,ModuleElementDefinition>> getModulesDefinition(ServiceReferenceReadableRegistry serviceRegistry) throws DocumentedException {
-        return configResolver.fromXmlModulesMap(configElement, defaultEditStrategyType, getServiceRegistryWrapper(serviceRegistry));
+    public Map<String, Multimap<String, ModuleElementDefinition>> getModulesDefinition(
+            final ServiceReferenceReadableRegistry serviceRegistry) throws DocumentedException {
+        return configResolver.fromXmlModulesMap(configElement, defaultEditStrategyType,
+                getServiceRegistryWrapper(serviceRegistry));
     }
 
     public EditStrategyType getDefaultStrategy() {