Class OidStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport<A,D,E>
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<ObjectIdentifier,OidStatement,OidEffectiveStatement>
-
- org.opendaylight.yangtools.rfc6643.parser.OidStatementSupport
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
,StatementFactory<ObjectIdentifier,OidStatement,OidEffectiveStatement>
@Beta public final class OidStatementSupport extends AbstractStatementSupport<ObjectIdentifier,OidStatement,OidEffectiveStatement>
-
-
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>>
-
-
Constructor Summary
Constructors Constructor Description OidStatementSupport(YangParserConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OidStatement
attachDeclarationReference(OidStatement stmt, DeclarationReference reference)
Attach specifiedDeclarationReference
to a baseline declared statement.protected OidStatement
createDeclared(StmtContext<ObjectIdentifier,OidStatement,?> ctx, ImmutableList<? extends DeclaredStatement<?>> substatements)
protected OidEffectiveStatement
createEffective(EffectiveStmtCtx.Current<ObjectIdentifier,OidStatement> stmt, ImmutableList<? extends EffectiveStatement<?,?>> substatements)
ObjectIdentifier
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, canReuseCurrent, copyPolicy, getArgumentDefinition, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getPublicView, getStatementName, getSupportSpecificForArgument, hasArgumentSpecificSupports, internArgument, isIgnoringConfig, isIgnoringIfFeatures, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementAdded, onStatementDefinitionDeclared
-
-
-
-
Constructor Detail
-
OidStatementSupport
public OidStatementSupport(YangParserConfiguration config)
-
-
Method Detail
-
parseArgumentValue
public ObjectIdentifier parseArgumentValue(StmtContext<?,?,?> ctx, String value)
Description copied from class:StatementSupport
Parses textual representation of argument in object representation.- Specified by:
parseArgumentValue
in classStatementSupport<ObjectIdentifier,OidStatement,OidEffectiveStatement>
- 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 OidStatement createDeclared(StmtContext<ObjectIdentifier,OidStatement,?> ctx, ImmutableList<? extends DeclaredStatement<?>> substatements)
- Specified by:
createDeclared
in classAbstractStatementSupport<ObjectIdentifier,OidStatement,OidEffectiveStatement>
-
attachDeclarationReference
protected OidStatement attachDeclarationReference(OidStatement 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<ObjectIdentifier,OidStatement,OidEffectiveStatement>
- Parameters:
stmt
- Declared statementreference
-DeclarationReference
to attach- Returns:
- Equivalent of stmt, potentially with specified reference attached.
-
createEffective
protected OidEffectiveStatement createEffective(EffectiveStmtCtx.Current<ObjectIdentifier,OidStatement> stmt, ImmutableList<? extends EffectiveStatement<?,?>> substatements)
- Specified by:
createEffective
in classAbstractStatementSupport<ObjectIdentifier,OidStatement,OidEffectiveStatement>
-
-