Class YangDataStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<A,D,E>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.BaseStatementSupport<String,D,E>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.BaseStringStatementSupport<YangDataStatement,YangDataEffectiveStatement>
-
- org.opendaylight.yangtools.rfc8040.parser.YangDataStatementSupport
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
,StatementFactory<String,YangDataStatement,YangDataEffectiveStatement>
,StatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
@Beta public final class YangDataStatementSupport extends BaseStringStatementSupport<YangDataStatement,YangDataEffectiveStatement>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
StatementSupport.CopyPolicy
-
-
Method Summary
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.BaseStringStatementSupport
parseArgumentValue
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.BaseStatementSupport
buildEffectiveSubstatements, createDeclared, createEffective, findFirstArgument, findFirstStatement, statementsToBuild
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport
applyCopyPolicy, getPublicView, getSupportSpecificForArgument, hasArgumentSpecificSupports, onLinkageDeclared, onPreLinkageDeclared, onStatementAdded, onStatementDefinitionDeclared
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
adaptArgumentValue, getArgumentDefinition, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getStatementName, getUnknownStatementDefinitionOf, internArgument
-
-
-
-
Method Detail
-
getInstance
public static YangDataStatementSupport getInstance()
-
onFullDefinitionDeclared
public void onFullDefinitionDeclared(StmtContext.Mutable<String,YangDataStatement,YangDataEffectiveStatement> ctx)
Description copied from class:AbstractStatementSupport
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)
..Subclasses of this class may override this method to perform actions on this event or register a modification action using
StmtContext.Mutable.newInferenceAction(ModelProcessingPhase)
.- Specified by:
onFullDefinitionDeclared
in interfaceStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
- Overrides:
onFullDefinitionDeclared
in classAbstractStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
- Parameters:
ctx
- Context of added statement. Argument and statement parent is accessible.
-
isIgnoringIfFeatures
public boolean isIgnoringIfFeatures()
Description copied from interface:StatementSupport
Returns true if this statement support and all its substatements ignore if-feature statements (e.g. yang-data extension defined in RFC 8040). Default implementation returns false.- Returns:
- true if this statement support ignores if-feature statements, otherwise false.
-
isIgnoringConfig
public boolean isIgnoringConfig()
Description copied from interface:StatementSupport
Returns true if this statement support and all its substatements ignore config statements (e.g. yang-data extension defined in RFC 8040). Default implementation returns false.- Returns:
- true if this statement support ignores config statements, otherwise false.
-
getSubstatementValidator
protected SubstatementValidator getSubstatementValidator()
Description copied from class:AbstractStatementSupport
Returns corresponding substatement validator of a statement support.- Specified by:
getSubstatementValidator
in classAbstractStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
- Returns:
- substatement validator or null, if substatement validator is not defined
-
createDeclared
protected YangDataStatement createDeclared(@NonNull StmtContext<String,YangDataStatement,?> ctx, ImmutableList<? extends DeclaredStatement<?>> substatements)
- Specified by:
createDeclared
in classBaseStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
-
createEmptyDeclared
protected YangDataStatement createEmptyDeclared(StmtContext<String,YangDataStatement,?> ctx)
- Specified by:
createEmptyDeclared
in classBaseStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
-
createEffective
protected YangDataEffectiveStatement createEffective(StmtContext<String,YangDataStatement,YangDataEffectiveStatement> ctx, YangDataStatement declared, ImmutableList<? extends EffectiveStatement<?,?>> substatements)
- Specified by:
createEffective
in classBaseStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
-
createEmptyEffective
protected YangDataEffectiveStatement createEmptyEffective(StmtContext<String,YangDataStatement,YangDataEffectiveStatement> ctx, YangDataStatement declared)
- Specified by:
createEmptyEffective
in classBaseStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
-
-