Class AnnotationStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
- org.opendaylight.yangtools.rfc7952.parser.AnnotationStatementSupport
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
,StatementFactory<QName,AnnotationStatement,AnnotationEffectiveStatement>
,StatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
public final class AnnotationStatementSupport extends AbstractStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationStatement
createDeclared(StmtContext<QName,AnnotationStatement,?> ctx)
Create aDeclaredStatement
for specified context.AnnotationEffectiveStatement
createEffective(StmtContext<QName,AnnotationStatement,AnnotationEffectiveStatement> ctx)
Create aEffectiveStatement
for specified context.static AnnotationStatementSupport
getInstance()
protected SubstatementValidator
getSubstatementValidator()
Returns corresponding substatement validator of a statement support.void
onStatementAdded(StmtContext.Mutable<QName,AnnotationStatement,AnnotationEffectiveStatement> stmt)
Invoked when a statement supported by this instance is added to build context.QName
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
getPublicView, getSupportSpecificForArgument, hasArgumentSpecificSupports, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, 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, isIgnoringConfig, isIgnoringIfFeatures
-
-
-
-
Method Detail
-
getInstance
public static AnnotationStatementSupport getInstance()
-
createDeclared
public AnnotationStatement createDeclared(StmtContext<QName,AnnotationStatement,?> ctx)
Description copied from interface:StatementFactory
Create aDeclaredStatement
for specified context.- Parameters:
ctx
- Statement context- Returns:
- A declared statement instance.
-
createEffective
public AnnotationEffectiveStatement createEffective(StmtContext<QName,AnnotationStatement,AnnotationEffectiveStatement> ctx)
Description copied from interface:StatementFactory
Create aEffectiveStatement
for specified context.- Parameters:
ctx
- Statement context- Returns:
- An effective statement instance.
-
parseArgumentValue
public QName 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
-
onStatementAdded
public void onStatementAdded(StmtContext.Mutable<QName,AnnotationStatement,AnnotationEffectiveStatement> stmt)
Description copied from interface:StatementSupport
Invoked when a statement supported by this instance is added to build context. This allows implementations of this interface to start tracking the statement and perform any modifications to the build context hierarchy, accessible viaStmtContext.getParentContext()
. One such use is populating the parent's namespaces to allow it to locate this child statement.- Specified by:
onStatementAdded
in interfaceStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
- Overrides:
onStatementAdded
in classAbstractStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
- Parameters:
stmt
- Context of added statement. No substatements are available.
-
getSubstatementValidator
protected SubstatementValidator getSubstatementValidator()
Description copied from class:AbstractStatementSupport
Returns corresponding substatement validator of a statement support.- Specified by:
getSubstatementValidator
in classAbstractStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
- Returns:
- substatement validator or null, if substatement validator is not defined
-
-