Class OpenConfigVersionSupport
java.lang.Object
org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport<SemVer,OpenConfigVersionStatement,OpenConfigVersionEffectiveStatement>
org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<SemVer,OpenConfigVersionStatement,OpenConfigVersionEffectiveStatement>
org.opendaylight.yangtools.openconfig.parser.OpenConfigVersionSupport
- All Implemented Interfaces:
StatementFactory<SemVer,
OpenConfigVersionStatement, OpenConfigVersionEffectiveStatement>
public final class OpenConfigVersionSupport
extends AbstractStatementSupport<SemVer,OpenConfigVersionStatement,OpenConfigVersionEffectiveStatement>
-
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 OpenConfigVersionStatement
attachDeclarationReference
(OpenConfigVersionStatement stmt, DeclarationReference reference) Attach specifiedDeclarationReference
to a baseline declared statement.protected OpenConfigVersionStatement
createDeclared
(BoundStmtCtx<SemVer> ctx, ImmutableList<DeclaredStatement<?>> substatements) protected OpenConfigVersionEffectiveStatement
createEffective
(EffectiveStmtCtx.Current<SemVer, OpenConfigVersionStatement> stmt, ImmutableList<? extends EffectiveStatement<?, ?>> substatements) 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, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementAdded, onStatementDefinitionDeclared, statementName
-
Constructor Details
-
OpenConfigVersionSupport
-
-
Method Details
-
parseArgumentValue
Description copied from class:StatementSupport
Parses textual representation of argument in object representation.- Specified by:
parseArgumentValue
in classStatementSupport<SemVer,
OpenConfigVersionStatement, OpenConfigVersionEffectiveStatement> - 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
-
createDeclared
protected OpenConfigVersionStatement createDeclared(BoundStmtCtx<SemVer> ctx, ImmutableList<DeclaredStatement<?>> substatements) - Specified by:
createDeclared
in classAbstractStatementSupport<SemVer,
OpenConfigVersionStatement, OpenConfigVersionEffectiveStatement>
-
attachDeclarationReference
protected OpenConfigVersionStatement attachDeclarationReference(OpenConfigVersionStatement 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<SemVer,
OpenConfigVersionStatement, OpenConfigVersionEffectiveStatement> - Parameters:
stmt
- Declared statementreference
-DeclarationReference
to attach- Returns:
- Equivalent of stmt, potentially with specified reference attached.
-
createEffective
protected OpenConfigVersionEffectiveStatement createEffective(EffectiveStmtCtx.Current<SemVer, OpenConfigVersionStatement> stmt, ImmutableList<? extends EffectiveStatement<?, ?>> substatements) - Specified by:
createEffective
in classAbstractStatementSupport<SemVer,
OpenConfigVersionStatement, OpenConfigVersionEffectiveStatement>
-