public class SourceSpecificContext extends Object implements NamespaceBehaviour.NamespaceStorageNode, NamespaceBehaviour.Registry, Mutable
Modifier and Type | Class and Description |
---|---|
static class |
SourceSpecificContext.PhaseCompletionProgress |
Modifier and Type | Method and Description |
---|---|
<K,V,N extends IdentifierNamespace<K,V>> |
getAllFromLocalStorage(Class<N> type) |
<K,V,N extends IdentifierNamespace<K,V>> |
getFromLocalStorage(Class<N> type,
K key) |
<K,V,N extends IdentifierNamespace<K,V>> |
getNamespaceBehaviour(Class<N> type)
Get a namespace behavior.
|
NamespaceBehaviour.NamespaceStorageNode |
getParentNamespaceStorage() |
NamespaceBehaviour.StorageNodeType |
getStorageNodeType()
Return local namespace behaviour type.
|
Set<YangVersion> |
getSupportedVersions() |
<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.
|
String |
toString() |
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
- Valuepublic <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
- Valuepublic NamespaceBehaviour.StorageNodeType getStorageNodeType()
NamespaceBehaviour.NamespaceStorageNode
getStorageNodeType
in interface NamespaceBehaviour.NamespaceStorageNode
NamespaceBehaviour
public <K,V,N extends IdentifierNamespace<K,V>> V getFromLocalStorage(Class<N> type, K key)
getFromLocalStorage
in interface NamespaceBehaviour.NamespaceStorageNode
public <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAllFromLocalStorage(Class<N> type)
getAllFromLocalStorage
in interface NamespaceBehaviour.NamespaceStorageNode
public <K,V,N extends IdentifierNamespace<K,V>> NamespaceBehaviour<K,V,N> getNamespaceBehaviour(Class<N> type)
NamespaceBehaviour.Registry
getNamespaceBehaviour
in interface NamespaceBehaviour.Registry
K
- key typeV
- value typeN
- namespace typetype
- Namespace type classpublic NamespaceBehaviour.NamespaceStorageNode getParentNamespaceStorage()
getParentNamespaceStorage
in interface NamespaceBehaviour.NamespaceStorageNode
public Set<YangVersion> getSupportedVersions()
Copyright © 2019 OpenDaylight. All rights reserved.