Class YangDataStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<String,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 AbstractStatementSupport<String,YangDataStatement,YangDataEffectiveStatement>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
StatementSupport.CopyPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description YangDataStatement
createDeclared(StmtContext<String,YangDataStatement,?> ctx)
Create aDeclaredStatement
for specified context.YangDataEffectiveStatement
createEffective(StmtContext<String,YangDataStatement,YangDataEffectiveStatement> ctx)
Create aEffectiveStatement
for specified context.static YangDataStatementSupport
getInstance()
protected SubstatementValidator
getSubstatementValidator()
Returns corresponding substatement validator of a statement support.boolean
isIgnoringConfig()
Returns true if this statement support and all its substatements ignore config statements (e.g.boolean
isIgnoringIfFeatures()
Returns true if this statement support and all its substatements ignore if-feature statements (e.g.void
onFullDefinitionDeclared(StmtContext.Mutable<String,YangDataStatement,YangDataEffectiveStatement> ctx)
Invoked when statement is closed duringModelProcessingPhase.FULL_DECLARATION
phase, only substatements from this phase are available.String
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
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()
-
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
-
parseArgumentValue
public String parseArgumentValue(StmtContext<?,?,?> ctx, String value)
Description copied from interface:StatementSupport
Parses textual representation of argument in object representation.- 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
public YangDataStatement createDeclared(StmtContext<String,YangDataStatement,?> ctx)
Description copied from interface:StatementFactory
Create aDeclaredStatement
for specified context.- Parameters:
ctx
- Statement context- Returns:
- A declared statement instance.
-
createEffective
public YangDataEffectiveStatement createEffective(StmtContext<String,YangDataStatement,YangDataEffectiveStatement> ctx)
Description copied from interface:StatementFactory
Create aEffectiveStatement
for specified context.- Parameters:
ctx
- Statement context- Returns:
- An effective statement instance.
-
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.
-
-