@Beta public final class ChoiceStatementRFC7950Support extends AbstractQNameStatementSupport<ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
Modifier and Type | Method and Description |
---|---|
ChoiceStatement |
createDeclared(StmtContext<QName,ChoiceStatement,?> ctx)
Create a
DeclaredStatement for specified context. |
EffectiveStatement<QName,ChoiceStatement> |
createEffective(StmtContext<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> ctx)
Create a
EffectiveStatement for specified context. |
Optional<StatementSupport<?,?,?>> |
getImplicitParentFor(StatementDefinition stmtDef)
Returns implicit parent statement support for supplied statement definition, if it is defined.
|
static ChoiceStatementRFC7950Support |
getInstance() |
protected SubstatementValidator |
getSubstatementValidator()
Returns corresponding substatement validator of a statement support.
|
void |
onStatementAdded(StmtContext.Mutable<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> 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.
|
adaptArgumentValue
getPublicView, getSupportSpecificForArgument, hasArgumentSpecificSupports, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementDefinitionDeclared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgumentName, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getStatementName, getUnknownStatementDefinitionOf, internArgument, isArgumentYinElement, isIgnoringConfig, isIgnoringIfFeatures
public static ChoiceStatementRFC7950Support getInstance()
protected SubstatementValidator getSubstatementValidator()
AbstractStatementSupport
getSubstatementValidator
in class AbstractStatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
public final QName parseArgumentValue(StmtContext<?,?,?> ctx, String value)
StatementSupport
parseArgumentValue
in interface StatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
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.public final Optional<StatementSupport<?,?,?>> getImplicitParentFor(StatementDefinition stmtDef)
ImplicitParentAwareStatementSupport
getImplicitParentFor
in interface ImplicitParentAwareStatementSupport
stmtDef
- statement definition of substatementpublic final void onStatementAdded(StmtContext.Mutable<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> stmt)
StatementSupport
StmtContext.getParentContext()
. One such use is populating the parent's namespaces to
allow it to locate this child statement.onStatementAdded
in interface StatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
onStatementAdded
in class AbstractStatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
stmt
- Context of added statement. No substatements are available.public final ChoiceStatement createDeclared(StmtContext<QName,ChoiceStatement,?> ctx)
StatementFactory
DeclaredStatement
for specified context.createDeclared
in interface StatementFactory<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
ctx
- Statement contextpublic final EffectiveStatement<QName,ChoiceStatement> createEffective(StmtContext<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> ctx)
StatementFactory
EffectiveStatement
for specified context.createEffective
in interface StatementFactory<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
ctx
- Statement contextCopyright © 2019 OpenDaylight. All rights reserved.