|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.xml2mi.lib.BasicDomParser
The BasicDomParser class implements the Parser interface. It uses the DOM trees associated to the XML files that are parsed in order to build the meta-objects.
| Constructor Summary | |
BasicDomParser(boolean dtdVerify,
java.util.ArrayList dtds)
Main constructor for BasicDomParser. |
|
| Method Summary | |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
ParserErrorHandler |
getParserErrorHandler()
allows to know the list of error the parser encounters. |
java.lang.Exception |
getParserException()
returns the exception which is reached during the parsing of a file |
boolean |
isGenDep()
Allows to know if the dependances must be generated or not. |
java.util.Collection |
parse(java.util.Iterator files)
Launches the parsing process. |
MetaObject |
parse(java.lang.String file)
Launches the parsing process. |
void |
setGenDep(boolean gendep)
Enables or disables the generation of the dependances. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)
Defines the logger factory to obtain new loggers. |
void |
setMapperName(java.lang.String mapperName)
Sets the name of the mapper to use. |
void |
setMappingName(java.lang.String mappingName)
Sets the name of the mapping to use. |
void |
setMappingParser(MappingParser mappingParser)
Sets the parser which is able to parse the mapping part of the XML file. |
void |
setMetaInfoManager(Manager mim)
Assigns a meta-information manager to a parser in order from it to create the meta-information related to the XML files it parses. |
void |
setPathExplorer(org.objectweb.util.io.api.PathExplorer pathExpl)
Assigns a PathExplorer object for locating files that have to be parsed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicDomParser(boolean dtdVerify,
java.util.ArrayList dtds)
dtdVerify - true, the dtd must be used to validate xml files, else
false| Method Detail |
public java.util.Collection parse(java.util.Iterator files)
throws PException
parse in interface Parserfiles - an iterator over the name the XML files to be parsed
public MetaObject parse(java.lang.String file)
throws PException
parse in interface Parserfile - the name of the XML file to be parsedpublic void setMetaInfoManager(Manager mim)
setMetaInfoManager in interface Parsermim - the meta-information Manager to be associated to this parserpublic void setPathExplorer(org.objectweb.util.io.api.PathExplorer pathExpl)
setPathExplorer in interface Parserpathexpl - the PathExplorer to be used for file locationpublic void setMapperName(java.lang.String mapperName)
setMapperName in interface ParsermapperName - the name of the mapperpublic void setMappingName(java.lang.String mappingName)
setMappingName in interface ParsermappingName - the name of the mappingpublic void setMappingParser(MappingParser mappingParser)
setMappingParser in interface ParsermappingParser - the parser which parses the mapping objectpublic void setGenDep(boolean gendep)
setGenDep in interface Parsergendep - true, the dependances are generated, else falsepublic boolean isGenDep()
isGenDep in interface Parserpublic java.lang.Exception getParserException()
getParserException in interface Parserpublic ParserErrorHandler getParserErrorHandler()
getParserErrorHandler in interface Parserpublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)
setLoggerFactory in interface Loggableloggerfactory - The LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||