public interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
Modifier and Type | Interface and Description |
---|---|
static interface |
StmtContext.Mutable<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> |
Modifier and Type | Method and Description |
---|---|
default Iterable<? extends StmtContext<?,?,?>> |
allSubstatements() |
default Stream<? extends StmtContext<?,?,?>> |
allSubstatementsStream() |
D |
buildDeclared()
Builds
DeclaredStatement for statement context. |
E |
buildEffective()
Builds
EffectiveStatement for statement context. |
default @NonNull StmtContext<?,?,?> |
coerceParentContext()
Return the parent statement context, forcing a VerifyException if this is the root statement.
|
default @NonNull String |
coerceRawStatementArgument()
Return the statement argument in literal format.
|
default A |
coerceStatementArgument()
Return the statement argument in literal format.
|
@NonNull Collection<? extends StmtContext<?,?,?>> |
declaredSubstatements()
Return declared substatements.
|
@NonNull Collection<? extends StmtContext<?,?,?>> |
effectiveSubstatements()
Return effective substatements.
|
<K,V,N extends IdentifierNamespace<K,V>> |
getAllFromCurrentStmtCtxNamespace(Class<N> type) |
<K,V,N extends IdentifierNamespace<K,V>> |
getAllFromNamespace(Class<N> type) |
ModelProcessingPhase |
getCompletedPhase() |
CopyHistory |
getCopyHistory() |
Collection<? extends StmtContext<?,?,?>> |
getEffectOfStatement() |
<K,V,T extends K,N extends IdentifierNamespace<K,V>> |
getFromNamespace(Class<N> type,
T key)
Return a value associated with specified key within a namespace.
|
Optional<StmtContext<?,?,?>> |
getOriginalCtx() |
@Nullable StmtContext<?,?,?> |
getParentContext()
Return the parent statement context, or null if this is the root statement.
|
@NonNull StatementDefinition |
getPublicDefinition() |
@NonNull StmtContext<?,?,?> |
getRoot() |
@NonNull YangVersion |
getRootVersion()
Return version of root statement context.
|
@NonNull Optional<SchemaPath> |
getSchemaPath()
Return the
SchemaPath of this statement. |
A |
getStatementArgument()
Return the statement argument.
|
@NonNull StatementSource |
getStatementSource() |
@NonNull StatementSourceReference |
getStatementSourceReference() |
boolean |
isConfiguration() |
boolean |
isEnabledSemanticVersioning() |
boolean |
isSupportedByFeatures() |
boolean |
isSupportedToBuildEffective() |
@Nullable String |
rawStatementArgument()
Return the statement argument in literal format.
|
@NonNull StatementSource getStatementSource()
@NonNull StatementSourceReference getStatementSourceReference()
@NonNull StatementDefinition getPublicDefinition()
@Nullable StmtContext<?,?,?> getParentContext()
default @NonNull StmtContext<?,?,?> coerceParentContext()
com.google.common.base.VerifyException
- if this statement is the root statement@Nullable String rawStatementArgument()
default @NonNull String coerceRawStatementArgument()
com.google.common.base.VerifyException
- if this statement does not have an argumentA getStatementArgument()
default A coerceStatementArgument()
com.google.common.base.VerifyException
- if this statement does not have an argument@NonNull Optional<SchemaPath> getSchemaPath()
SchemaPath
of this statement. Not all statements have a SchemaPath, in which case
Optional.empty()
is returned.boolean isConfiguration()
boolean isEnabledSemanticVersioning()
<K,V,T extends K,N extends IdentifierNamespace<K,V>> V getFromNamespace(Class<N> type, T key)
K
- namespace key typeV
- namespace value typeN
- namespace typeT
- key typetype
- Namespace typekey
- KeyNamespaceNotAvailableException
- when the namespace is not available.<K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromNamespace(Class<N> type)
<K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromCurrentStmtCtxNamespace(Class<N> type)
@NonNull StmtContext<?,?,?> getRoot()
@NonNull Collection<? extends StmtContext<?,?,?>> declaredSubstatements()
@NonNull Collection<? extends StmtContext<?,?,?>> effectiveSubstatements()
default Iterable<? extends StmtContext<?,?,?>> allSubstatements()
default Stream<? extends StmtContext<?,?,?>> allSubstatementsStream()
D buildDeclared()
DeclaredStatement
for statement context.E buildEffective()
EffectiveStatement
for statement context.boolean isSupportedToBuildEffective()
Collection<? extends StmtContext<?,?,?>> getEffectOfStatement()
CopyHistory getCopyHistory()
boolean isSupportedByFeatures()
Optional<StmtContext<?,?,?>> getOriginalCtx()
ModelProcessingPhase getCompletedPhase()
@NonNull YangVersion getRootVersion()
Copyright © 2019 OpenDaylight. All rights reserved.