Examples of NamespaceCollection


Examples of org.pentaho.reporting.engine.classic.core.style.css.namespaces.NamespaceCollection

    {
      return;
    }

    writer.writeTag(BundleNamespaces.STYLE, "rule", XmlWriter.OPEN);
    final NamespaceCollection collection = StyleSheetParserUtil.getInstance().getNamespaceCollection();
    for (int i = 0; i < styleRule.getSelectorCount(); i += 1)
    {
      writer.writeTag(BundleNamespaces.STYLE, "selector", XmlWriter.OPEN);
      writer.writeTextNormalized(styleRule.getSelector(i).print(collection), false);
      writer.writeCloseTag();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.css.namespaces.NamespaceCollection

    ClassicEngineBoot.getInstance().start();
  }

  public void testParsing() throws Exception
  {
    final NamespaceCollection namespaceCollection = StyleSheetParserUtil.getInstance().getNamespaceCollection();
    final SelectorList selectorList = StyleSheetParserUtil.getInstance().parseSelector(namespaceCollection, "h1.test[x-lang=\"fr'\\\"\"]");
    for (int i = 0; i < selectorList.getLength(); i+= 1)
    {
      CSSSelector item = (CSSSelector) selectorList.item(i);
      System.out.println (item.print(namespaceCollection));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.css.namespaces.NamespaceCollection

    }
  }

  public void testParsingClass() throws Exception
  {
    final NamespaceCollection namespaceCollection = StyleSheetParserUtil.getInstance().getNamespaceCollection();
    final SelectorList selectorList = StyleSheetParserUtil.getInstance().parseSelector(namespaceCollection, ".\\aa  test");
    for (int i = 0; i < selectorList.getLength(); i+= 1)
    {
      CSSSelector item = (CSSSelector) selectorList.item(i);
      System.out.println (item.print(namespaceCollection));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.css.namespaces.NamespaceCollection

      return new SimpleStyleResolver(designTime);
    }
    else
    {
      final CSSStyleResolver resolver = new CSSStyleResolver(designTime);
      final NamespaceCollection namespaceCollection = StyleSheetParserUtil.getInstance().getNamespaceCollection();
      final DefaultDocumentContext documentContext =
          new DefaultDocumentContext(namespaceCollection, resourceManager, contentBase, null, styleDefinition);
      resolver.initialize(documentContext);
      return resolver;
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.namespace.NamespaceCollection

    if (namespace == null)
    {
      return;
    }

    final NamespaceCollection namespaces = getNamespaces();
    final NamespaceDefinition ndef = namespaces.getDefinition(namespace);
    if (ndef == null)
    {
      return;
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.namespace.NamespaceCollection

   *
   * @param node
   */
  private void performCompleteStyleAttr(final LayoutElement node)
  {
    final NamespaceCollection namespaces = getNamespaces();
    final String[] namespaceNames = namespaces.getNamespaces();

    for (int i = 0; i < namespaceNames.length; i++)
    {
      final String namespace = namespaceNames[i];
      final NamespaceDefinition ndef = namespaces.getDefinition(namespace);
      if (ndef == null)
      {
        continue;
      }

View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.NamespaceCollection

      throw new NullPointerException();
    }
   
    if (namespaceCollection == null)
    {
      namespaceCollection = new NamespaceCollection();
      namespaceCollection.configure(LibDocBundleBoot.getInstance().getGlobalConfig(),
          "org.pentaho.reporting.libraries.docbundle.namespaces.");
    }

    return namespaceCollection.getPrefix(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.