|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
B
- Type of ContextObject to useLyciaParser
instead
@Deprecated public interface XmlParser<B>
Interface definition of XmlParser.
Standard implementation of this interface returned by
XmlParserFactory
implements a standard behaviour to redirect all
registered tags to the corresponding TagDefinitionParser
s.
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener listener)
Deprecated. Adds a ProgressListener instance to the notify list |
void |
addTagDefinitionParser(TagDefinitionParser<B> definitionParser)
Deprecated. Adds a TagDefinitionParser implementation to the instance of
XmlParser |
void |
addTagDefinitionParsers(TagDefinitionParser<B>[] definitionParsers)
Deprecated. Adds a bunch of TagDefinitionParser implementations to the
instance of XmlParser |
ErrorHandler |
getErrorHandler()
Deprecated. Returns an instance of ErrorHandler |
ParserContext<B> |
getParserContext()
Deprecated. Returns an instance of ParserContext |
ResourceResolver |
getResourceResolver()
Deprecated. Returns an instance of ResourceResolver |
boolean |
isValidatingSchema()
Deprecated. Returns if XmlParser implementation should be aware of schema errors on reading Xml documents Not all SAX parser implementations are able to do schema validation. |
void |
parse(File file)
Deprecated. Starts parsing Xml data from given File |
void |
parse(InputStream inputStream)
Deprecated. Starts parsing Xml data from given InputStream implementation |
void |
parse(Reader reader)
Deprecated. Starts parsing Xml data from given Reader implementation |
void |
parse(String xml)
Deprecated. Starts parsing Xml data from given String |
void |
removeProgressListener(ProgressListener listener)
Deprecated. Removes a ProgressListener instance from the notify list |
void |
removeTagDefinitionParser(TagDefinitionParser<B> definitionParser)
Deprecated. Removes a TagDefinitionParser implementation from the instance of
XmlParser |
void |
removeTagDefinitionParsers(TagDefinitionParser<B>[] definitionParsers)
Deprecated. Removes a bunch of TagDefinitionParser implementations from the
instance of XmlParser |
void |
setErrorHandler(ErrorHandler errorHandler)
Deprecated. Sets an instance of of ErrorHandler |
void |
setParserContext(ParserContext<B> parserContext)
Deprecated. Sets an instance of ParserContext |
void |
setResourceResolver(ResourceResolver resourceResolver)
Deprecated. Sets an instance of ResourceResolver |
void |
setValidatingSchema(boolean validatingSchema)
Deprecated. Sets if XmlParser implementation should be aware of schema errors on reading Xml documents. |
Document |
transform(File file)
Deprecated. Starts transforming Xml data from given File to new
Document instance |
Document |
transform(InputStream inputStream)
Deprecated. Starts transforming Xml data from given InputStream to new
Document instance |
Document |
transform(Reader reader)
Deprecated. Starts transforming Xml data from given Reader to new
Document instance |
Document |
transform(String xml)
Deprecated. Starts transforming Xml data from given String to new Document
instance |
Method Detail |
---|
void addTagDefinitionParser(TagDefinitionParser<B> definitionParser)
TagDefinitionParser
implementation to the instance of
XmlParser
definitionParser
- TagDefinitionParser implementation to addvoid addTagDefinitionParsers(TagDefinitionParser<B>[] definitionParsers)
TagDefinitionParser
implementations to the
instance of XmlParser
definitionParsers
- Array of TagDefinitionParser implementations to addvoid removeTagDefinitionParser(TagDefinitionParser<B> definitionParser)
TagDefinitionParser
implementation from the instance of
XmlParser
definitionParser
- TagDefinitionParser implementation to removevoid removeTagDefinitionParsers(TagDefinitionParser<B>[] definitionParsers)
TagDefinitionParser
implementations from the
instance of XmlParser
definitionParsers
- Array of TagDefinitionParser implementations to removevoid parse(Reader reader) throws XmlParserParsingException
Reader
implementation
reader
- Reader to read Xml data from
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionvoid parse(String xml) throws XmlParserParsingException
xml
- A String filled with Xml data
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionvoid parse(InputStream inputStream) throws XmlParserParsingException
InputStream
implementation
inputStream
- InputStream to read Xml data from
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionvoid parse(File file) throws XmlParserParsingException
File
file
- File to read Xml data from
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionDocument transform(Reader reader) throws XmlParserParsingException
Reader
to new
Document
instance
reader
- Reader to read Xml data from
Document
instance with transformed data
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionDocument transform(String xml) throws XmlParserParsingException
Document
instance
xml
- A String filled with Xml data
Document
instance with transformed data
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionDocument transform(InputStream inputStream) throws XmlParserParsingException
InputStream
to new
Document
instance
inputStream
- InputStream to read Xml data from
Document
instance with transformed data
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionDocument transform(File file) throws XmlParserParsingException
File
to new
Document
instance
file
- File to read Xml data from
Document
instance with transformed data
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionvoid setParserContext(ParserContext<B> parserContext)
ParserContext
parserContext
- ParserContext instance to setParserContext<B> getParserContext()
ParserContext
void setResourceResolver(ResourceResolver resourceResolver)
ResourceResolver
resourceResolver
- ResourceResolver instance to setResourceResolver getResourceResolver()
ResourceResolver
void setErrorHandler(ErrorHandler errorHandler)
ErrorHandler
errorHandler
- ErrorHandler instanceErrorHandler getErrorHandler()
ErrorHandler
boolean isValidatingSchema()
void setValidatingSchema(boolean validatingSchema)
validatingSchema
- XmlParser should be aware of schema errorsvoid addProgressListener(ProgressListener listener)
ProgressListener
instance to the notify list
listener
- ProgressListener to addvoid removeProgressListener(ProgressListener listener)
ProgressListener
instance from the notify list
listener
- ProgressListener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |