Class DerivedNamespaceBehaviour<K,V,L,N extends IdentifierNamespace<K,V>,O extends IdentifierNamespace<L,?>>
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractIdentifiable<Class<N>>
-
- org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour<K,V,N>
-
- org.opendaylight.yangtools.yang.parser.spi.meta.DerivedNamespaceBehaviour<K,V,L,N,O>
-
- Type Parameters:
K
- Key typeV
- Value typeN
- Namespace typeL
- Original key typeO
- Original namespace type
- All Implemented Interfaces:
Identifiable<Class<N>>
public abstract class DerivedNamespaceBehaviour<K,V,L,N extends IdentifierNamespace<K,V>,O extends IdentifierNamespace<L,?>> extends NamespaceBehaviour<K,V,N>
AnNamespaceBehaviour
which derives keys from a different namespace.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour
NamespaceBehaviour.NamespaceStorageNode, NamespaceBehaviour.Registry, NamespaceBehaviour.StorageNodeType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DerivedNamespaceBehaviour(Class<N> identifier, Class<O> derivedFrom)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addTo(NamespaceBehaviour.NamespaceStorageNode storage, K key, V value)
Adds a key/value to corresponding namespace storage according to param class.protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper helper)
Map<K,V>
getAllFrom(NamespaceBehaviour.NamespaceStorageNode storage)
Returns all values of a keys of param class from model namespace storage.Class<O>
getDerivedFrom()
abstract V
getFrom(NamespaceBehaviour.NamespaceStorageNode storage, K key)
Returns a value from model namespace storage according to key param class.abstract L
getSignificantKey(K key)
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour
addToStorage, findClosestTowardsRoot, getAllFromLocalStorage, getFrom, getFromLocalStorage, global, rootStatementLocal, sourceLocal, statementLocal, treeScoped
-
Methods inherited from class org.opendaylight.yangtools.concepts.AbstractIdentifiable
getIdentifier, toString
-
-
-
-
Method Detail
-
getAllFrom
public Map<K,V> getAllFrom(NamespaceBehaviour.NamespaceStorageNode storage)
Description copied from class:NamespaceBehaviour
Returns all values of a keys of param class from model namespace storage.- Specified by:
getAllFrom
in classNamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
- Parameters:
storage
- namespace storage- Returns:
- all values of keys of param class from model namespace storage
-
getFrom
public abstract V getFrom(NamespaceBehaviour.NamespaceStorageNode storage, K key)
Description copied from class:NamespaceBehaviour
Returns a value from model namespace storage according to key param class.- Specified by:
getFrom
in classNamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
- Parameters:
storage
- namespace storagekey
- type parameter- Returns:
- value from model namespace storage according to key param class
-
addTo
public void addTo(NamespaceBehaviour.NamespaceStorageNode storage, K key, V value)
Description copied from class:NamespaceBehaviour
Adds a key/value to corresponding namespace storage according to param class.- Specified by:
addTo
in classNamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
- Parameters:
storage
- namespace storagekey
- type parametervalue
- type parameter
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper helper)
- Overrides:
addToStringAttributes
in classNamespaceBehaviour<K,V,N extends IdentifierNamespace<K,V>>
-
-