public static class ChoiceStatementImpl.Definition extends AbstractStatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
Constructor and Description |
---|
Definition() |
Modifier and Type | Method and Description |
---|---|
Optional<StatementContextBase<?,?,?>> |
beforeSubStatementCreated(StmtContext.Mutable<?,?,?> stmt,
int offset,
StatementDefinitionContext<?,?,?> def,
StatementSourceReference ref,
String argument)
Invoked before a substatement with specified offset, definition,
reference and argument is created and added to parent statement.
|
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. |
protected SubstatementValidator |
getSubstatementValidator()
Returns corresponding substatement validator of a statement support
|
protected StatementSupport<?,?,?> |
implictCase() |
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.
|
getArgumentName, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getPublicView, getStatementName, getSupportSpecificForArgument, hasArgumentSpecificSupports, isArgumentYinElement, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementDefinitionDeclared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUnknownStatementDefinitionOf, internArgument, isIgnoringConfig, isIgnoringIfFeatures
public QName parseArgumentValue(StmtContext<?,?,?> ctx, String value)
StatementSupport
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 Optional<StatementContextBase<?,?,?>> beforeSubStatementCreated(StmtContext.Mutable<?,?,?> stmt, int offset, StatementDefinitionContext<?,?,?> def, StatementSourceReference ref, String argument)
StatementSupport
beforeSubStatementCreated
in interface StatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
beforeSubStatementCreated
in class AbstractStatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
stmt
- Context of parent statement where a new substatement should be
created. No substatements are available.offset
- substatement offsetdef
- definition contextref
- source referenceargument
- substatement argumentpublic 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 ChoiceStatement createDeclared(StmtContext<QName,ChoiceStatement,?> ctx)
StatementFactory
DeclaredStatement
for specified context.ctx
- Statement contextpublic EffectiveStatement<QName,ChoiceStatement> createEffective(StmtContext<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>> ctx)
StatementFactory
EffectiveStatement
for specified context.ctx
- Statement contextprotected SubstatementValidator getSubstatementValidator()
AbstractStatementSupport
getSubstatementValidator
in class AbstractStatementSupport<QName,ChoiceStatement,EffectiveStatement<QName,ChoiceStatement>>
protected StatementSupport<?,?,?> implictCase()
Copyright © 2018 OpenDaylight. All rights reserved.