public class URLFilter extends Object implements DataFilter
Constructor and Description |
---|
URLFilter()
DefaultConstructor.
|
Modifier and Type | Method and Description |
---|---|
URLFilter |
clone()
Creates a clone of the URL filter.
|
URL |
getBaseURL()
Gets the base url used to make relative URLs absolute.
|
DataSource |
getDataSource()
Returns the data source for the filter.
|
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Tries to form a url from the object returned from the datasource.
|
void |
setBaseURL(URL baseURL)
Defines the base url used to complete relative urls.
|
void |
setDataSource(DataSource ds)
Sets the data source.
|
public DataSource getDataSource()
getDataSource
in interface DataTarget
public void setDataSource(DataSource ds)
setDataSource
in interface DataTarget
ds
- The data source.public Object getValue(ExpressionRuntime runtime, ReportElement element)
getValue
in interface DataSource
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- public URL getBaseURL()
public void setBaseURL(URL baseURL)
baseURL
- the base URL.public URLFilter clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in interface DataTarget
clone
in class Object
CloneNotSupportedException
- should never happen.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.