public abstract class FilterDefinition extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
descriptionItem
name of the column to retrieve the names of the items placed in the filter panel's control related to the
member variable nameColumnNo
|
protected String |
formName |
protected ILogger |
logger |
protected org.dom4j.Element |
node |
protected IPentahoSession |
session |
protected String |
valueItem
name of the column to retrieve the values of the items placed in the filter panel's control related to the
member variable valueColumnNo
|
Modifier | Constructor and Description |
---|---|
protected |
FilterDefinition(org.dom4j.Element node,
IPentahoSession session,
ILogger logger)
Ctor, duh.
|
Modifier and Type | Method and Description |
---|---|
void |
fromXml(org.dom4j.Element xMLnode)
order of precedence: session-attribute, global-attribute, data-solution, static-list
|
String |
getName() |
protected abstract org.pentaho.commons.connection.IPentahoResultSet |
getResultSet(Map parameterProviders) |
String |
getTitle() |
void |
getXForm(StringBuffer xformHeader,
StringBuffer xformBody)
Create the XForm header and XForm body, and place the results in the parameters xformHeader and xformBody.
|
protected boolean |
isValid(String value) |
boolean |
isValid(String[] values) |
static void |
main(String[] args) |
boolean |
populate(Map parameterProviders,
String[] value) |
void |
setDefaultValue(String[] defaultValue) |
protected String descriptionItem
protected String valueItem
protected org.dom4j.Element node
protected String formName
protected ILogger logger
protected IPentahoSession session
protected FilterDefinition(org.dom4j.Element node, IPentahoSession session, ILogger logger)
node
- formName
- logger
- public String getTitle()
public String getName()
public void fromXml(org.dom4j.Element xMLnode) throws FilterPanelException
xMLnode
- FilterPanelException
public void setDefaultValue(String[] defaultValue)
public boolean isValid(String[] values)
protected boolean isValid(String value)
protected abstract org.pentaho.commons.connection.IPentahoResultSet getResultSet(Map parameterProviders)
public void getXForm(StringBuffer xformHeader, StringBuffer xformBody) throws ComponentException
xformHeader
- StringBuffer containing the XForm headerxformBody
- StringBuffer containing the XForm bodyComponentException
- if this.nameColumnNo is -1, this.valueColumnNo is -1, or the this.resultSet is null. nameColumnNo is
likely to be -1 if this.descriptionItem does not correlate with the value of the public static void main(String[] args)
Copyright © 2017 Hitachi Vantara. All rights reserved.