Class DerivedNamespaceBehaviour<K,V,L,O extends ParserNamespace<L,?>>
java.lang.Object
org.opendaylight.yangtools.concepts.AbstractIdentifiable<T,T>
org.opendaylight.yangtools.concepts.AbstractSimpleIdentifiable<ParserNamespace<K,V>>
org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour<K,V>
org.opendaylight.yangtools.yang.parser.spi.meta.DerivedNamespaceBehaviour<K,V,L,O>
- Type Parameters:
K
- Key typeV
- Value typeL
- Original key typeO
- Original namespace type
- All Implemented Interfaces:
Identifiable<ParserNamespace<K,
V>>
public abstract class DerivedNamespaceBehaviour<K,V,L,O extends ParserNamespace<L,?>>
extends NamespaceBehaviour<K,V>
An
NamespaceBehaviour
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.OnDemandSchemaTreeStorageNode, NamespaceBehaviour.Registry, NamespaceBehaviour.StorageNodeType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DerivedNamespaceBehaviour
(ParserNamespace<K, V> identifier, O derivedFrom) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTo
(NamespaceBehaviour.NamespaceStorageNode storage, K key, V value) Adds a key/value to corresponding namespace storage according to param class.protected MoreObjects.ToStringHelper
Returns all values of a keys of param class from model namespace storage.final @NonNull O
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
-
Constructor Details
-
DerivedNamespaceBehaviour
-
-
Method Details
-
getDerivedFrom
-
getAllFrom
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> - Parameters:
storage
- namespace storage- Returns:
- all values of keys of param class from model namespace storage
-
getFrom
Description copied from class:NamespaceBehaviour
Returns a value from model namespace storage according to key param class.- Specified by:
getFrom
in classNamespaceBehaviour<K,
V> - Parameters:
storage
- namespace storagekey
- type parameter- Returns:
- value from model namespace storage according to key param class
-
addTo
Description copied from class:NamespaceBehaviour
Adds a key/value to corresponding namespace storage according to param class.- Specified by:
addTo
in classNamespaceBehaviour<K,
V> - Parameters:
storage
- namespace storagekey
- type parametervalue
- type parameter
-
getSignificantKey
-
addToStringAttributes
- Overrides:
addToStringAttributes
in classNamespaceBehaviour<K,
V>
-