A
- Argument type (Void
if statement does not have argument.)S
- Class representing declared version of this statement.public interface EffectiveStatement<A,S extends DeclaredStatement<A>> extends ModelStatement<A>
Modifier and Type | Method and Description |
---|---|
Collection<? extends EffectiveStatement<?,?>> |
effectiveSubstatements()
Returns a collection of all effective substatements.
|
default <K,V,N extends IdentifierNamespace<K,V>> |
findAll(@NonNull Class<N> namespace)
Returns all local values from supplied namespace.
|
default <T extends EffectiveStatement<?,?>> |
findFirstEffectiveSubstatement(Class<T> type)
Find the first effective substatement of specified type.
|
default <V,T extends EffectiveStatement<V,?>> |
findFirstEffectiveSubstatementArgument(Class<T> type)
Find the first effective substatement of specified type and return its value.
|
<K,V,N extends IdentifierNamespace<K,V>> |
get(Class<N> namespace,
K identifier)
Returns value associated with supplied identifier.
|
<K,V,N extends IdentifierNamespace<K,V>> |
getAll(Class<N> namespace)
Returns all local values from supplied namespace.
|
S |
getDeclared()
Returns statement, which was explicit declaration of this effective
statement.
|
default <T extends EffectiveStatement<?,?>> |
streamEffectiveSubstatements(Class<T> type)
Find all effective substatements of specified type and return them as a stream.
|
argument, getStatementSource, statementDefinition
@Nullable S getDeclared()
@Nullable <K,V,N extends IdentifierNamespace<K,V>> V get(@Nonnull Class<N> namespace, @Nonnull K identifier)
K
- Identifier typeV
- Value typeN
- Namespace identifier typenamespace
- Namespace typeidentifier
- Identifier of element.@Nullable <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAll(@Nonnull Class<N> namespace)
K
- Identifier typeV
- Value typeN
- Namespace identifier typenamespace
- Namespace typedefault <K,V,N extends IdentifierNamespace<K,V>> @NonNull Map<K,V> findAll(@NonNull Class<N> namespace)
K
- Identifier typeV
- Value typeN
- Namespace identifier typenamespace
- Namespace type@Nonnull Collection<? extends EffectiveStatement<?,?>> effectiveSubstatements()
@Beta default <T extends EffectiveStatement<?,?>> Optional<T> findFirstEffectiveSubstatement(@Nonnull Class<T> type)
@Beta default <V,T extends EffectiveStatement<V,?>> Optional<V> findFirstEffectiveSubstatementArgument(@Nonnull Class<T> type)
@Beta default <T extends EffectiveStatement<?,?>> Stream<T> streamEffectiveSubstatements(@Nonnull Class<T> type)
Copyright © 2019 OpenDaylight. All rights reserved.