Class DefaultExpressionMetaData
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.metadata.AbstractMetaData
-
- org.pentaho.reporting.engine.classic.core.metadata.DefaultExpressionMetaData
-
- All Implemented Interfaces:
Serializable
,ExpressionMetaData
,MetaData
public class DefaultExpressionMetaData extends AbstractMetaData implements ExpressionMetaData
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ELEMENT_LAYOUT_PROCESSOR
static int
GLOBAL_LAYOUT_PROCESSOR
static int
NO_LAYOUT_PROCESSOR
-
Fields inherited from interface org.pentaho.reporting.engine.classic.core.metadata.MetaData
VALUEROLE_BUNDLE_KEY, VALUEROLE_BUNDLE_NAME, VALUEROLE_CONTENT, VALUEROLE_DATEFORMAT, VALUEROLE_ELEMENT_NAME, VALUEROLE_FIELD, VALUEROLE_FORMULA, VALUEROLE_GROUP, VALUEROLE_MESSAGE, VALUEROLE_NUMBERFORMAT, VALUEROLE_QUERY, VALUEROLE_RESOURCE, VALUEROLE_VALUE
-
-
Constructor Summary
Constructors Constructor Description DefaultExpressionMetaData(String bundleLocation, boolean expert, boolean preferred, boolean hidden, boolean deprecated, Class<? extends Expression> expressionType, Class<?> resultType, Map<String,ExpressionPropertyMetaData> attributes, SharedBeanInfo beanInfo, int layoutProcessorMode, MaturityLevel maturityLevel, int compatibilityLevel)
DefaultExpressionMetaData(ExpressionMetaDataBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
computePrefix(String keyPrefix, String name)
Expression
create()
boolean
equals(Object o)
BeanInfo
getBeanDescriptor()
Class
getExpressionType()
ExpressionPropertyMetaData
getPropertyDescription(String name)
ExpressionPropertyMetaData[]
getPropertyDescriptions()
String[]
getPropertyNames()
Class
getResultType()
int
hashCode()
boolean
isElementLayoutProcessor()
Checks whether the main purpose of the expression is to modify the layout of the report.boolean
isGlobalLayoutProcessor()
Checks whether the main purpose of the expression is to modify the layout of the report.boolean
isStatefull()
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.metadata.AbstractMetaData
getBundle, getBundleLocation, getCompatibilityLevel, getDeprecationMessage, getDescription, getDisplayName, getFeatureMaturityLevel, getGrouping, getGroupingOrdinal, getIcon, getItemOrdinal, getKeyPrefix, getMetaAttribute, getName, isDeprecated, isExperimental, isExpert, isHidden, isPreferred
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.metadata.ExpressionMetaData
getIcon
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.metadata.MetaData
getBundleLocation, getCompatibilityLevel, getDeprecationMessage, getDescription, getDisplayName, getFeatureMaturityLevel, getGrouping, getGroupingOrdinal, getItemOrdinal, getKeyPrefix, getMetaAttribute, getName, isDeprecated, isExperimental, isExpert, isHidden, isPreferred
-
-
-
-
Field Detail
-
NO_LAYOUT_PROCESSOR
public static final int NO_LAYOUT_PROCESSOR
- See Also:
- Constant Field Values
-
ELEMENT_LAYOUT_PROCESSOR
public static final int ELEMENT_LAYOUT_PROCESSOR
- See Also:
- Constant Field Values
-
GLOBAL_LAYOUT_PROCESSOR
public static final int GLOBAL_LAYOUT_PROCESSOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultExpressionMetaData
public DefaultExpressionMetaData(String bundleLocation, boolean expert, boolean preferred, boolean hidden, boolean deprecated, Class<? extends Expression> expressionType, Class<?> resultType, Map<String,ExpressionPropertyMetaData> attributes, SharedBeanInfo beanInfo, int layoutProcessorMode, MaturityLevel maturityLevel, int compatibilityLevel)
-
DefaultExpressionMetaData
public DefaultExpressionMetaData(ExpressionMetaDataBuilder builder)
-
-
Method Detail
-
computePrefix
protected String computePrefix(String keyPrefix, String name)
- Overrides:
computePrefix
in classAbstractMetaData
-
isStatefull
public boolean isStatefull()
- Specified by:
isStatefull
in interfaceExpressionMetaData
-
getResultType
public Class getResultType()
- Specified by:
getResultType
in interfaceExpressionMetaData
-
getExpressionType
public Class getExpressionType()
- Specified by:
getExpressionType
in interfaceExpressionMetaData
-
getPropertyDescription
public ExpressionPropertyMetaData getPropertyDescription(String name)
- Specified by:
getPropertyDescription
in interfaceExpressionMetaData
-
create
public Expression create()
- Specified by:
create
in interfaceExpressionMetaData
-
getPropertyNames
public String[] getPropertyNames()
- Specified by:
getPropertyNames
in interfaceExpressionMetaData
-
getPropertyDescriptions
public ExpressionPropertyMetaData[] getPropertyDescriptions()
- Specified by:
getPropertyDescriptions
in interfaceExpressionMetaData
-
getBeanDescriptor
public BeanInfo getBeanDescriptor() throws IntrospectionException
- Specified by:
getBeanDescriptor
in interfaceExpressionMetaData
- Throws:
IntrospectionException
-
isElementLayoutProcessor
public boolean isElementLayoutProcessor()
Checks whether the main purpose of the expression is to modify the layout of the report. This method returns true, if the expression modifies one or more named elements.- Specified by:
isElementLayoutProcessor
in interfaceExpressionMetaData
- Returns:
- true, if this is a layout-processor that modifies named elements.
-
isGlobalLayoutProcessor
public boolean isGlobalLayoutProcessor()
Checks whether the main purpose of the expression is to modify the layout of the report. This method returns true, if the expression modifies the global layout only.- Specified by:
isGlobalLayoutProcessor
in interfaceExpressionMetaData
- Returns:
- true, if this is a layout-processor that modifies the global layout.
-
-