2 * Copyright (c) 2017 Pantheon Technologies, 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.yangtools.openconfig.parser;
10 import com.google.common.annotations.Beta;
11 import com.google.common.collect.ImmutableList;
12 import java.util.Collection;
13 import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport;
16 * Primary entry point into this implementation. Use {@link #getStatements()} to acquire a collection of
17 * {@link StatementSupport} instances, which need to be registered with the parser.
19 * @author Robert Varga
22 public final class OpenConfig {
24 private OpenConfig() {
25 throw new UnsupportedOperationException();
29 * Return a collection of statements which need to be added into parser reactor to enable support for OpenConfig
32 * @return Collection of statements to be added.
34 public static Collection<StatementSupport<?, ?, ?>> getStatements() {
35 return ImmutableList.of(HashedValue.getHashedInstance(), HashedValue.getEncryptedInstance());