public class X4OParser extends AbstractXMLParser implements X4OParserSupport
Modifier | Constructor and Description |
---|---|
|
X4OParser(String language)
Creates an X4OParser object.
|
|
X4OParser(String language,
String languageVersion) |
protected |
X4OParser(X4ODriver driver) |
protected |
X4OParser(X4OLanguageConfiguration config) |
Modifier and Type | Method and Description |
---|---|
protected void |
addELBeanInstance(String name,
Object bean) |
void |
doReleasePhaseManual()
Run a manual release phase to clean the parsing object tree.
|
protected X4ODriver |
getDriver() |
Object |
getProperty(String key)
Returns the value an X4O Language property.
|
ElementLanguage |
loadElementLanguageSupport()
Loads the support ElementLanguage from the driver.
|
void |
parse(InputStream input,
String systemId,
URL basePath)
Method to parse the xml data.
|
void |
setProperty(String key,
Object value)
Sets an X4O Language property.
|
parseFile, parseFile, parseResource, parseUrl, parseXml
public X4OParser(String language)
language
- The X4O language to create this parser for..protected X4OParser(X4OLanguageConfiguration config)
public void parse(InputStream input, String systemId, URL basePath) throws ParserConfigurationException, SAXException, IOException
AbstractXMLParser
parse
in class AbstractXMLParser
input
- The inputStream to parse.ParserConfigurationException
SAXException
IOException
AbstractXMLParser.parse(java.io.InputStream,java.lang.String,java.net.URL)
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.public ElementLanguage loadElementLanguageSupport() throws X4OParserSupportException
loadElementLanguageSupport
in interface X4OParserSupport
X4OParserSupportException
- Is thrown when supporting language could not be loaded.X4OParserSupport.loadElementLanguageSupport()
protected void addELBeanInstance(String name, Object bean)
Copyright © 2004-2012 X4O. All Rights Reserved.