public final class BaseStatementSupport extends AbstractQNameStatementSupport<BaseStatement,EffectiveStatement<QName,BaseStatement>>
Modifier and Type | Method and Description |
---|---|
BaseStatement |
createDeclared(StmtContext<QName,BaseStatement,?> ctx)
Create a
DeclaredStatement for specified context. |
EffectiveStatement<QName,BaseStatement> |
createEffective(StmtContext<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>> ctx)
Create a
EffectiveStatement for specified context. |
static BaseStatementSupport |
getInstance() |
protected SubstatementValidator |
getSubstatementValidator()
Returns corresponding substatement validator of a statement support.
|
void |
onStatementDefinitionDeclared(StmtContext.Mutable<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>> baseStmtCtx)
Invoked when statement is closed during
ModelProcessingPhase.STATEMENT_DEFINITION phase,
only substatements from this phase are available. |
QName |
parseArgumentValue(StmtContext<?,?,?> ctx,
String value)
Parses textual representation of argument in object representation.
|
adaptArgumentValue
getPublicView, getSupportSpecificForArgument, hasArgumentSpecificSupports, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementAdded
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgumentName, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getStatementName, getUnknownStatementDefinitionOf, internArgument, isArgumentYinElement, isIgnoringConfig, isIgnoringIfFeatures
public static BaseStatementSupport getInstance()
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 BaseStatement createDeclared(StmtContext<QName,BaseStatement,?> ctx)
StatementFactory
DeclaredStatement
for specified context.ctx
- Statement contextpublic EffectiveStatement<QName,BaseStatement> createEffective(StmtContext<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>> ctx)
StatementFactory
EffectiveStatement
for specified context.ctx
- Statement contextpublic void onStatementDefinitionDeclared(StmtContext.Mutable<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>> baseStmtCtx)
AbstractStatementSupport
ModelProcessingPhase.STATEMENT_DEFINITION
phase,
only substatements from this phase are available.
Implementation may use method to perform actions on this event or register modification action using
StmtContext.Mutable.newInferenceAction(ModelProcessingPhase)
..
Subclasses of this class may override this method to perform actions on this event or register a modification
action using StmtContext.Mutable.newInferenceAction(ModelProcessingPhase)
.
onStatementDefinitionDeclared
in interface StatementSupport<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>>
onStatementDefinitionDeclared
in class AbstractStatementSupport<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>>
baseStmtCtx
- Context of added statement. Argument and statement parent is
accessible.protected SubstatementValidator getSubstatementValidator()
AbstractStatementSupport
getSubstatementValidator
in class AbstractStatementSupport<QName,BaseStatement,EffectiveStatement<QName,BaseStatement>>
Copyright © 2019 OpenDaylight. All rights reserved.