public class RootStatementContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> extends StatementContextBase<A,D,E>
StmtContext.Mutable<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>| Modifier and Type | Field and Description |
|---|---|
static YangVersion |
DEFAULT_VERSION |
| Modifier and Type | Method and Description |
|---|---|
<K,N extends StatementNamespace<K,?,?>> |
addContextToNamespace(Class<N> type,
K key,
StmtContext<?,?,?> value)
Associate a context with a key within a namespace.
|
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.
|
<K,V,N extends IdentifierNamespace<K,V>> |
getAllFromCurrentStmtCtxNamespace(Class<N> type) |
<K,V,N extends IdentifierNamespace<K,V>> |
getAllFromLocalStorage(Class<N> type) |
<K,V,N extends IdentifierNamespace<K,V>> |
getAllFromNamespace(Class<N> type) |
NamespaceBehaviour.Registry |
getBehaviourRegistry()
Return the registry of a source context.
|
<K,V,N extends IdentifierNamespace<K,V>> |
getFromLocalStorage(Class<N> type,
K key) |
<K,V,N extends IdentifierNamespace<K,V>> |
getFromNamespace(Class<N> type,
NamespaceKeyCriterion<K> criterion) |
<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.
|
StatementContextBase<?,?,?> |
getParentContext()
Return the parent statement context, or null if this is the root statement.
|
NamespaceBehaviour.NamespaceStorageNode |
getParentNamespaceStorage() |
RootStatementContext<?,?,?> |
getRoot()
Returns the model root for this statement.
|
YangVersion |
getRootVersion()
Return version of root statement context.
|
Optional<SchemaPath> |
getSchemaPath()
Return the
SchemaPath of this statement. |
A |
getStatementArgument()
Return the statement argument.
|
NamespaceBehaviour.StorageNodeType |
getStorageNodeType()
Return local namespace behaviour type.
|
boolean |
isConfiguration() |
boolean |
isEnabledSemanticVersioning() |
protected boolean |
isIgnoringConfig() |
protected boolean |
isIgnoringIfFeatures() |
protected boolean |
isParentSupportedByFeatures() |
<K,V,N extends IdentifierNamespace<K,V>> |
putToLocalStorage(Class<N> type,
K key,
V value)
Populate specified namespace with a key/value pair, overwriting previous contents.
|
<K,V,N extends IdentifierNamespace<K,V>> |
putToLocalStorageIfAbsent(Class<N> type,
K key,
V value)
Populate specified namespace with a key/value pair unless the key is already associated with a value.
|
void |
setRootIdentifier(SourceIdentifier identifier)
Set identifier of current root context.
|
void |
setRootVersion(YangVersion version)
Set version of root statement context.
|
addAsEffectOfStatement, addAsEffectOfStatement, addContext, addEffectiveSubstatement, addEffectiveSubstatements, addToStringAttributes, appendImplicitStatement, buildDeclared, buildEffective, checkLocalNamespaceAllowed, childCopyOf, createSubstatement, declaredSubstatements, definition, effectiveSubstatements, getCompletedPhase, getCopyHistory, getDefinition, getEffectOfStatement, getOriginalCtx, getPublicDefinition, getSourceReference, getStatementSource, getStatementSourceReference, isFullyDefined, isSupportedByFeatures, isSupportedToBuildEffective, mutableDeclaredSubstatements, mutableEffectiveSubstatements, newInferenceAction, onNamespaceElementAdded, rawStatementArgument, removeStatementFromEffectiveSubstatements, removeStatementFromEffectiveSubstatements, removeStatementsFromEffectiveSubstatements, setCompletedPhase, setIsSupportedToBuildEffective, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddToNs, childCopyOf, coerceParentContextallSubstatements, allSubstatementsStream, coerceRawStatementArgument, coerceStatementArgument, getAllFromCurrentStmtCtxNamespace, getAllFromNamespace, getFromNamespacepublic static final YangVersion DEFAULT_VERSION
public StatementContextBase<?,?,?> getParentContext()
StmtContextgetParentContext in interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>getParentContext in interface StmtContext.Mutable<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>getParentContext in class StatementContextBase<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>public NamespaceBehaviour.NamespaceStorageNode getParentNamespaceStorage()
getParentNamespaceStorage in interface NamespaceBehaviour.NamespaceStorageNodepublic NamespaceBehaviour.Registry getBehaviourRegistry()
public NamespaceBehaviour.StorageNodeType getStorageNodeType()
NamespaceBehaviour.NamespaceStorageNodeNamespaceBehaviourpublic RootStatementContext<?,?,?> getRoot()
StatementContextBasegetRoot in interface StmtContext<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>getRoot in interface StmtContext.Mutable<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>getRoot in class StatementContextBase<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>public A getStatementArgument()
StmtContextpublic Optional<SchemaPath> getSchemaPath()
StmtContextSchemaPath of this statement. Not all statements have a SchemaPath, in which case
Optional.empty() is returned.public boolean isConfiguration()
public boolean isEnabledSemanticVersioning()
public <K,V,N extends IdentifierNamespace<K,V>> V putToLocalStorage(Class<N> type, K key, V value)
NamespaceBehaviour.NamespaceStorageNodeMap.put(Object, Object).putToLocalStorage in interface NamespaceBehaviour.NamespaceStorageNodetype - Namespace identifierkey - Keyvalue - Valuepublic <K,V,N extends IdentifierNamespace<K,V>> V getFromLocalStorage(Class<N> type, K key)
getFromLocalStorage in interface NamespaceBehaviour.NamespaceStorageNodepublic <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromLocalStorage(Class<N> type)
getAllFromLocalStorage in interface NamespaceBehaviour.NamespaceStorageNodepublic YangVersion getRootVersion()
StmtContextpublic void setRootVersion(YangVersion version)
StmtContext.Mutableversion - of root statement contextpublic void addMutableStmtToSeal(MutableStatement mutableStatement)
StmtContext.MutablemutableStatement - mutable statement which should be sealedpublic void addRequiredSource(SourceIdentifier dependency)
StmtContext.Mutabledependency - SourceIdentifier of module required by current root
contextpublic void setRootIdentifier(SourceIdentifier identifier)
StmtContext.Mutableidentifier - of current root context, must not be nullprotected boolean isIgnoringIfFeatures()
isIgnoringIfFeatures in class StatementContextBase<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>protected boolean isIgnoringConfig()
isIgnoringConfig in class StatementContextBase<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>protected boolean isParentSupportedByFeatures()
isParentSupportedByFeatures in class StatementContextBase<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>public final <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.public final <K,V,N extends IdentifierNamespace<K,V>> Optional<Map.Entry<K,V>> getFromNamespace(Class<N> type, NamespaceKeyCriterion<K> criterion)
public final <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromNamespace(Class<N> type)
public final <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromCurrentStmtCtxNamespace(Class<N> type)
public final <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.public final <K,N extends StatementNamespace<K,?,?>> void addContextToNamespace(Class<N> type, K key, StmtContext<?,?,?> value)
K - namespace key typeN - namespace typetype - Namespace typekey - Keyvalue - Context valueNamespaceNotAvailableException - when the namespace is not available.public <K,V,N extends IdentifierNamespace<K,V>> V putToLocalStorageIfAbsent(Class<N> type, K key, V value)
NamespaceBehaviour.NamespaceStorageNodeMap.putIfAbsent(Object, Object).putToLocalStorageIfAbsent in interface NamespaceBehaviour.NamespaceStorageNodetype - Namespace identifierkey - Keyvalue - ValueCopyright © 2019 OpenDaylight. All rights reserved.