/* * Copyright (c) 2013 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, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.data.impl.schema; import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.*; import org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode; import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.CollectionNodeBuilder; import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.DataContainerNodeBuilder; import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.ListNodeBuilder; import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder; import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.*; import org.opendaylight.yangtools.yang.model.api.*; public class Builders { public static NormalizedNodeBuilder> leafBuilder() { return ImmutableLeafNodeBuilder.create(); } public static NormalizedNodeBuilder> leafBuilder( LeafSchemaNode schema) { return ImmutableLeafNodeSchemaAwareBuilder.create(schema); } public static NormalizedNodeBuilder> leafSetEntryBuilder() { return ImmutableLeafSetEntryNodeBuilder.create(); } public static NormalizedNodeBuilder> leafSetEntryBuilder( LeafListSchemaNode schema) { return ImmutableLeafSetEntryNodeSchemaAwareBuilder.create(schema); } public static ListNodeBuilder> leafSetBuilder() { return ImmutableLeafSetNodeBuilder.create(); } public static ListNodeBuilder> leafSetBuilder(LeafListSchemaNode schema) { return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema); } public static DataContainerNodeBuilder containerBuilder() { return ImmutableContainerNodeBuilder.create(); } public static DataContainerNodeBuilder containerBuilder( ContainerSchemaNode schema) { return ImmutableContainerNodeSchemaAwareBuilder.create(schema); } public static DataContainerNodeBuilder mapEntryBuilder() { return ImmutableMapEntryNodeBuilder.create(); } public static DataContainerNodeBuilder mapEntryBuilder( ListSchemaNode schema) { return ImmutableMapEntryNodeSchemaAwareBuilder.create(schema); } public static CollectionNodeBuilder mapBuilder() { return ImmutableMapNodeBuilder.create(); } public static CollectionNodeBuilder mapBuilder(ListSchemaNode schema) { return ImmutableMapNodeSchemaAwareBuilder.create(schema); } public static DataContainerNodeBuilder augmentationBuilder() { return ImmutableAugmentationNodeBuilder.create(); } public static DataContainerNodeBuilder augmentationBuilder(AugmentationSchema schema) { return ImmutableAugmentationNodeSchemaAwareBuilder.create(schema); } public static DataContainerNodeBuilder choiceBuilder() { return ImmutableChoiceNodeBuilder.create(); } public static DataContainerNodeBuilder choiceBuilder(org.opendaylight.yangtools.yang.model.api.ChoiceNode schema) { return ImmutableChoiceNodeSchemaAwareBuilder.create(schema); } }