public class ModelSetParserContext extends Object
| Constructor and Description |
|---|
ModelSetParserContext()
Create a ModelSetParserContext with the default (SLF4J) logger adaptor.
|
ModelSetParserContext(LoggerFactory logFactory)
Create a ModelSetParserContext with the given LoggerFactory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGenerationSource(File file) |
void |
addGenerationSource(URL baseUrl,
Reader reader) |
RootParserContext |
addReferencedModel(URL url) |
void |
generate(GenerationContext generationContext) |
LoggerFactory |
getLogFactory() |
Model |
getModel(URL url) |
Model |
parseOneModel() |
void |
process()
Parse, validate and generate for all source inputs.
|
void |
validate(Model model) |
void |
visitAllModels(IModelVisitor visitor) |
public ModelSetParserContext()
public ModelSetParserContext(LoggerFactory logFactory)
logFactory - ALoggerFactory to use for logging.public LoggerFactory getLogFactory()
public void addGenerationSource(File file) throws ParsingException
ParsingExceptionpublic void addGenerationSource(URL baseUrl, Reader reader) throws ParsingException
ParsingExceptionpublic Model parseOneModel() throws ParsingException
ParsingExceptionpublic void process()
throws ParsingException
ParsingException - if there is a parsing error.public void validate(Model model)
public RootParserContext addReferencedModel(URL url) throws ParsingException
ParsingExceptionpublic void generate(GenerationContext generationContext) throws GenerationException
GenerationExceptionpublic void visitAllModels(IModelVisitor visitor)
Copyright © 2018 Symphony Software Foundation. All rights reserved.