public abstract class EffectiveStatementBase<A,D extends DeclaredStatement<A>> extends Object implements EffectiveStatement<A,D>
| Modifier | Constructor and Description |
|---|---|
protected |
EffectiveStatementBase(StmtContext<A,D,?> ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> Collection<T> |
allSubstatementsOfType(Class<T> type) |
Collection<? extends EffectiveStatement<?,?>> |
effectiveSubstatements()
Returns a collection of all effective substatements.
|
protected <S extends EffectiveStatement<?,?>> |
firstEffective(Class<S> type) |
protected EffectiveStatement<?,?> |
firstEffectiveSubstatementOfType(Class<?> type) |
protected <S extends SchemaNode> |
firstSchemaNode(Class<S> type) |
protected <R> R |
firstSubstatementOfType(Class<?> type,
Class<R> returnType) |
protected <T> T |
firstSubstatementOfType(Class<T> type) |
<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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeclaredargument, getStatementSource, statementDefinitionprotected EffectiveStatementBase(StmtContext<A,D,?> ctx)
ctx - context of statement.public final <K,V,N extends IdentifierNamespace<K,V>> V get(@Nonnull Class<N> namespace, @Nonnull K identifier)
EffectiveStatementget in interface EffectiveStatement<A,D extends DeclaredStatement<A>>K - Identifier typeV - Value typeN - Namespace identifier typenamespace - Namespace typeidentifier - Identifier of element.public final <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAll(@Nonnull Class<N> namespace)
EffectiveStatementgetAll in interface EffectiveStatement<A,D extends DeclaredStatement<A>>K - Identifier typeV - Value typeN - Namespace identifier typenamespace - Namespace type@Nonnull public final Collection<? extends EffectiveStatement<?,?>> effectiveSubstatements()
EffectiveStatementeffectiveSubstatements in interface EffectiveStatement<A,D extends DeclaredStatement<A>>protected final <S extends EffectiveStatement<?,?>> S firstEffective(Class<S> type)
protected final <S extends SchemaNode> S firstSchemaNode(Class<S> type)
protected final <T> Collection<T> allSubstatementsOfType(Class<T> type)
protected final <T> T firstSubstatementOfType(Class<T> type)
protected final <R> R firstSubstatementOfType(Class<?> type, Class<R> returnType)
protected final EffectiveStatement<?,?> firstEffectiveSubstatementOfType(Class<?> type)
Copyright © 2018 OpenDaylight. All rights reserved.