Class AnnotationStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<A,D,E>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.BaseStatementSupport<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 BaseStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
-
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.BaseStatementSupport
buildEffectiveSubstatements, createDeclared, createEffective, findFirstArgument, findFirstStatement, statementsToBuild
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport
applyCopyPolicy, 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()
-
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
-
createDeclared
protected AnnotationStatement createDeclared(StmtContext<QName,AnnotationStatement,?> ctx, ImmutableList<? extends DeclaredStatement<?>> substatements)
- Specified by:
createDeclared
in classBaseStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
createEmptyDeclared
protected AnnotationStatement createEmptyDeclared(StmtContext<QName,AnnotationStatement,?> ctx)
- Specified by:
createEmptyDeclared
in classBaseStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
createEffective
protected AnnotationEffectiveStatement createEffective(StmtContext<QName,AnnotationStatement,AnnotationEffectiveStatement> ctx, AnnotationStatement declared, ImmutableList<? extends EffectiveStatement<?,?>> substatements)
- Specified by:
createEffective
in classBaseStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
createEmptyEffective
protected AnnotationEffectiveStatement createEmptyEffective(StmtContext<QName,AnnotationStatement,AnnotationEffectiveStatement> ctx, AnnotationStatement declared)
- Specified by:
createEmptyEffective
in classBaseStatementSupport<QName,AnnotationStatement,AnnotationEffectiveStatement>
-
-