Examples of createKey()


Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

    {
      final String name = (String) it.next();
      map.put(new FactoryParameterKey(name), helperObjects.get(name));
    }

    final ResourceKey key = resourceManager.createKey(bytes, map);
    final Resource resource = resourceManager.create(key, contextKey, MasterReport.class);
    return (MasterReport) resource.getResource();
  }

  private MasterReport parseReportDirectly(final InputSource input, final URL contentBase)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

    final MasterReportXmlResourceFactory resourceFactory = new MasterReportXmlResourceFactory();
    resourceFactory.initializeDefaults();
    if (contentBase != null)
    {
      return (MasterReport) resourceFactory.parseDirectly(manager, input, manager.createKey(contentBase), map);
    }
    else
    {
      return (MasterReport) resourceFactory.parseDirectly(manager, input, null, map);
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

      {
        chartKey = resourceManager.deriveKey(runtime.getProcessingContext().getContentBase(), (String) value);
      }
      else
      {
        chartKey = resourceManager.createKey(value);
      }
     
      return null;
    }
    catch (ResourceException e)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

      }
      else if (value instanceof Blob)
      {
        final Blob b = (Blob) value;
        final byte[] data = IOUtils.getInstance().readBlob(b);
        key = resManager.createKey(data);
      }
      else if (value instanceof String)
      {
        final Object baseURL = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.CONTENT_BASE);
        if (baseURL != null)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

      else if (value instanceof String)
      {
        final Object baseURL = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.CONTENT_BASE);
        if (baseURL != null)
        {
          final ResourceKey baseKey = resManager.createKey(baseURL);
          key = resManager.deriveKey(baseKey, (String) value);
        }
        else
        {
          key = resManager.deriveKey(contentBase, (String) value);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

          key = resManager.deriveKey(contentBase, (String) value);
        }
      }
      else
      {
        key = resManager.createKey(value);
      }
      if (key == null)
      {
        return null;
      }
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

      }
      else if (value instanceof Blob)
      {
        final Blob b = (Blob) value;
        final byte[] data = IOUtils.getInstance().readBlob(b);
        key = resManager.createKey(data);
      }
      else if (value instanceof String)
      {
        final Object baseURL = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.CONTENT_BASE);
        if (baseURL instanceof String)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

          key = createKeyFromString(resManager, baseKey, (String) value);
        }
        else if (baseURL != null)
        {
          // if a base-url object is given, we assume that it is indeed valid.
          final ResourceKey baseKey = resManager.createKey(baseURL);
          key = createKeyFromString(resManager, baseKey, (String) value);
        }
        else
        {
          key = createKeyFromString(resManager, contentBase, (String) value);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

          key = createKeyFromString(resManager, contentBase, (String) value);
        }
      }
      else
      {
        key = resManager.createKey(value);
      }
      if (key == null)
      {
        return null;
      }
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createKey()

    {
      CSSParserContext.getContext().setDefaultNamespace(defaultNamespaceURI);
      final ResourceKey key;
      if (source == null)
      {
        key = manager.createKey(uri);
      }
      else
      {
        key = manager.deriveKey(source, uri);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.