Class DefaultElementMetaData
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.metadata.AbstractMetaData
-
- org.pentaho.reporting.engine.classic.core.metadata.DefaultElementMetaData
-
- All Implemented Interfaces:
Serializable
,ElementMetaData
,MetaData
public class DefaultElementMetaData extends AbstractMetaData implements ElementMetaData
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData
ElementMetaData.TypeClassification
-
-
Field Summary
-
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 DefaultElementMetaData(String name, String bundleLocation, String keyPrefix, String namespace, boolean expert, boolean preferred, boolean hidden, boolean deprecated, ElementMetaData.TypeClassification reportElementType, org.pentaho.reporting.libraries.xmlns.common.AttributeMap<AttributeMetaData> attributes, Map<StyleKey,StyleMetaData> styles, Class<? extends ElementType> elementType, Class<?> contentType, MaturityLevel maturityLevel, int compatibilityLevel)
DefaultElementMetaData(ElementMetaDataBuilder builder)
DefaultElementMetaData(ElementMetaData metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementType
create()
AttributeMetaData
getAttributeDescription(String namespace, String name)
AttributeMetaData[]
getAttributeDescriptions()
Class<?>
getContentType()
Class<? extends ElementType>
getElementType()
String
getNamespace()
The namespace of the elemnet in an PRPT bundle.ElementMetaData.TypeClassification
getReportElementType()
StyleMetaData
getStyleDescription(StyleKey name)
StyleMetaData[]
getStyleDescriptions()
boolean
isContainerElement()
Indicates whether the element described here is a container element, like "band".void
setAttributeDescription(String namespace, String name, AttributeMetaData metaData)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.metadata.AbstractMetaData
computePrefix, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData
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
-
-
-
-
Constructor Detail
-
DefaultElementMetaData
public DefaultElementMetaData(String name, String bundleLocation, String keyPrefix, String namespace, boolean expert, boolean preferred, boolean hidden, boolean deprecated, ElementMetaData.TypeClassification reportElementType, org.pentaho.reporting.libraries.xmlns.common.AttributeMap<AttributeMetaData> attributes, Map<StyleKey,StyleMetaData> styles, Class<? extends ElementType> elementType, Class<?> contentType, MaturityLevel maturityLevel, int compatibilityLevel)
-
DefaultElementMetaData
public DefaultElementMetaData(ElementMetaDataBuilder builder)
-
DefaultElementMetaData
public DefaultElementMetaData(ElementMetaData metaData)
-
-
Method Detail
-
getAttributeDescriptions
public AttributeMetaData[] getAttributeDescriptions()
- Specified by:
getAttributeDescriptions
in interfaceElementMetaData
-
getStyleDescriptions
public StyleMetaData[] getStyleDescriptions()
- Specified by:
getStyleDescriptions
in interfaceElementMetaData
-
getAttributeDescription
public AttributeMetaData getAttributeDescription(String namespace, String name)
- Specified by:
getAttributeDescription
in interfaceElementMetaData
-
setAttributeDescription
public void setAttributeDescription(String namespace, String name, AttributeMetaData metaData)
-
getStyleDescription
public StyleMetaData getStyleDescription(StyleKey name)
- Specified by:
getStyleDescription
in interfaceElementMetaData
-
create
public ElementType create() throws InstantiationException
- Specified by:
create
in interfaceElementMetaData
- Throws:
InstantiationException
-
isContainerElement
public boolean isContainerElement()
Description copied from interface:ElementMetaData
Indicates whether the element described here is a container element, like "band". Such element-types are tied to a specific element instance and cannot be shared freely.- Specified by:
isContainerElement
in interfaceElementMetaData
- Returns:
-
getReportElementType
public ElementMetaData.TypeClassification getReportElementType()
- Specified by:
getReportElementType
in interfaceElementMetaData
-
getContentType
public Class<?> getContentType()
- Specified by:
getContentType
in interfaceElementMetaData
-
getElementType
public Class<? extends ElementType> getElementType()
- Specified by:
getElementType
in interfaceElementMetaData
-
getNamespace
public String getNamespace()
Description copied from interface:ElementMetaData
The namespace of the elemnet in an PRPT bundle.- Specified by:
getNamespace
in interfaceElementMetaData
- Returns:
-
-