org.opendaylight.yang.svc.v1.instance.identifier.patch.module.rev151121.YangModuleInfoImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-models Show documentation
Show all versions of test-models Show documentation
OpenDaylight NETCONF project test models
The newest version!
package org.opendaylight.yang.svc.v1.instance.identifier.patch.module.rev151121;
import com.google.common.collect.ImmutableSet;
import java.lang.Override;
import java.lang.String;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.binding.lib.ResourceYangModuleInfo;
import org.opendaylight.yangtools.binding.meta.YangModuleInfo;
import org.opendaylight.yangtools.yang.common.QName;
/**
* The {@link ResourceYangModuleInfo} for {@code instance-identifier-patch-module} module.
*/
@javax.annotation.processing.Generated("mdsal-binding-generator")
public final class YangModuleInfoImpl extends ResourceYangModuleInfo {
private static final @NonNull QName NAME = QName.create("instance:identifier:patch:module", "2015-11-21", "instance-identifier-patch-module").intern();
private static final @NonNull YangModuleInfo INSTANCE = new YangModuleInfoImpl();
private final @NonNull ImmutableSet importedModules;
/**
* Return the singleton instance of this class.
*
* @return The singleton instance
*/
public static @NonNull YangModuleInfo getInstance() {
return INSTANCE;
}
/**
* Create an interned {@link QName} with specified {@code localName} and namespace/revision of this
* module.
*
* @param localName local name
* @return A QName
* @throws NullPointerException if {@code localName} is {@code null}
* @throws IllegalArgumentException if {@code localName} is not a valid YANG identifier
*/
public static @NonNull QName qnameOf(final String localName) {
return QName.create(NAME, localName).intern();
}
private YangModuleInfoImpl() {
importedModules = ImmutableSet.of();
}
@Override
public QName getName() {
return NAME;
}
@Override
protected String resourceName() {
return "/META-INF/yang/[email protected]";
}
@Override
public ImmutableSet getImportedModules() {
return importedModules;
}
}