JBoss XML Binding 2.0.3.GA-redhat-2

org.jboss.xb.binding.parser
Interface JBossXBParser

All Known Implementing Classes:
SaxJBossXBParser

public interface JBossXBParser

Version:
$Revision: 4825 $
Author:
Alexey Loubyansky

Nested Class Summary
static interface JBossXBParser.ContentHandler
           
static interface JBossXBParser.DtdAwareContentHandler
          Extended to support key SAX2 LexicalHandler events
 
Method Summary
 boolean getWarnOnParserErrors()
          This property controls whether the (underlying) parser errors should be logged as warnings or should they terminate parsing with errors.
 void parse(InputSource source, JBossXBParser.ContentHandler handler)
           
 void parse(InputStream is, JBossXBParser.ContentHandler handler)
           
 void parse(Reader reader, JBossXBParser.ContentHandler handler)
           
 void parse(String source, JBossXBParser.ContentHandler handler)
           
 void setEntityResolver(EntityResolver entityResolver)
           
 void setFeature(String name, boolean value)
           
 void setProperty(String name, Object value)
           
 void setWarnOnParserErrors(boolean value)
          This property controls whether the (underlying) parser errors should be logged as warnings or should they terminate parsing with errors.
 

Method Detail

setWarnOnParserErrors

void setWarnOnParserErrors(boolean value)
This property controls whether the (underlying) parser errors should be logged as warnings or should they terminate parsing with errors. The default is to terminate parsing by re-throwing parser errors.


getWarnOnParserErrors

boolean getWarnOnParserErrors()
This property controls whether the (underlying) parser errors should be logged as warnings or should they terminate parsing with errors. The default is to terminate parsing by re-throwing parser errors.

Returns:
false if parser errors should be logged as warnings, otherwise - true

setEntityResolver

void setEntityResolver(EntityResolver entityResolver)
                       throws JBossXBException
Throws:
JBossXBException

setProperty

void setProperty(String name,
                 Object value)

setFeature

void setFeature(String name,
                boolean value)

parse

void parse(String source,
           JBossXBParser.ContentHandler handler)
           throws JBossXBException
Throws:
JBossXBException

parse

void parse(InputStream is,
           JBossXBParser.ContentHandler handler)
           throws JBossXBException
Throws:
JBossXBException

parse

void parse(Reader reader,
           JBossXBParser.ContentHandler handler)
           throws JBossXBException
Throws:
JBossXBException

parse

void parse(InputSource source,
           JBossXBParser.ContentHandler handler)
           throws JBossXBException
Throws:
JBossXBException

JBoss XML Binding 2.0.3.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.