Class DeviationStatementSupport
java.lang.Object
org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport<A,D,E>
org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<SchemaNodeIdentifier.Absolute,DeviationStatement,DeviationEffectiveStatement>
org.opendaylight.yangtools.yang.parser.rfc7950.stmt.meta.DeviationStatementSupport
- All Implemented Interfaces:
StatementFactory<SchemaNodeIdentifier.Absolute,
DeviationStatement, DeviationEffectiveStatement>
public final class DeviationStatementSupport
extends AbstractStatementSupport<SchemaNodeIdentifier.Absolute,DeviationStatement,DeviationEffectiveStatement>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
StatementSupport.CopyPolicy, StatementSupport.StatementEquality<A,
D extends DeclaredStatement<A>>, StatementSupport.StatementPolicy<A, D extends DeclaredStatement<A>> -
Field Summary
Fields inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
NAMESPACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DeviationStatement
attachDeclarationReference
(DeviationStatement stmt, DeclarationReference reference) Attach specifiedDeclarationReference
to a baseline declared statement.protected DeviationStatement
createDeclared
(BoundStmtCtx<SchemaNodeIdentifier.Absolute> ctx, ImmutableList<DeclaredStatement<?>> substatements) protected DeviationEffectiveStatement
createEffective
(EffectiveStmtCtx.Current<SchemaNodeIdentifier.Absolute, DeviationStatement> stmt, ImmutableList<? extends EffectiveStatement<?, ?>> substatements) void
onFullDefinitionDeclared
(StmtContext.Mutable<SchemaNodeIdentifier.Absolute, DeviationStatement, DeviationEffectiveStatement> ctx) Invoked when statement is closed duringModelProcessingPhase.FULL_DECLARATION
phase, only substatements from this phase are available.parseArgumentValue
(StmtContext<?, ?, ?> ctx, String value) Parses textual representation of argument in object representation.Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport
buildEffectiveSubstatements, copyEffective, createDeclared, createEffective, findFirstArgument, findFirstStatement, statementsToBuild, substatementValidator
Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
adaptArgumentValue, argumentName, canReuseCurrent, copyPolicy, definition, extractEffectiveState, getArgumentDefinition, getPublicView, getSupportSpecificForArgument, hasArgumentSpecificSupports, internArgument, isIgnoringConfig, isIgnoringIfFeatures, onLinkageDeclared, onPreLinkageDeclared, onStatementAdded, onStatementDefinitionDeclared, statementName
-
Constructor Details
-
DeviationStatementSupport
-
-
Method Details
-
parseArgumentValue
Description copied from class:StatementSupport
Parses textual representation of argument in object representation.- Specified by:
parseArgumentValue
in classStatementSupport<SchemaNodeIdentifier.Absolute,
DeviationStatement, DeviationEffectiveStatement> - Parameters:
ctx
- Context, which may be used to access source-specific namespaces required for parsing.value
- String representation of value, as was present in text source.- Returns:
- Parsed value
-
onFullDefinitionDeclared
public void onFullDefinitionDeclared(StmtContext.Mutable<SchemaNodeIdentifier.Absolute, DeviationStatement, DeviationEffectiveStatement> ctx) Description copied from class:StatementSupport
Invoked when statement is closed duringModelProcessingPhase.FULL_DECLARATION
phase, only substatements from this phase are available.Implementation may use method to perform actions on this event or register modification action using
StmtContext.Mutable.newInferenceAction(ModelProcessingPhase)
.- Overrides:
onFullDefinitionDeclared
in classStatementSupport<SchemaNodeIdentifier.Absolute,
DeviationStatement, DeviationEffectiveStatement> - Parameters:
ctx
- Context of added statement. Argument and statement parent is accessible.
-
createDeclared
protected DeviationStatement createDeclared(BoundStmtCtx<SchemaNodeIdentifier.Absolute> ctx, ImmutableList<DeclaredStatement<?>> substatements) - Specified by:
createDeclared
in classAbstractStatementSupport<SchemaNodeIdentifier.Absolute,
DeviationStatement, DeviationEffectiveStatement>
-
attachDeclarationReference
protected DeviationStatement attachDeclarationReference(DeviationStatement stmt, DeclarationReference reference) Description copied from class:AbstractStatementSupport
Attach specifiedDeclarationReference
to a baseline declared statement. If an implementation does not support attaching DeclarationReferences, it should return the statement unchanged.- Specified by:
attachDeclarationReference
in classAbstractStatementSupport<SchemaNodeIdentifier.Absolute,
DeviationStatement, DeviationEffectiveStatement> - Parameters:
stmt
- Declared statementreference
-DeclarationReference
to attach- Returns:
- Equivalent of stmt, potentially with specified reference attached.
-
createEffective
protected DeviationEffectiveStatement createEffective(EffectiveStmtCtx.Current<SchemaNodeIdentifier.Absolute, DeviationStatement> stmt, ImmutableList<? extends EffectiveStatement<?, ?>> substatements)
-