/** * Adds a configuration default for the given namespace to the tag-descriptions. If the namespace URI given here is * null, this defines the global default for all namespaces. * * @param namespaceUri the namespace URI for which a default should be configured. * @param hasCData the default value. */ public void setNamespaceHandler( final String namespaceUri, final Class<? extends T> hasCData ) { final TagDefinitionKey key = new TagDefinitionKey( namespaceUri, null ); setValueIfNotDefinedAsLegacy( key, hasCData ); }
/** * Initialises the handler. * * @param rootHandler * the root handler. * @param tagName * the tag name. */ public void init( final RootXmlReadHandler rootHandler, final String uri, final String tagName ) throws SAXException { super.init( rootHandler, uri, tagName ); rootHandler.setHelperObject( "property-expansion", Boolean.FALSE ); }
/** * Configures the xml reader. Use this to set features or properties before the documents get parsed. * * @param handler * the parser implementation that will handle the SAX-Callbacks. * @param reader * the xml reader that should be configured. */ protected void configureReader( final XMLReader reader, final MultiplexRootElementHandler handler ) { super.configureReader( reader, handler ); handler.setHelperObject( "property-expansion", Boolean.FALSE ); }
/** * Starts parsing. * * @param attrs the attributes. * @throws SAXException if there is a parsing error. */ protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); name = attrs.getValue( getUri(), nameAttribute ); if ( nameMandatory && name == null ) { throw new ParseException( "Required attribute '" + nameAttribute + "' missing", getLocator() ); } }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
/** * Returns the locator as provided by the XML parser. This method may return null if the XML parser has no locator * support. * * @return the locator or null. */ public Locator getLocator() { return rootHandler.getDocumentLocator(); }
public String getScript() { if ( script == null ) { return null; } return script.getResult(); }
public String getQuery() { if ( query == null ) { return null; } return query.getResult(); } }
/** * Creates a new ParseException with the given message and the locator. * * @param message the message * @param locator the locator of the parser */ public ParseException( final String message, final Locator locator ) { super( message ); fillLocation( locator ); noOwnMessage = ( message == null ); }
/** * Returns a default resolver, which is initialized to redirect the parser to a local copy of the JFreeReport DTDs. * * @return the default entity resolver. */ public static synchronized ParserEntityResolver getDefaultResolver() { if ( singleton == null ) { singleton = new ParserEntityResolver(); } return singleton; }
/** * Returns the XML-Error handler that should be registered with the XML parser. By default, this returns a logger. * * @return the error handler. */ protected ErrorHandler getErrorHandler() { return new LoggingErrorHandler(); } }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
/** * Initialises the handler. * * @param rootHandler * the root handler. * @param tagName * the tag name. */ public void init( final RootXmlReadHandler rootHandler, final String uri, final String tagName ) throws SAXException { super.init( rootHandler, uri, tagName ); rootHandler.setHelperObject( "property-expansion", Boolean.FALSE ); }
/** * Creates a new ParseException with the given message. * * @param message the message */ public ParseException( final String message ) { super( message ); fillLocation( null ); noOwnMessage = ( message == null ); }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
/** * Initialises the handler. * * @param rootHandler * the root handler. * @param tagName * the tag name. */ public void init( final RootXmlReadHandler rootHandler, final String uri, final String tagName ) throws SAXException { super.init( rootHandler, uri, tagName ); rootHandler.setHelperObject( "property-expansion", Boolean.FALSE ); }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }