import java.util.Set;
import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.model.api.ActionDefinition;
import org.opendaylight.yangtools.yang.model.api.DerivableSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
private final boolean userOrdered;
private final List<QName> keyDefinition;
private final ListSchemaNode original;
+ private final Set<ActionDefinition> actions;
private final Set<NotificationDefinition> notifications;
private final Collection<UniqueConstraint> uniqueConstraints;
this.keyDefinition = ImmutableList.copyOf(keyDefinitionInit);
this.uniqueConstraints = ImmutableList.copyOf(allSubstatementsOfType(UniqueConstraint.class));
+ final ImmutableSet.Builder<ActionDefinition> actionsBuilder = ImmutableSet.builder();
final Builder<NotificationDefinition> notificationsBuilder = ImmutableSet.builder();
for (final EffectiveStatement<?, ?> effectiveStatement : effectiveSubstatements()) {
+ if (effectiveStatement instanceof ActionDefinition) {
+ actionsBuilder.add((ActionDefinition) effectiveStatement);
+ }
+
if (effectiveStatement instanceof NotificationDefinition) {
notificationsBuilder.add((NotificationDefinition) effectiveStatement);
}
}
+
+ this.actions = actionsBuilder.build();
this.notifications = notificationsBuilder.build();
}
return keyDefinition;
}
+ @Override
+ public Set<ActionDefinition> getActions() {
+ return actions;
+ }
+
@Override
public Set<NotificationDefinition> getNotifications() {
return notifications;