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 |
|---|---|
<T> Collection<T> |
allSubstatementsOfType(Class<T> type) |
Collection<? extends EffectiveStatement<?,?>> |
effectiveSubstatements()
Returns a collection of all effective substatements.
|
<S extends EffectiveStatement<?,?>> |
firstEffective(Class<S> type)
Deprecated.
|
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.
|
protected <K,V,N extends IdentifierNamespace<K,V>> |
getNamespaceContents(@NonNull Class<N> namespace)
Return the statement-specific contents of specified namespace, if available.
|
protected Collection<? extends EffectiveStatement<?,?>> |
initSubstatements(Collection<? extends StmtContext<?,?,?>> substatementsInit)
Create a set of substatements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, getDeclared, streamEffectiveSubstatementsargument, getStatementSource, statementDefinitionprotected EffectiveStatementBase(StmtContext<A,D,?> ctx)
ctx - context of statement.protected Collection<? extends EffectiveStatement<?,?>> initSubstatements(Collection<? extends StmtContext<?,?,?>> substatementsInit)
substatementsInit - proposed substatementspublic final <K,V,N extends IdentifierNamespace<K,V>> V get(Class<N> namespace, 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(Class<N> namespace)
EffectiveStatementgetAll in interface EffectiveStatement<A,D extends DeclaredStatement<A>>K - Identifier typeV - Value typeN - Namespace identifier typenamespace - Namespace type@Beta protected <K,V,N extends IdentifierNamespace<K,V>> Optional<? extends Map<K,V>> getNamespaceContents(@NonNull Class<N> namespace)
namespace - Requested namespacepublic final Collection<? extends EffectiveStatement<?,?>> effectiveSubstatements()
EffectiveStatementeffectiveSubstatements in interface EffectiveStatement<A,D extends DeclaredStatement<A>>@Deprecated public final <S extends EffectiveStatement<?,?>> S firstEffective(Class<S> type)
EffectiveStatement.findFirstEffectiveSubstatement(Class) instead.type - Requested typeprotected final <S extends SchemaNode> S firstSchemaNode(Class<S> type)
public 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 © 2019 OpenDaylight. All rights reserved.