Class DefValStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<String,DefValStatement,DefValEffectiveStatement>
-
- org.opendaylight.yangtools.rfc6643.parser.DefValStatementSupport
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
,StatementFactory<String,DefValStatement,DefValEffectiveStatement>
,StatementSupport<String,DefValStatement,DefValEffectiveStatement>
@Beta public final class DefValStatementSupport extends AbstractStatementSupport<String,DefValStatement,DefValEffectiveStatement>
-
-
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 org.opendaylight.yangtools.rfc6643.parser.DefValStatementImpl
createDeclared(StmtContext<String,DefValStatement,?> ctx)
Create aDeclaredStatement
for specified context.DefValEffectiveStatement
createEffective(StmtContext<String,DefValStatement,DefValEffectiveStatement> ctx)
Create aEffectiveStatement
for specified context.static DefValStatementSupport
getInstance()
protected SubstatementValidator
getSubstatementValidator()
Returns corresponding substatement validator of a statement support.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, onFullDefinitionDeclared, 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, isIgnoringConfig, isIgnoringIfFeatures
-
-
-
-
Method Detail
-
getInstance
public static DefValStatementSupport getInstance()
-
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
-
getSubstatementValidator
protected SubstatementValidator getSubstatementValidator()
Description copied from class:AbstractStatementSupport
Returns corresponding substatement validator of a statement support.- Specified by:
getSubstatementValidator
in classAbstractStatementSupport<String,DefValStatement,DefValEffectiveStatement>
- Returns:
- substatement validator or null, if substatement validator is not defined
-
createDeclared
public org.opendaylight.yangtools.rfc6643.parser.DefValStatementImpl createDeclared(StmtContext<String,DefValStatement,?> ctx)
Description copied from interface:StatementFactory
Create aDeclaredStatement
for specified context.- Parameters:
ctx
- Statement context- Returns:
- A declared statement instance.
-
createEffective
public DefValEffectiveStatement createEffective(StmtContext<String,DefValStatement,DefValEffectiveStatement> ctx)
Description copied from interface:StatementFactory
Create aEffectiveStatement
for specified context.- Parameters:
ctx
- Statement context- Returns:
- An effective statement instance.
-
-