@Test( expected = NullPointerException.class ) public void testGetReferencedElementsWithoutExpression() { preProcessor.getReferencedElements( metaData, null, null ); }
public String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression, final Object attributeValue ) { if ( expression == null ) { throw new NullPointerException(); } if ( attributeValue == null ) { return EMPTY; } final String propertyRole = metaData.getPropertyRole(); if ( "ElementName".equals( propertyRole ) ) { if ( attributeValue instanceof String[] ) { final String[] attrVal = (String[]) attributeValue; return (String[]) attrVal.clone(); } return new String[] { String.valueOf( attributeValue ) }; } return EMPTY; }
DefaultExpressionPropertyCore implements ExpressionPropertyCore { public String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression, final Object attributeValue ) { if ( expression == null ) { throw new NullPointerException(); } if ( attributeValue == null ) { return EMPTY; } final String propertyRole = metaData.getPropertyRole(); if ( "ElementName".equals( propertyRole ) ) { if ( attributeValue instanceof String[] ) { final String[] attrVal = (String[]) attributeValue; return (String[]) attrVal.clone(); } return new String[] { String.valueOf( attributeValue ) }; } return EMPTY; } }
DefaultExpressionPropertyCore implements ExpressionPropertyCore { public String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression, final Object attributeValue ) { if ( expression == null ) { throw new NullPointerException(); } if ( attributeValue == null ) { return EMPTY; } final String propertyRole = metaData.getPropertyRole(); if ( "ElementName".equals( propertyRole ) ) { if ( attributeValue instanceof String[] ) { final String[] attrVal = (String[]) attributeValue; return (String[]) attrVal.clone(); } return new String[] { String.valueOf( attributeValue ) }; } return EMPTY; } DefaultExpressionPropertyCore(); }
DefaultExpressionPropertyCore implements ExpressionPropertyCore { public String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression, final Object attributeValue ) { if ( expression == null ) { throw new NullPointerException(); } if ( attributeValue == null ) { return EMPTY; } final String propertyRole = metaData.getPropertyRole(); if ( "ElementName".equals( propertyRole ) ) { if ( attributeValue instanceof String[] ) { final String[] attrVal = (String[]) attributeValue; return (String[]) attrVal.clone(); } return new String[] { String.valueOf( attributeValue ) }; } return EMPTY; } DefaultExpressionPropertyCore(); String[] getReferencedFields( final ExpressionPropertyMetaData metaData, final Expression expression,
      final Object attributeValue ); String[] getReferencedGroups( final ExpressionPropertyMetaData metaData, final Expression expression,
      final Object attributeValue ); String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression,
      final Object attributeValue ); ResourceReference[] getReferencedResources( final ExpressionPropertyMetaData metaData,
      final Expression expression, final Object attributeValue, final Element reportElement,
      final ResourceManager resourceManager ); String[] getExtraCalculationFields( final ExpressionPropertyMetaData metaData ); }
DefaultExpressionPropertyCore implements ExpressionPropertyCore { public String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression, final Object attributeValue ) { if ( expression == null ) { throw new NullPointerException(); } if ( attributeValue == null ) { return EMPTY; } final String propertyRole = metaData.getPropertyRole(); if ( "ElementName".equals( propertyRole ) ) { if ( attributeValue instanceof String[] ) { final String[] attrVal = (String[]) attributeValue; return (String[]) attrVal.clone(); } return new String[] { String.valueOf( attributeValue ) }; } return EMPTY; } DefaultExpressionPropertyCore(); String[] getReferencedFields( final ExpressionPropertyMetaData metaData, final Expression expression,
      final Object attributeValue ); String[] getReferencedGroups( final ExpressionPropertyMetaData metaData, final Expression expression,
      final Object attributeValue ); String[] getReferencedElements( final ExpressionPropertyMetaData metaData, final Expression expression,
      final Object attributeValue ); ResourceReference[] getReferencedResources( final ExpressionPropertyMetaData metaData,
      final Expression expression, final Object attributeValue, final Element reportElement,
      final ResourceManager resourceManager ); String[] getExtraCalculationFields( final ExpressionPropertyMetaData metaData );  }