org.pentaho.reporting.engine.classic.core.metadata
Interface AttributeMetaData

All Superinterfaces:
MetaData
All Known Implementing Classes:
DefaultAttributeMetaData

public interface AttributeMetaData
extends MetaData

Describes the known attributes an element can take.

Author:
Thomas Morgner

Field Summary
static String VALUEROLE_BUNDLE_KEY
           
static String VALUEROLE_BUNDLE_NAME
           
static String VALUEROLE_CONTENT
           
static String VALUEROLE_DATEFORMAT
           
static String VALUEROLE_ELEMENT_NAME
           
static String VALUEROLE_FIELD
           
static String VALUEROLE_FORMULA
           
static String VALUEROLE_GROUP
           
static String VALUEROLE_MESSAGE
           
static String VALUEROLE_NUMBERFORMAT
           
static String VALUEROLE_QUERY
           
static String VALUEROLE_RESOURCE
           
static String VALUEROLE_VALUE
           
 
Method Summary
 PropertyEditor getEditor()
          This method can return null if there is no property editor registered for this type.
 String[] getExtraCalculationFields()
           
 String getNameSpace()
           
 String[] getReferencedFields(ReportElement element, Object attributeValue)
           
 String[] getReferencedGroups(ReportElement element, Object attributeValue)
           
 ResourceReference[] getReferencedResources(ReportElement element, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, Object attributeValue)
           
 Class getTargetType()
           
 String getValueRole()
          Can be one of "Value", "Resource", "Content", "Field", "Group", "Query", "Message", "Bundle-Key", "Bundle-Name", "Name", "ElementName", "DateFormat", "NumberFormat"
 boolean isBulk()
           
 boolean isComputed()
          Indicates if this attribute is computed.
 boolean isDesignTimeValue()
          Indicates whether this attribute is a design-time value.
 boolean isMandatory()
           
 boolean isTransient()
          Indicates whether this attribute should be omitted when element is serialized to disk or written into a PRPT file.
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.metadata.MetaData
getCompatibilityLevel, getDeprecationMessage, getDescription, getDisplayName, getGrouping, getGroupingOrdinal, getItemOrdinal, getMetaAttribute, getName, isDeprecated, isExperimental, isExpert, isHidden, isPreferred
 

Field Detail

VALUEROLE_FORMULA

static final String VALUEROLE_FORMULA
See Also:
Constant Field Values

VALUEROLE_VALUE

static final String VALUEROLE_VALUE
See Also:
Constant Field Values

VALUEROLE_RESOURCE

static final String VALUEROLE_RESOURCE
See Also:
Constant Field Values

VALUEROLE_CONTENT

static final String VALUEROLE_CONTENT
See Also:
Constant Field Values

VALUEROLE_FIELD

static final String VALUEROLE_FIELD
See Also:
Constant Field Values

VALUEROLE_GROUP

static final String VALUEROLE_GROUP
See Also:
Constant Field Values

VALUEROLE_QUERY

static final String VALUEROLE_QUERY
See Also:
Constant Field Values

VALUEROLE_MESSAGE

static final String VALUEROLE_MESSAGE
See Also:
Constant Field Values

VALUEROLE_BUNDLE_KEY

static final String VALUEROLE_BUNDLE_KEY
See Also:
Constant Field Values

VALUEROLE_BUNDLE_NAME

static final String VALUEROLE_BUNDLE_NAME
See Also:
Constant Field Values

VALUEROLE_ELEMENT_NAME

static final String VALUEROLE_ELEMENT_NAME
See Also:
Constant Field Values

VALUEROLE_DATEFORMAT

static final String VALUEROLE_DATEFORMAT
See Also:
Constant Field Values

VALUEROLE_NUMBERFORMAT

static final String VALUEROLE_NUMBERFORMAT
See Also:
Constant Field Values
Method Detail

getNameSpace

String getNameSpace()

getTargetType

Class getTargetType()

getValueRole

String getValueRole()
Can be one of "Value", "Resource", "Content", "Field", "Group", "Query", "Message", "Bundle-Key", "Bundle-Name", "Name", "ElementName", "DateFormat", "NumberFormat"

Returns:

isMandatory

boolean isMandatory()

isComputed

boolean isComputed()
Indicates if this attribute is computed. This indicates that values of the attribute will be computed at runtime and any value set in the element itself is merely there for caching purposes and can be removed before writing the PRPT file, before serializing and before deriving an element.


isTransient

boolean isTransient()
Indicates whether this attribute should be omitted when element is serialized to disk or written into a PRPT file. Only mark attributes as transient which contain values that have been handled elsewhere.


isBulk

boolean isBulk()

isDesignTimeValue

boolean isDesignTimeValue()
Indicates whether this attribute is a design-time value. Such values will not be computed at runtime and any expression given for that attribute will be ignored.

Returns:

getEditor

PropertyEditor getEditor()
This method can return null if there is no property editor registered for this type.

Returns:

getReferencedFields

String[] getReferencedFields(ReportElement element,
                             Object attributeValue)

getReferencedGroups

String[] getReferencedGroups(ReportElement element,
                             Object attributeValue)

getReferencedResources

ResourceReference[] getReferencedResources(ReportElement element,
                                           org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
                                           Object attributeValue)

getExtraCalculationFields

String[] getExtraCalculationFields()