@Test public void startParsing() throws SAXException { when( testAttributes.getValue( anyString(), eq( "formula" ) ) ).thenReturn( "=[TEST_FORMULA]" ); argumentReadHandler.startParsing( testAttributes ); assertEquals( FormulaArgument.create( "TEST_FORMULA" ), argumentReadHandler.getFormula() ); }
protected void startParsing( final Attributes attrs ) throws SAXException { this.formula = attrs.getValue( getUri(), "formula" ); if ( formula == null ) { String dataRowName = attrs.getValue( getUri(), "datarow-name" ); if ( dataRowName == null ) { throw new ParseException( "Required attribute 'datarow-name' is not defined" ); } this.formula = '=' + FormulaUtil.quoteReference( dataRowName ); } }
ArgumentReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { this.formula = attrs.getValue( getUri(), "formula" ); if ( formula == null ) { String dataRowName = attrs.getValue( getUri(), "datarow-name" ); if ( dataRowName == null ) { throw new ParseException( "Required attribute 'datarow-name' is not defined" ); } this.formula = '=' + FormulaUtil.quoteReference( dataRowName ); } } }
ArgumentReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { this.formula = attrs.getValue( getUri(), "formula" ); if ( formula == null ) { String dataRowName = attrs.getValue( getUri(), "datarow-name" ); if ( dataRowName == null ) { throw new ParseException( "Required attribute 'datarow-name' is not defined" ); } this.formula = '=' + FormulaUtil.quoteReference( dataRowName ); } } ArgumentReadHandler(); }
ArgumentReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { this.formula = attrs.getValue( getUri(), "formula" ); if ( formula == null ) { String dataRowName = attrs.getValue( getUri(), "datarow-name" ); if ( dataRowName == null ) { throw new ParseException( "Required attribute 'datarow-name' is not defined" ); } this.formula = '=' + FormulaUtil.quoteReference( dataRowName ); } } ArgumentReadHandler(); Object getObject(); FormulaArgument getFormula(); }
ArgumentReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { this.formula = attrs.getValue( getUri(), "formula" ); if ( formula == null ) { String dataRowName = attrs.getValue( getUri(), "datarow-name" ); if ( dataRowName == null ) { throw new ParseException( "Required attribute 'datarow-name' is not defined" ); } this.formula = '=' + FormulaUtil.quoteReference( dataRowName ); } } ArgumentReadHandler(); Object getObject(); FormulaArgument getFormula();  }