Package org.pentaho.reporting.engine.classic.core.metadata

Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeRegistry


    final ElementMetaData metaData =
        ElementTypeRegistry.getInstance().getElementType(LabelType.INSTANCE.getMetaData().getName());
    final AttributeMetaData attrMeta = metaData.getAttributeDescription("namespace", "Name");
    assertNull(attrMeta);

    final AttributeRegistry attributeRegistry =
        ElementTypeRegistry.getInstance().getAttributeRegistry(LabelType.INSTANCE);

    final DefaultAttributeMetaData m = new DefaultAttributeMetaData
        ("namespace", "Name", BUNDLE_LOCATION, "prefix",
            String.class, false, ClassicEngineBoot.computeCurrentVersionId());
    attributeRegistry.putAttributeDescription(m);

    final AttributeMetaData attributeDescription = metaData.getAttributeDescription("namespace", "Name");
    assertEquals("prefix", attributeDescription.getKeyPrefix());
    assertEquals(BUNDLE_LOCATION, attributeDescription.getBundleLocation());
  }
View Full Code Here


    final ElementMetaData[] types = ElementTypeRegistry.getInstance().getAllElementTypes();
    for (int i = 0; i < types.length; i++)
    {
      final ElementMetaData type = types[i];
      final AttributeRegistry attributeRegistry = ElementTypeRegistry.getInstance().getAttributeRegistry(type.getName());
      attributeRegistry.putAttributeDescription(metaData);
    }

    try
    {
      Driver driver = ObjectUtilities.loadAndInstantiate
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.metadata.AttributeRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.