public abstract class DerivedNamespaceBehaviour<K,V,DK,N extends IdentifierNamespace<K,V>,DN extends IdentifierNamespace<DK,?>> extends NamespaceBehaviour<K,V,N>
NamespaceBehaviour.NamespaceStorageNode, NamespaceBehaviour.Registry, NamespaceBehaviour.StorageNodeType
Modifier | Constructor and Description |
---|---|
protected |
DerivedNamespaceBehaviour(Class<N> identifier,
Class<DN> derivedFrom) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(NamespaceBehaviour.NamespaceStorageNode storage,
K key,
V value)
adds key and value to corresponding namespace storage according to param class
|
Map<K,V> |
getAllFrom(NamespaceBehaviour.NamespaceStorageNode storage)
returns all values of a keys of param class from model namespace storage
|
Class<DN> |
getDerivedFrom() |
abstract V |
getFrom(NamespaceBehaviour.NamespaceStorageNode storage,
K key)
returns value from model namespace storage according to key param class
|
abstract DK |
getSignificantKey(K key) |
addToStorage, findClosestTowardsRoot, getAllFromLocalStorage, getFromLocalStorage, getIdentifier, global, sourceLocal, statementLocal, treeScoped
public Map<K,V> getAllFrom(NamespaceBehaviour.NamespaceStorageNode storage)
NamespaceBehaviour
getAllFrom
in class NamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
storage
- namespace storagepublic abstract V getFrom(NamespaceBehaviour.NamespaceStorageNode storage, K key)
NamespaceBehaviour
getFrom
in class NamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
storage
- namespace storagekey
- type parameterpublic void addTo(NamespaceBehaviour.NamespaceStorageNode storage, K key, V value)
NamespaceBehaviour
addTo
in class NamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
storage
- namespace storagekey
- type parametervalue
- type parameterCopyright © 2018 OpenDaylight. All rights reserved.