public static interface StmtContext.Mutable<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> extends StmtContext<A,D,E>
StmtContext.Mutable<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
Modifier and Type | Method and Description |
---|---|
void |
addAsEffectOfStatement(Collection<? extends StmtContext<?,?,?>> ctxs) |
void |
addAsEffectOfStatement(StmtContext<?,?,?> ctx) |
<K,KT extends K,N extends StatementNamespace<K,?,?>> |
addContext(Class<N> namespace,
KT key,
StmtContext<?,?,?> stmt)
adds statement to namespace map with the key
|
void |
addMutableStmtToSeal(MutableStatement mutableStatement)
Add mutable statement to seal.
|
void |
addRequiredModule(ModuleIdentifier dependency)
Add required module.
|
<K,V,KT extends K,VT extends V,N extends IdentifierNamespace<K,V>> |
addToNs(Class<N> type,
KT key,
VT value) |
StmtContext.Mutable<?,?,?> |
getParentContext()
Return the parent statement context, or null if this is the root statement.
|
StmtContext.Mutable<?,?,?> |
getRoot() |
Collection<? extends StmtContext.Mutable<?,?,?>> |
mutableDeclaredSubstatements() |
Collection<? extends StmtContext.Mutable<?,?,?>> |
mutableEffectiveSubstatements() |
ModelActionBuilder |
newInferenceAction(ModelProcessingPhase phase)
Create a new inference action to be executed during specified phase.
|
void |
setCompletedPhase(ModelProcessingPhase completedPhase) |
void |
setIsSupportedToBuildEffective(boolean isSupportedToBuild) |
void |
setRootIdentifier(ModuleIdentifier identifier)
Set identifier of current root context.
|
void |
setRootVersion(YangVersion version)
Set version of root statement context.
|
buildDeclared, buildEffective, createCopy, createCopy, declaredSubstatements, effectiveSubstatements, getAllFromCurrentStmtCtxNamespace, getAllFromNamespace, getCompletedPhase, getCopyHistory, getEffectOfStatement, getFromNamespace, getOriginalCtx, getPublicDefinition, getRootVersion, getSchemaPath, getStatementArgument, getStatementSource, getStatementSourceReference, isConfiguration, isEnabledSemanticVersioning, isSupportedByFeatures, isSupportedToBuildEffective, rawStatementArgument
StmtContext.Mutable<?,?,?> getParentContext()
StmtContext
getParentContext
in interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
<K,V,KT extends K,VT extends V,N extends IdentifierNamespace<K,V>> void addToNs(Class<N> type, KT key, VT value) throws NamespaceNotAvailableException
NamespaceNotAvailableException
@Nonnull StmtContext.Mutable<?,?,?> getRoot()
getRoot
in interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
@Nonnull Collection<? extends StmtContext.Mutable<?,?,?>> mutableDeclaredSubstatements()
@Nonnull Collection<? extends StmtContext.Mutable<?,?,?>> mutableEffectiveSubstatements()
@Nonnull ModelActionBuilder newInferenceAction(@Nonnull ModelProcessingPhase phase)
phase
- Target phase in which the action will resolved.NullPointerException
- if the specified phase is null<K,KT extends K,N extends StatementNamespace<K,?,?>> void addContext(Class<N> namespace, KT key, StmtContext<?,?,?> stmt)
namespace
- StatementNamespace
child that determines namespace to be added tokey
- of type according to namespace class specificationstmt
- to be added to namespace mapvoid setRootVersion(YangVersion version)
version
- of root statement contextvoid addMutableStmtToSeal(MutableStatement mutableStatement)
mutableStatement
- mutable statement which should be sealedvoid addRequiredModule(ModuleIdentifier dependency)
dependency
- ModuleIdentifier of module required by current root
contextvoid addAsEffectOfStatement(StmtContext<?,?,?> ctx)
void addAsEffectOfStatement(Collection<? extends StmtContext<?,?,?>> ctxs)
void setRootIdentifier(ModuleIdentifier identifier)
identifier
- of current root contextvoid setIsSupportedToBuildEffective(boolean isSupportedToBuild)
void setCompletedPhase(ModelProcessingPhase completedPhase)
Copyright © 2018 OpenDaylight. All rights reserved.