Remove hashCode()/equals() from SchemaNode implementations
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / AbstractEffectiveOperationContainerSchemaNode.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt;
9
10 import com.google.common.base.MoreObjects;
11 import com.google.common.collect.ImmutableSet;
12 import java.util.Set;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.model.api.ActionDefinition;
15 import org.opendaylight.yangtools.yang.model.api.NotificationDefinition;
16 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
17 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
18
19 @Deprecated(forRemoval = true)
20 public abstract class AbstractEffectiveOperationContainerSchemaNode<D extends DeclaredStatement<QName>>
21         extends AbstractEffectiveContainerSchemaNode<D> {
22     protected AbstractEffectiveOperationContainerSchemaNode(final StmtContext<QName, D, ?> ctx) {
23         super(ctx);
24     }
25
26     @Override
27     public final Set<ActionDefinition> getActions() {
28         return ImmutableSet.of();
29     }
30
31     @Override
32     public final Set<NotificationDefinition> getNotifications() {
33         return ImmutableSet.of();
34     }
35
36     @Override
37     public final boolean isPresenceContainer() {
38         // FIXME: this should not really be here
39         return false;
40     }
41
42     @Override
43     public final String toString() {
44         return MoreObjects.toStringHelper(this).add("path", getPath()).toString();
45     }
46 }