Class SchemaInferenceStack.Inference
java.lang.Object
org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveModelContextProvider
org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveStatementInference<EffectiveStatement<?,?>>
org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.Inference
- All Implemented Interfaces:
Immutable
,EffectiveModelContextProvider
,EffectiveStatementInference
- Enclosing class:
- SchemaInferenceStack
@Beta
public static final class SchemaInferenceStack.Inference
extends AbstractEffectiveStatementInference<EffectiveStatement<?,?>>
Semantic binding of
EffectiveStatementInference
produced by SchemaInferenceStack
. Sequence of
statementPath()
is implementation-specific.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveStatementInference
AbstractEffectiveStatementInference.WithPath<T extends EffectiveStatement<?,
?>> -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull SchemaInferenceStack.Inference
ofDataTreePath
(EffectiveModelContext effectiveModel, QName... qnames) Create a new stack backed by an effective model and set up to point and specified data tree node.List<EffectiveStatement<?,
?>> @NonNull SchemaInferenceStack
Convert this inference into aSchemaInferenceStack
.Methods inherited from class org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveModelContextProvider
addToStringAttributes, getEffectiveModelContext, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider
getEffectiveModelContext
-
Method Details
-
ofDataTreePath
public static @NonNull SchemaInferenceStack.Inference ofDataTreePath(EffectiveModelContext effectiveModel, QName... qnames) Create a new stack backed by an effective model and set up to point and specified data tree node.- Parameters:
effectiveModel
- EffectiveModelContext to which this stack is attachedqnames
- Data tree path qnames- Returns:
- A new stack
- Throws:
NullPointerException
- if any argument is null or path contains a null elementIllegalArgumentException
- if a path element cannot be found
-
statementPath
Description copied from interface:EffectiveStatementInference
AnUnmodifiable
List
ofEffectiveStatement
s, ordered in some meaningful way. Precise semantics of the statement order is clarified by individualEffectiveStatementInference
specializations.- Specified by:
statementPath
in interfaceEffectiveStatementInference
- Specified by:
statementPath
in classAbstractEffectiveStatementInference<EffectiveStatement<?,
?>> - Returns:
- A List of EffectiveStatements
- See Also:
-
toSchemaInferenceStack
Convert this inference into aSchemaInferenceStack
.- Returns:
- A new stack
-