2 * Copyright (c) 2015 Cisco Systems, Inc. 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.yang.model.api.meta;
10 import java.util.Collection;
11 import javax.annotation.Nonnull;
12 import javax.annotation.Nullable;
15 * Represents declared statement.
17 * @param <A> Argument type ({@link Void} if statement does not have argument.)
19 public interface DeclaredStatement<A> extends ModelStatement<A> {
22 * Returns statement argument as was present in original source.
24 * @return statement argument as was present in original source or null, if statement does not take argument.
26 @Nullable String rawArgument();
29 * Returns collection of explicitly declared child statements, while preserving its original
30 * ordering from original source.
32 * @return Collection of statements, which were explicitly declared in
35 @Nonnull Collection<? extends DeclaredStatement<?>> declaredSubstatements();