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.model.api;
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
12 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
15 * SchemaNode presence in SchemaNode API space.
17 * @author Robert Varga
20 public interface OpenConfigHashedValueSchemaNode extends UnknownSchemaNode {
22 * Determine if specified SchemaNode is marked to report its value in hashed form.
24 * @param schemaNode schema node to examine
25 * @return True if specified node is marked, false otherwise
26 * @throws NullPointerException if schemaNode is null
28 static boolean isPresentIn(final SchemaNode schemaNode) {
29 return schemaNode.getUnknownSchemaNodes().stream().anyMatch(OpenConfigHashedValueSchemaNode.class::isInstance);
33 OpenConfigHashedValueEffectiveStatement asEffectiveStatement();