Class DerivedNamespaceBehaviour<K,V,L,N extends ParserNamespace<K,V>,O extends ParserNamespace<L,?>>
java.lang.Object
org.opendaylight.yangtools.concepts.AbstractIdentifiable<T,T>
org.opendaylight.yangtools.concepts.AbstractSimpleIdentifiable<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 ParserNamespace<K,V>,O extends ParserNamespace<L,?>>
extends NamespaceBehaviour<K,V,N>
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
ConstructorsModifierConstructorDescriptionprotectedDerivedNamespaceBehaviour(Class<N> identifier, Class<O> derivedFrom) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(NamespaceBehaviour.NamespaceStorageNode storage, K key, V value) Adds a key/value to corresponding namespace storage according to param class.protected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper helper) Returns all values of a keys of param class from model namespace storage.abstract VgetFrom(NamespaceBehaviour.NamespaceStorageNode storage, K key) Returns a value from model namespace storage according to key param class.abstract LgetSignificantKey(K key) Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour
addToStorage, findClosestTowardsRoot, getAllFromLocalStorage, getFrom, getFromLocalStorage, global, rootStatementLocal, sourceLocal, statementLocal, treeScopedMethods inherited from class org.opendaylight.yangtools.concepts.AbstractIdentifiable
getIdentifier, toString
-
Constructor Details
-
DerivedNamespaceBehaviour
-
-
Method Details
-
getDerivedFrom
-
getAllFrom
Description copied from class:NamespaceBehaviourReturns all values of a keys of param class from model namespace storage.- Specified by:
getAllFromin classNamespaceBehaviour<K,V, N extends ParserNamespace<K, V>> - Parameters:
storage- namespace storage- Returns:
- all values of keys of param class from model namespace storage
-
getFrom
Description copied from class:NamespaceBehaviourReturns a value from model namespace storage according to key param class.- Specified by:
getFromin classNamespaceBehaviour<K,V, N extends ParserNamespace<K, V>> - Parameters:
storage- namespace storagekey- type parameter- Returns:
- value from model namespace storage according to key param class
-
addTo
Description copied from class:NamespaceBehaviourAdds a key/value to corresponding namespace storage according to param class.- Specified by:
addToin classNamespaceBehaviour<K,V, N extends ParserNamespace<K, V>> - Parameters:
storage- namespace storagekey- type parametervalue- type parameter
-
getSignificantKey
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper helper) - Overrides:
addToStringAttributesin classNamespaceBehaviour<K,V, N extends ParserNamespace<K, V>>
-