public class X4ODriver extends Object implements X4OParserSupport
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LANGUAGE_VERSION
Defines the default version if none is defined.
|
protected ElementLanguage |
elementLanguage
The ElementLanguage which hold all language config.
|
Constructor and Description |
---|
X4ODriver(X4OLanguageConfiguration languageConfig)
Creates an X4ODriver for this config
|
Modifier and Type | Method and Description |
---|---|
protected X4OPhaseManager |
createX4OPhaseManager()
Creates and configs an X4OPhaseManager to parse a language.
|
protected X4OPhaseManager |
createX4OPhaseManagerSupport() |
void |
doReleasePhaseManual()
Run a manual release phase to clean the parsing object tree.
|
ElementLanguage |
getElementLanguage()
Returns the ElementLanguage
|
Object |
getProperty(String key)
Returns the value an X4O Language property.
|
ElementLanguage |
loadElementLanguageSupport()
Loads the language and returns the ElementLanguage.
|
void |
parseInput()
Parses the input stream as a X4O document.
|
void |
setProperty(String key,
Object value)
Sets an X4O Language property.
|
protected ElementLanguage elementLanguage
public static final String DEFAULT_LANGUAGE_VERSION
public X4ODriver(X4OLanguageConfiguration languageConfig)
languageConfig
- The X4O languageConfig to create this parser for..public ElementLanguage getElementLanguage()
protected X4OPhaseManager createX4OPhaseManager() throws X4OPhaseException
X4OPhaseException
protected X4OPhaseManager createX4OPhaseManagerSupport() throws X4OPhaseException
X4OPhaseException
public void parseInput() throws ParserConfigurationException, SAXException, IOException
public ElementLanguage loadElementLanguageSupport() throws X4OParserSupportException
loadElementLanguageSupport
in interface X4OParserSupport
X4OParserSupportException
- Is thrown when supporting language could not be loaded.X4OParserSupport.loadElementLanguageSupport()
public void doReleasePhaseManual() throws X4OPhaseException
X4OPhaseException
public void setProperty(String key, Object value)
key
- The key of the property to set.value
- The vlue of the property to set.public Object getProperty(String key)
key
- The key of the property to get the value for.Copyright © 2004-2012 X4O. All Rights Reserved.