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 s statement to namespace map with a key.
|
void |
addMutableStmtToSeal(MutableStatement mutableStatement)
Add mutable statement to seal.
|
void |
addRequiredSource(SourceIdentifier dependency)
Add required module.
|
<K,V,T extends K,U extends V,N extends IdentifierNamespace<K,V>> |
addToNs(Class<N> type,
T key,
U value)
Associate a value with a key within a namespace.
|
default <X,Y extends DeclaredStatement<X>,Z extends EffectiveStatement<X,Y>> |
childCopyOf(StmtContext<X,Y,Z> stmt,
CopyType type)
Create a child sub-statement, which is a child of this statement, inheriting all attributes from specified
child and recording copy type.
|
<X,Y extends DeclaredStatement<X>,Z extends EffectiveStatement<X,Y>> |
childCopyOf(StmtContext<X,Y,Z> stmt,
CopyType type,
@Nullable QNameModule targetModule)
Create a child sub-statement, which is a child of this statement, inheriting all attributes from specified
child and recording copy type.
|
default StmtContext.Mutable<?,?,?> |
coerceParentContext()
Return the parent statement context, forcing a VerifyException if this is the root statement.
|
StmtContext.Mutable<?,?,?> |
getParentContext()
Return the parent statement context, or null if this is the root statement.
|
StmtContext.Mutable<?,?,?> |
getRoot() |
@NonNull Collection<? extends StmtContext.Mutable<?,?,?>> |
mutableDeclaredSubstatements() |
@NonNull Collection<? extends StmtContext.Mutable<?,?,?>> |
mutableEffectiveSubstatements() |
@NonNull ModelActionBuilder |
newInferenceAction(@NonNull ModelProcessingPhase phase)
Create a new inference action to be executed during specified phase.
|
void |
setCompletedPhase(ModelProcessingPhase completedPhase) |
void |
setIsSupportedToBuildEffective(boolean isSupportedToBuild) |
void |
setRootIdentifier(SourceIdentifier identifier)
Set identifier of current root context.
|
void |
setRootVersion(YangVersion version)
Set version of root statement context.
|
allSubstatements, allSubstatementsStream, buildDeclared, buildEffective, coerceRawStatementArgument, coerceStatementArgument, 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>>
default StmtContext.Mutable<?,?,?> coerceParentContext()
StmtContext
coerceParentContext
in interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
<K,V,T extends K,U extends V,N extends IdentifierNamespace<K,V>> void addToNs(Class<N> type, T key, U value)
K
- namespace key typeV
- namespace value typeN
- namespace typeT
- key typeU
- value typetype
- Namespace typekey
- Keyvalue
- valueNamespaceNotAvailableException
- when the namespace is not available.StmtContext.Mutable<?,?,?> getRoot()
getRoot
in interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
<X,Y extends DeclaredStatement<X>,Z extends EffectiveStatement<X,Y>> StmtContext.Mutable<X,Y,Z> childCopyOf(StmtContext<X,Y,Z> stmt, CopyType type, @Nullable QNameModule targetModule)
stmt
- Statement to be used as a templatetype
- Type of copy to record in historytargetModule
- Optional new target moduleCopyType
(augment, uses)IllegalArgumentException
- if stmt cannot be copied into this statement, for example because it comes
from an alien implementation.SourceException
- instance of SourceExceptiondefault <X,Y extends DeclaredStatement<X>,Z extends EffectiveStatement<X,Y>> StmtContext.Mutable<X,Y,Z> childCopyOf(StmtContext<X,Y,Z> stmt, CopyType type)
stmt
- Statement to be used as a templatetype
- Type of copy to record in historyCopyType
(augment, uses)IllegalArgumentException
- if stmt cannot be copied into this statement, for example because it comes
from an alien implementation.SourceException
- instance of SourceException@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 addRequiredSource(SourceIdentifier dependency)
dependency
- SourceIdentifier of module required by current root
contextvoid addAsEffectOfStatement(StmtContext<?,?,?> ctx)
void addAsEffectOfStatement(Collection<? extends StmtContext<?,?,?>> ctxs)
void setRootIdentifier(SourceIdentifier identifier)
identifier
- of current root context, must not be nullvoid setIsSupportedToBuildEffective(boolean isSupportedToBuild)
void setCompletedPhase(ModelProcessingPhase completedPhase)
Copyright © 2019 OpenDaylight. All rights reserved.