public final class FunctionUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static String |
computeElementLocation(ReportElement e) |
static Element[] |
findAllElements(Band band,
String element)
Try to find all element with the given name in the last active root-band.
|
static Element[] |
findAllElements(CrosstabCellBody band,
String element)
Try to find all element with the given name in the last active root-band.
|
static Element |
findElement(Band band,
String element)
Try to find the first element with the given name in the last active root-band.
|
static ReportElement |
findElementByAttribute(Section band,
String attributeNamespace,
String attributeName,
String attributeValue)
Try to find the defined element in the last active root-band.
|
static ReportElement |
findElementById(ReportDefinition reportDefinition,
String id) |
static ReportElement |
findElementById(Section band,
String id)
Try to find the defined element in the last active root-band.
|
static ReportElement |
findElementByInstanceId(ReportDefinition reportDefinition,
InstanceID id) |
static ReportElement |
findElementByInstanceId(Section band,
InstanceID id)
Try to find the defined element in the last active root-band.
|
static ReportElement |
findElementByName(Section band,
String name) |
static Group |
getCurrentDeepTraverseGroup(ReportEvent event)
Returns the current group instance, based on the given report event.
|
static Group |
getCurrentGroup(ReportEvent event)
Returns the current group instance, based on the given report event.
|
static boolean |
isCrosstabDefined(ReportEvent event) |
static boolean |
isCrosstabFilterValid(ReportDefinition def,
String filterName) |
static boolean |
isDefinedGroup(String groupName,
ReportEvent event)
Returns true if the events current groupname is equal to the group name.
|
static boolean |
isDefinedPrepareRunLevel(Function f,
ReportEvent event)
Returns true, if the current run level is defined for the given function and this is a prepare run.
|
static boolean |
isLayoutLevel(ReportEvent event)
Returns true or false.
|
public static Element findElement(Band band, String element)
band
- the band that is suspected to contain the element.element
- the element name.public static ReportElement findElementById(ReportDefinition reportDefinition, String id)
public static ReportElement findElementByInstanceId(ReportDefinition reportDefinition, InstanceID id)
public static ReportElement findElementById(Section band, String id)
band
- the band that is suspected to contain the element.id
- the element's unique id.public static ReportElement findElementByInstanceId(Section band, InstanceID id)
band
- the band that is suspected to contain the element.id
- the element's unique id.public static ReportElement findElementByName(Section band, String name)
public static ReportElement findElementByAttribute(Section band, String attributeNamespace, String attributeName, String attributeValue)
band
- the band that is suspected to contain the element.attributeNamespace
- the namespace of the attribute, never null.attributeName
- the attribute name, never null.attributeValue
- the value, never null.public static Element[] findAllElements(Band band, String element)
band
- the band that is suspected to contain the element.element
- the element name.public static Element[] findAllElements(CrosstabCellBody band, String element)
band
- the band that is suspected to contain the element.element
- the element name.public static boolean isDefinedGroup(String groupName, ReportEvent event)
groupName
- the group name.event
- the report event.public static boolean isDefinedPrepareRunLevel(Function f, ReportEvent event)
f
- the function.event
- the event.public static boolean isLayoutLevel(ReportEvent event)
event
- the report event.public static Group getCurrentGroup(ReportEvent event)
event
- the event which is base for the action.public static Group getCurrentDeepTraverseGroup(ReportEvent event)
event
- the event which is base for the action.public static boolean isCrosstabFilterValid(ReportDefinition def, String filterName)
public static boolean isCrosstabDefined(ReportEvent event)
public static String computeElementLocation(ReportElement e)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.