Class ItemCompiler
- java.lang.Object
-
- net.sf.jasperreports.components.items.ItemCompiler
-
public class ItemCompiler extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description ItemCompiler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
collectExpressions(ItemData data, JRExpressionCollector collector)
static void
verifyItem(JRVerifier verifier, Item item, String itemName, String[] requiredNames, Map<String,String> alternativeNamesMap)
Verifies if required properties or their alternatives are present in the item properties list.static void
verifyItemData(JRVerifier verifier, ItemData itemData, String itemName, String[] requiredNames, Map<String,String> alternativeNamesMap)
-
-
-
Method Detail
-
collectExpressions
public static void collectExpressions(ItemData data, JRExpressionCollector collector)
-
verifyItemData
public static void verifyItemData(JRVerifier verifier, ItemData itemData, String itemName, String[] requiredNames, Map<String,String> alternativeNamesMap)
-
verifyItem
public static void verifyItem(JRVerifier verifier, Item item, String itemName, String[] requiredNames, Map<String,String> alternativeNamesMap)
Verifies if required properties or their alternatives are present in the item properties list. Alternative property names are read from thealternativeNamesMap
parameter.
For instance, a required latitude property can be provided either directly, using thelatitude
item property, or by processing the alternativeaddress
property. If at least one of thelatitude
oraddress
properties are present in the item properties list, the latitude requirement is fulfilled.- Parameters:
verifier
-item
-itemName
-requiredNames
-alternativeNamesMap
-
-
-