/** * Returns the handler for a child element. * * @param tagName the tag name. * @param atts the attributes. * @return the handler or null, if the tagname is invalid. * @throws org.xml.sax.SAXException if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { return new IgnoreAnyChildReadHandler(); }
logger.debug( this.getClass() ); final IgnoreAnyChildReadHandler ignoreAnyChildReadHandler = new IgnoreAnyChildReadHandler(); ignoreAnyChildReadHandler.init( getRootHandler(), uri, tagName ); this.rootHandler.recurse( ignoreAnyChildReadHandler, uri, tagName, attrs ); } else {
/** * Returns the handler for a child element. * * @param uri * the URI of the namespace of the current element. * @param tagName * the tag name. * @param atts * the attributes. * @return the handler or null, if the tagname is invalid. * @throws SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "configuration".equals( tagName ) ) { return new ConfigurationReadHandler( configuration ); } if ( "runtime".equals( tagName ) ) { // todo: In later versions, check the declared runtime so that we can be sure that all elements are found return new IgnoreAnyChildReadHandler(); } return null; }
/** * Returns the handler for a child element. * * @param tagName * the tag name. * @param atts * the attributes. * @return the handler or null, if the tagname is invalid. * @throws org.xml.sax.SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final PropertyAttributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( key == null ) { return new IgnoreAnyChildReadHandler(); } if ( "properties".equals( tagName ) && expression != null ) { try { return new ExpressionPropertiesReadHandler( expression, originalClassName, expressionClassName ); } catch ( IntrospectionException e ) { throw new SAXException( "Unable to create Introspector for the specified expression." ); } } return null; }
/** * Returns the handler for a child element. * * @param uri * the URI of the namespace of the current element. * @param tagName * the tag name. * @param atts * the attributes. * @return the handler or null, if the tagname is invalid. * @throws SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "data".equals( tagName ) ) { if ( columnCount >= types.length ) { return new IgnoreAnyChildReadHandler(); } final InlineTableDataReadHandler dataReadHandler = new InlineTableDataReadHandler( types[columnCount] ); columnCount += 1; data.add( dataReadHandler ); return dataReadHandler; } return null; }
final String name = atts.getValue( getUri(), "name" ); if ( ElementStyleKeys.isLegacyKey( name ) ) { return new IgnoreAnyChildReadHandler(); final String name = atts.getValue( getUri(), "name" ); if ( ElementStyleKeys.isLegacyKey( name ) ) { return new IgnoreAnyChildReadHandler();
return null; } else if ( "data-factory".equals( tagName ) ) { return new IgnoreAnyChildReadHandler(); } else if ( "reportheader".equals( tagName ) ) { return new ReportHeaderReadHandler( report.getReportHeader() );
protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( ObjectUtilities.equal( uri, getUri() ) == false ) { return null; } if ( "cell".equals( tagName ) ) { column += 1; return new CellReadHandler( table, row, column ); } if ( "empty-cell".equals( tagName ) ) { column += 1; return new EmptyCellReadHandler( table, row, column ); } if ( "covered-cell".equals( tagName ) ) { column += 1; return new IgnoreAnyChildReadHandler(); } return null; }
return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler();
return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler();
return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler(); return new IgnoreAnyChildReadHandler();