Package org.symphonyoss.s2.canon.parser
Class RootParserContext
- java.lang.Object
-
- org.symphonyoss.s2.canon.parser.BaseParserContext
-
- org.symphonyoss.s2.canon.parser.RootParserContext
-
public class RootParserContext extends BaseParserContext
-
-
Constructor Summary
Constructors Constructor Description RootParserContext(File inputFile, Reader inputStream, boolean referencedModel)RootParserContext(ModelSetParserContext modelSetParserContext, URL url, boolean referencedModel)RootParserContext(ModelSetParserContext modelSetParserContext, URL baseUrl, Reader inputStream, boolean referencedModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RootParserContextaddReferencedModel(URI uri, ParserContext context)voidepilogue(String action)voiderror(String format, Object... args)StringgetInputSource()StringgetInputSourceName()ModelgetModel()ModelgetModel(URI uri)ReadergetReader()URLgetUrl()booleanhasErrors()booleanisReferencedModel()voidprologue()voidraise(ParserError error)voidraise(ParserInfo info)voidraise(ParserWarning warning)voidsetModel(Model model)voidsetUriMap(Map<String,String> uriMap)-
Methods inherited from class org.symphonyoss.s2.canon.parser.BaseParserContext
getAllProblems, getErrors, getInfos, getPath, getRootParserContext, getWarnings
-
-
-
-
Constructor Detail
-
RootParserContext
public RootParserContext(ModelSetParserContext modelSetParserContext, URL url, boolean referencedModel) throws ParsingException
- Throws:
ParsingException
-
RootParserContext
public RootParserContext(ModelSetParserContext modelSetParserContext, URL baseUrl, Reader inputStream, boolean referencedModel) throws ParsingException
- Throws:
ParsingException
-
-
Method Detail
-
getModel
public Model getModel()
-
setModel
public void setModel(Model model)
-
isReferencedModel
public boolean isReferencedModel()
- Returns:
- True iff this is a referenced model, and generation should not be performed.
-
getUrl
public URL getUrl()
-
getReader
public Reader getReader()
-
getInputSource
public String getInputSource()
-
getInputSourceName
public String getInputSourceName()
-
raise
public void raise(ParserError error)
- Overrides:
raisein classBaseParserContext
-
raise
public void raise(ParserWarning warning)
- Overrides:
raisein classBaseParserContext
-
raise
public void raise(ParserInfo info)
- Overrides:
raisein classBaseParserContext
-
epilogue
public void epilogue(String action)
-
prologue
public void prologue()
-
addReferencedModel
@Nullable public RootParserContext addReferencedModel(URI uri, ParserContext context) throws ParsingException
- Throws:
ParsingException
-
hasErrors
public boolean hasErrors()
-
-