public class DefaultAttributeMetaData extends AbstractMetaData implements AttributeMetaData
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 and Description |
---|
DefaultAttributeMetaData(AttributeMetaDataBuilder builder) |
DefaultAttributeMetaData(String namespace,
String name,
String bundleLocation,
String keyPrefix,
Class<?> targetClass,
boolean designTimeValue,
int compatibilityLevel)
Creates an expert, non-preferred, hidden, non-mandatory, non-computed and non-transient attribute.
|
DefaultAttributeMetaData(String namespace,
String name,
String bundleLocation,
String keyPrefix,
String propertyEditorClass,
Class<?> targetClass,
boolean expert,
boolean preferred,
boolean hidden,
boolean deprecated,
boolean mandatory,
boolean computed,
boolean transientFlag,
String valueRole,
boolean bulk,
boolean designTimeValue,
AttributeCore attributeCore,
MaturityLevel maturityLevel,
int compatibilityLevel) |
Modifier and Type | Method and Description |
---|---|
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,
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",
|
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.
|
String |
toString() |
computePrefix, getBundle, getBundleLocation, getCompatibilityLevel, getDeprecationMessage, getDescription, getDisplayName, getFeatureMaturityLevel, getGrouping, getGroupingOrdinal, getIcon, getItemOrdinal, getKeyPrefix, getMetaAttribute, getName, isDeprecated, isExperimental, isExpert, isHidden, isPreferred
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBundleLocation, getCompatibilityLevel, getDeprecationMessage, getDescription, getDisplayName, getFeatureMaturityLevel, getGrouping, getGroupingOrdinal, getItemOrdinal, getKeyPrefix, getMetaAttribute, getName, isDeprecated, isExperimental, isExpert, isHidden, isPreferred
public DefaultAttributeMetaData(String namespace, String name, String bundleLocation, String keyPrefix, Class<?> targetClass, boolean designTimeValue, int compatibilityLevel)
namespace
- name
- bundleLocation
- keyPrefix
- targetClass
- designTimeValue
- compatibilityLevel
- public DefaultAttributeMetaData(AttributeMetaDataBuilder builder)
public DefaultAttributeMetaData(String namespace, String name, String bundleLocation, String keyPrefix, String propertyEditorClass, Class<?> targetClass, boolean expert, boolean preferred, boolean hidden, boolean deprecated, boolean mandatory, boolean computed, boolean transientFlag, String valueRole, boolean bulk, boolean designTimeValue, AttributeCore attributeCore, MaturityLevel maturityLevel, int compatibilityLevel)
public String getValueRole()
getValueRole
in interface AttributeMetaData
public boolean isDesignTimeValue()
AttributeMetaData
isDesignTimeValue
in interface AttributeMetaData
public boolean isBulk()
isBulk
in interface AttributeMetaData
public boolean isComputed()
AttributeMetaData
isComputed
in interface AttributeMetaData
public boolean isTransient()
AttributeMetaData
isTransient
in interface AttributeMetaData
public boolean isMandatory()
isMandatory
in interface AttributeMetaData
public String getNameSpace()
getNameSpace
in interface AttributeMetaData
public Class<?> getTargetType()
getTargetType
in interface AttributeMetaData
public PropertyEditor getEditor()
AttributeMetaData
getEditor
in interface AttributeMetaData
public String[] getReferencedFields(ReportElement element, Object attributeValue)
getReferencedFields
in interface AttributeMetaData
public String[] getReferencedGroups(ReportElement element, Object attributeValue)
getReferencedGroups
in interface AttributeMetaData
public ResourceReference[] getReferencedResources(ReportElement element, ResourceManager resourceManager, Object attributeValue)
getReferencedResources
in interface AttributeMetaData
public String[] getExtraCalculationFields()
getExtraCalculationFields
in interface AttributeMetaData
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.