2 * Copyright (c) 2019 PANTHEON.tech s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.yanglib.api;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.yangtools.yang.common.MountPointLabel;
13 import org.opendaylight.yangtools.yang.common.Revision;
14 import org.opendaylight.yangtools.yang.data.api.schema.MountPointContextFactory;
17 * Main entry point into YANG (Module) Library support instance.
21 public interface YangLibSupport {
23 * Create a MountPointContextFactory, backed by a specific SchemaContextResolver.
25 * @param label Resulting Mount Point identifier
26 * @param resolver SchemaContext resolver
27 * @return A new factory
28 * @throws NullPointerException if any argument is null
30 MountPointContextFactory createMountPointContextFactory(MountPointLabel label, SchemaContextResolver resolver);
33 * Return the revision date of the model this support implements. The value returned from this method is suitable
34 * for reporting in <a href="https://tools.ietf.org/html/rfc8040#section-3.3.3">RFC8040 section 3.3.3</a>.
38 Revision implementedRevision();
41 * Create a new content builder which is used to serialize yang library content into NormalizedNodes.
42 * This content builder has further options which can influence the resulting content.
44 * @return A new yang library content builder.
46 YangLibraryContentBuilder newContentBuilder();