Adjust regenerated files to match what latest and greatest yang-tools will produce.
[controller.git] / opendaylight / config / yang-test / src / main / java / org / opendaylight / controller / config / yang / test / impl / IdentityTestModule.java
1 package org.opendaylight.controller.config.yang.test.impl;
2 public class IdentityTestModule extends org.opendaylight.controller.config.yang.test.impl.AbstractIdentityTestModule {
3     public IdentityTestModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
4         super(identifier, dependencyResolver);
5     }
6
7     public IdentityTestModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.test.impl.IdentityTestModule oldModule, java.lang.AutoCloseable oldInstance) {
8         super(identifier, dependencyResolver, oldModule, oldInstance);
9     }
10
11     @Override
12     public void customValidation() {
13         // add custom validation form module attributes here.
14     }
15
16     @Override
17     public java.lang.AutoCloseable createInstance() {
18         org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(getClass());
19         logger.info("Afi: {}", getAfi());
20         logger.info("Afi class: {}", getAfiIdentity());
21
22         for (Identities identities : getIdentities()) {
23             logger.info("Identities Afi class: {}", identities.resolveAfi());
24             logger.info("Identities Safi class: {}", identities.resolveSafi());
25
26         }
27         logger.info("IdentityContainer Afi class: {}", getIdentitiesContainer().resolveAfi());
28
29         return new AutoCloseable() {
30             @Override
31             public void close() throws Exception {
32             }
33         };
34
35     }
36
37 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.