2 * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.yang.parser.rfc7950.stmt;
10 import com.google.common.base.MoreObjects;
11 import com.google.common.collect.ImmutableSet;
12 import java.util.Objects;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.ActionDefinition;
16 import org.opendaylight.yangtools.yang.model.api.NotificationDefinition;
17 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
18 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
20 @Deprecated(forRemoval = true)
21 public abstract class AbstractEffectiveOperationContainerSchemaNode<D extends DeclaredStatement<QName>>
22 extends AbstractEffectiveContainerSchemaNode<D> {
23 protected AbstractEffectiveOperationContainerSchemaNode(final StmtContext<QName, D, ?> ctx) {
28 public final Set<ActionDefinition> getActions() {
29 return ImmutableSet.of();
33 public final Set<NotificationDefinition> getNotifications() {
34 return ImmutableSet.of();
38 public final boolean isPresenceContainer() {
39 // FIXME: this should not really be here
44 public final int hashCode() {
45 return Objects.hash(getQName(), getPath());
49 public final boolean equals(final Object obj) {
53 if (obj == null || getClass() != obj.getClass()) {
56 AbstractEffectiveOperationContainerSchemaNode<?> other = (AbstractEffectiveOperationContainerSchemaNode<?>) obj;
57 return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
61 public final String toString() {
62 return MoreObjects.toStringHelper(this).add("path", getPath()).toString();