public class SyntaxCompiler extends Object
SyntaxPackage
entity.
Constructor and Description |
---|
SyntaxCompiler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
SyntaxPackage |
compile(InputStream xmlInput,
Locale locale)
Compiles the specified XML-encoded input stream into a syntax package
that can be used to match and parse command-line arguments.
|
String |
getSchemaLocation()
Gets the URI of the XML schema for the syntax files.
|
void |
setSchemaLocation(String schemaLocation)
Sets the URI where to find the XML schema for validating syntax files.
|
public SyntaxPackage compile(InputStream xmlInput, Locale locale) throws BadSyntaxException, SAXException, IOException
xmlInput
- input stream containing the XML-encoded syntax
definitions.locale
- Locale context for interpretting the locale-independent
syntax definitions.SyntaxPackage
instance created based on the XML
content and suitable for use by SyntaxMatcher
class.BadSyntaxException
- thrown if the specified input stream
contained a malformed syntax definition.SAXException
- thrown if the specified input stream
contained a malformed XML.IOException
- thrown if there was a problem reading data from the
specified input stream.public String getSchemaLocation()
public void setSchemaLocation(String schemaLocation)
schemaLocation
- URI of the XML schemaCopyright © 2015. All Rights Reserved.