import org.opendaylight.yangtools.sal.binding.model.api.Restrictions;
import org.opendaylight.yangtools.sal.binding.model.api.Type;
import org.opendaylight.yangtools.sal.binding.model.api.type.builder.GeneratedTOBuilder;
import org.opendaylight.yangtools.sal.binding.model.api.Restrictions;
import org.opendaylight.yangtools.sal.binding.model.api.Type;
import org.opendaylight.yangtools.sal.binding.model.api.type.builder.GeneratedTOBuilder;
import org.opendaylight.yangtools.yang.model.api.DataNodeContainer;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DataNodeContainer;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
}
private static LeafSchemaNode provideLeafNodeFromTopLevelContainer(final Module module, final String containerName, final String leafNodeName) {
}
private static LeafSchemaNode provideLeafNodeFromTopLevelContainer(final Module module, final String containerName, final String leafNodeName) {
assertNotNull("Container foo is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof DataNodeContainer);
assertNotNull("Container foo is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof DataNodeContainer);
assertNotNull(node);
assertTrue(node instanceof LeafSchemaNode);
return (LeafSchemaNode) node;
}
private static LeafListSchemaNode provideLeafListNodeFromTopLevelContainer(final Module module, final String containerName, final String leafListNodeName) {
assertNotNull(node);
assertTrue(node instanceof LeafSchemaNode);
return (LeafSchemaNode) node;
}
private static LeafListSchemaNode provideLeafListNodeFromTopLevelContainer(final Module module, final String containerName, final String leafListNodeName) {
assertNotNull("Container foo is not present in root of module " + module.getName(), rootNode);
assertTrue(rootNode instanceof DataNodeContainer);
final DataNodeContainer rootContainer = (DataNodeContainer) rootNode;
assertNotNull("Container foo is not present in root of module " + module.getName(), rootNode);
assertTrue(rootNode instanceof DataNodeContainer);
final DataNodeContainer rootContainer = (DataNodeContainer) rootNode;
assertTrue(leafrefResolvedType1 instanceof GeneratedTransferObject);
final Module module = resolveModule("test-type-provider-b");
assertTrue(leafrefResolvedType1 instanceof GeneratedTransferObject);
final Module module = resolveModule("test-type-provider-b");
assertNotNull("leaf id is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof LeafSchemaNode);
leaf = (LeafSchemaNode) rootNode;
assertNotNull("leaf id is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof LeafSchemaNode);
leaf = (LeafSchemaNode) rootNode;
assertNotNull("leaf enum is not present in root of module " + module.getName(), enumNode);
assertTrue(enumNode instanceof LeafSchemaNode);
LeafSchemaNode leaf = (LeafSchemaNode) enumNode;
assertNotNull("leaf enum is not present in root of module " + module.getName(), enumNode);
assertTrue(enumNode instanceof LeafSchemaNode);
LeafSchemaNode leaf = (LeafSchemaNode) enumNode;
assertNotNull("leaf-list enums is not present in root of module "+ module.getName(), enumNode);
assertTrue(enumListNode instanceof LeafListSchemaNode);
LeafListSchemaNode leafList = (LeafListSchemaNode) enumListNode;
assertNotNull("leaf-list enums is not present in root of module "+ module.getName(), enumNode);
assertTrue(enumListNode instanceof LeafListSchemaNode);
LeafListSchemaNode leafList = (LeafListSchemaNode) enumListNode;
final TypeProvider provider = new TypeProviderImpl(schemaContext);
final Module module = resolveModule("test-type-provider-b");
final TypeProvider provider = new TypeProviderImpl(schemaContext);
final Module module = resolveModule("test-type-provider-b");
assertNotNull("leaf conditional-leafref is not present in root of module "+ module.getName(), condLeaf);
assertTrue(condLeaf instanceof LeafSchemaNode);
LeafSchemaNode leaf = (LeafSchemaNode) condLeaf;
assertNotNull("leaf conditional-leafref is not present in root of module "+ module.getName(), condLeaf);
assertTrue(condLeaf instanceof LeafSchemaNode);
LeafSchemaNode leaf = (LeafSchemaNode) condLeaf;
final TypeProvider provider = new TypeProviderImpl(schemaContext);
final Module module = resolveModule("test-type-provider-b");
final TypeProvider provider = new TypeProviderImpl(schemaContext);
final Module module = resolveModule("test-type-provider-b");
assertNotNull("leaf unreslovable-leafref is not present in root of module "+ module.getName(), condLeaf);
assertTrue(condLeaf instanceof LeafSchemaNode);
LeafSchemaNode leaf = (LeafSchemaNode) condLeaf;
assertNotNull("leaf unreslovable-leafref is not present in root of module "+ module.getName(), condLeaf);
assertTrue(condLeaf instanceof LeafSchemaNode);
LeafSchemaNode leaf = (LeafSchemaNode) condLeaf;
assertNotNull("leaf root-union-leaf is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof LeafSchemaNode);
leaf = (LeafSchemaNode) rootNode;
assertNotNull("leaf root-union-leaf is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof LeafSchemaNode);
leaf = (LeafSchemaNode) rootNode;
assertEquals("new org.opendaylight.yang.gen.v1.urn.opendaylight.org.test.base.yang.types.rev140914.YangBinary(new byte[] {-45, 23, -33, 125, -9, -33})",
result);
assertEquals("new org.opendaylight.yang.gen.v1.urn.opendaylight.org.test.base.yang.types.rev140914.YangBinary(new byte[] {-45, 23, -33, 125, -9, -33})",
result);
assertNotNull("leaf bits-leaf is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof LeafSchemaNode);
leaf = (LeafSchemaNode) rootNode;
assertNotNull("leaf bits-leaf is not present in root of module "+ module.getName(), rootNode);
assertTrue(rootNode instanceof LeafSchemaNode);
leaf = (LeafSchemaNode) rootNode;