public interface StatementWriter
Modifier and Type | Method and Description |
---|---|
void |
endStatement(StatementSourceReference ref)
Ends current opened statement.
|
ModelProcessingPhase |
getPhase()
Return current model processing phase.
|
void |
startStatement(int childId,
QName name,
String argument,
StatementSourceReference ref)
Starts statement with supplied name and location in source.
|
void startStatement(int childId, @Nonnull QName name, @Nullable String argument, @Nonnull StatementSourceReference ref)
Each started statement must also be closed by
endStatement(StatementSourceReference)
in order for stream to be
correct.
If statement has substatements, in order to start substatement, call to
startStatement(int, QName, String, StatementSourceReference)
needs to be done for substatement.
childId
- Child identifier, unique among siblingsname
- Fully qualified name of statement.argument
- String representation of value as appeared in source, null if not presentref
- Identifier of location in source, which will be used for
reporting in case of statement processing error.SourceException
- if statement is not valid according to current context.void endStatement(@Nonnull StatementSourceReference ref)
ref
- Identifier of location in source, which will be used for
reporting in case of statement processing error.SourceException
- if closed statement is not valid in current context, or there
is no such statement@Nonnull ModelProcessingPhase getPhase()
Copyright © 2017 OpenDaylight. All rights reserved.