Class DefaultAttributeRegistry
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.metadata.DefaultAttributeRegistry
-
- All Implemented Interfaces:
AttributeRegistry
public class DefaultAttributeRegistry extends Object implements AttributeRegistry
-
-
Constructor Summary
Constructors Constructor Description DefaultAttributeRegistry(DefaultElementMetaData elementMetaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMetaData
getAttributeDescription(String namespace, String name)
Retrieves the metadata for an attribute by namespace and name.void
putAttributeDescription(AttributeMetaData metaData)
Adds a new or updates the metadata for an existing attribute of a report-element.
-
-
-
Constructor Detail
-
DefaultAttributeRegistry
public DefaultAttributeRegistry(DefaultElementMetaData elementMetaData)
-
-
Method Detail
-
putAttributeDescription
public void putAttributeDescription(AttributeMetaData metaData)
Description copied from interface:AttributeRegistry
Adds a new or updates the metadata for an existing attribute of a report-element.- Specified by:
putAttributeDescription
in interfaceAttributeRegistry
- Parameters:
metaData
- the new metadata object.
-
getAttributeDescription
public AttributeMetaData getAttributeDescription(String namespace, String name)
Description copied from interface:AttributeRegistry
Retrieves the metadata for an attribute by namespace and name.- Specified by:
getAttributeDescription
in interfaceAttributeRegistry
- Parameters:
namespace
- the namespace for the attribute.name
- the attribute name.- Returns:
- the attribute definition or null, if the attribute is not defined.
-
-