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.annotations.Beta;
11 import com.google.common.base.MoreObjects;
12 import com.google.common.collect.ImmutableSet;
13 import java.util.Collection;
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;
19
20 @Beta
21 public abstract class AbstractEffectiveOperationContainerSchemaNode<D extends DeclaredStatement<QName>>
22         extends AbstractEffectiveContainerSchemaNode<D> {
23     protected AbstractEffectiveOperationContainerSchemaNode(final StmtContext<QName, D, ?> ctx) {
24         super(ctx);
25     }
26
27     @Override
28     public final Collection<? extends ActionDefinition> getActions() {
29         return ImmutableSet.of();
30     }
31
32     @Override
33     public final Collection<? extends NotificationDefinition> getNotifications() {
34         return ImmutableSet.of();
35     }
36
37     @Override
38     public final boolean isPresenceContainer() {
39         // FIXME: this should not really be here
40         return false;
41     }
42
43     @Override
44     public final String toString() {
45         return MoreObjects.toStringHelper(this).add("path", getPath()).toString();
46     }
47 }