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) |
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) |
StatementContextBase<A,D,E> |
createCopy(QNameModule newQNameModule,
StatementContextBase<?,?,?> newParent,
CopyType typeOfCopy) |
StatementContextBase<A,D,E> |
createCopy(StatementContextBase<?,?,?> newParent,
CopyType typeOfCopy) |
<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() |
<K,V,N extends IdentifierNamespace<K,V>> |
getFromLocalStorage(Class<N> type,
K key) |
<K,V,KT extends K,N extends IdentifierNamespace<K,V>> |
getFromNamespace(Class<N> type,
KT key) |
StatementContextBase<?,?,?> |
getParentContext()
Return the parent statement context, or null if this is the root statement.
|
NamespaceBehaviour.NamespaceStorageNode |
getParentNamespaceStorage() |
RootStatementContext<?,?,?> |
getRoot() |
YangVersion |
getRootVersion()
Return version of root statement context.
|
Optional<SchemaPath> |
getSchemaPath()
Return the
SchemaPath of this statement. |
A |
getStatementArgument() |
NamespaceBehaviour.StorageNodeType |
getStorageNodeType() |
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(ModuleIdentifier identifier)
Set identifier of current root context.
|
void |
setRootVersion(YangVersion version)
Set version of root statement context.
|
addAsEffectOfStatement, addAsEffectOfStatement, addContext, addEffectiveSubstatement, addEffectiveSubstatements, addToStringAttributes, buildDeclared, buildEffective, checkLocalNamespaceAllowed, createSubstatement, declaredSubstatements, definition, effectiveSubstatements, getCompletedPhase, getCopyHistory, getEffectOfStatement, getOriginalCtx, getPublicDefinition, getStatementSource, getStatementSourceReference, isSupportedByFeatures, isSupportedToBuildEffective, mutableDeclaredSubstatements, mutableEffectiveSubstatements, newInferenceAction, onNamespaceElementAdded, rawStatementArgument, removeStatementFromEffectiveSubstatements, removeStatementFromEffectiveSubstatements, removeStatementsFromEffectiveSubstatements, setCompletedPhase, setIsSupportedToBuildEffective, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addToNs
getAllFromCurrentStmtCtxNamespace, getAllFromNamespace, getFromNamespace
public static final YangVersion DEFAULT_VERSION
public StatementContextBase<?,?,?> getParentContext()
StmtContext
getParentContext
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.NamespaceStorageNode
public NamespaceBehaviour.Registry getBehaviourRegistry()
public NamespaceBehaviour.StorageNodeType getStorageNodeType()
NamespaceBehaviour
@Nonnull public RootStatementContext<?,?,?> getRoot()
getRoot
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()
public StatementContextBase<A,D,E> createCopy(StatementContextBase<?,?,?> newParent, CopyType typeOfCopy)
CopyType
(augment, uses)public StatementContextBase<A,D,E> createCopy(QNameModule newQNameModule, StatementContextBase<?,?,?> newParent, CopyType typeOfCopy)
CopyType
(augment, uses)@Nonnull public Optional<SchemaPath> getSchemaPath()
StmtContext
SchemaPath
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.NamespaceStorageNode
Map.put(Object, Object)
.putToLocalStorage
in interface NamespaceBehaviour.NamespaceStorageNode
type
- Namespace identifierkey
- Keyvalue
- Value@Nullable public <K,V,N extends IdentifierNamespace<K,V>> V getFromLocalStorage(Class<N> type, K key)
getFromLocalStorage
in interface NamespaceBehaviour.NamespaceStorageNode
@Nullable public <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromLocalStorage(Class<N> type)
getAllFromLocalStorage
in interface NamespaceBehaviour.NamespaceStorageNode
public YangVersion getRootVersion()
StmtContext
public void setRootVersion(YangVersion version)
StmtContext.Mutable
version
- of root statement contextpublic void addMutableStmtToSeal(MutableStatement mutableStatement)
StmtContext.Mutable
mutableStatement
- mutable statement which should be sealedpublic void addRequiredModule(ModuleIdentifier dependency)
StmtContext.Mutable
dependency
- ModuleIdentifier of module required by current root
contextpublic void setRootIdentifier(ModuleIdentifier identifier)
StmtContext.Mutable
identifier
- of current root contextprotected 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>>
@Nonnull public final <K,V,KT extends K,N extends IdentifierNamespace<K,V>> V getFromNamespace(Class<N> type, KT key) throws NamespaceNotAvailableException
NamespaceNotAvailableException
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,KT extends K,VT extends V,N extends IdentifierNamespace<K,V>> void addToNs(Class<N> type, KT key, VT value) throws NamespaceNotAvailableException
NamespaceNotAvailableException
public final <K,N extends StatementNamespace<K,?,?>> void addContextToNamespace(Class<N> type, K key, StmtContext<?,?,?> value) throws NamespaceNotAvailableException
NamespaceNotAvailableException
public <K,V,N extends IdentifierNamespace<K,V>> V putToLocalStorageIfAbsent(Class<N> type, K key, V value)
NamespaceBehaviour.NamespaceStorageNode
Map.putIfAbsent(Object, Object)
.putToLocalStorageIfAbsent
in interface NamespaceBehaviour.NamespaceStorageNode
type
- Namespace identifierkey
- Keyvalue
- ValueCopyright © 2018 OpenDaylight. All rights reserved.