Examples of NamespaceDefinition


Examples of org.jfree.layouting.namespace.NamespaceDefinition

    final AttributeMap attributes = layoutContext.getAttributes();

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

      final String[] styleAttrs = ndef.getStyleAttribute(layoutContext.getTagName());
      for (int x = 0; x < styleAttrs.length; x++)
      {
        final String attr = styleAttrs[x];
        final Object styleValue = attributes.getAttribute(namespace, attr);
        addStyleFromAttribute(node, styleValue);
View Full Code Here

Examples of org.jfree.layouting.namespace.NamespaceDefinition

      if (attributeMap == null)
      {
        continue;
      }

      final NamespaceDefinition nsDef = target.getNamespaceByUri(namespace);
      final Iterator attributeIt = attributeMap.entrySet().iterator();
      while (attributeIt.hasNext())
      {
        final Map.Entry entry = (Map.Entry) attributeIt.next();
        final String key = (String) entry.getKey();
View Full Code Here

Examples of org.jfree.layouting.namespace.NamespaceDefinition

    if (list.isNamespaceUriDefined(uri))
    {
      return;
    }

    final NamespaceDefinition def = getNamespaceByUri(uri);
    if (def != null)
    {
      final String prefix = def.getPreferredPrefix();
      if (writer.isNamespacePrefixDefined(prefix) == false &&
          list.isNamespacePrefixDefined(prefix) == false)
      {
        list.addNamespaceDeclaration (prefix, uri);
      }
View Full Code Here

Examples of org.jfree.layouting.namespace.NamespaceDefinition

      }

      final NamespaceDefinition[] namespaces = createDefaultNameSpaces();
      for (int i = 0; i < namespaces.length; i++)
      {
        final NamespaceDefinition definition = namespaces[i];
        feed.startMetaNode();
        feed.setMetaNodeAttribute("type", "namespace");
        feed.setMetaNodeAttribute("definition", definition);
        feed.endMetaNode();
      }
View Full Code Here

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

      {
        b.append("|");
      }
      else
      {
        NamespaceDefinition definition = namespaces.getDefinition(namespace);
        if (definition == null)
        {
          b.append("\"");
          b.append(namespace);
          b.append("\"");
          b.append("|");
        }
        else
        {
          b.append(definition.getPrefix());
          b.append("|");
        }
      }
    }
    b.append(name);
View Full Code Here

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

      {
        b.append("|");
      }
      else
      {
        final NamespaceDefinition definition = namespaces.getDefinition(namespace);
        if (definition == null)
        {
          b.append("\"");
          b.append(namespace);
          b.append("\"");
          b.append("|");
        }
        else
        {
          b.append(definition.getPrefix());
          b.append("|");
        }
      }
      b.append(localName);
    }
View Full Code Here

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

        }
        if (namespace == null)
        {
          return false;
        }
        final NamespaceDefinition ndef = namespaces.getDefinition(namespace);
        if (ndef == null)
        {
          return false;
        }
        final String[] classAttribute = ndef.getClassAttribute(getTagName(node));
        for (int i = 0; i < classAttribute.length; i++)
        {
          final String attr = classAttribute[i];
          final String htmlAttr = (String) node.getAttribute(namespace, attr);
          if (isOneOfAttributes(htmlAttr, ac.getValue()))
View Full Code Here

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

    {
      return;
    }

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

    //final AttributeMap attributes = layoutContext.getAttributes();
    final String[] styleAttrs = ndef.getStyleAttribute
        (node.getTagName());
    for (int i = 0; i < styleAttrs.length; i++)
    {
      final String attr = styleAttrs[i];
      final Object styleValue = node.getAttribute(namespace, attr);
View Full Code Here

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

    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;
      }

      final String[] styleAttrs = ndef.getStyleAttribute(node.getTagName());
      for (int x = 0; x < styleAttrs.length; x++)
      {
        final String attr = styleAttrs[x];
        final Object styleValue = node.getAttribute(namespace, attr);
        addStyleFromAttribute(node, styleValue);
View Full Code Here

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

    namespaces = dc.getNamespaces();
    final String[] nsUri = namespaces.getNamespaces();
    for (int i = 0; i < nsUri.length; i++)
    {
      final String uri = nsUri[i];
      final NamespaceDefinition nsDef = namespaces.getDefinition(uri);
      final ResourceKey rawKey = nsDef.getDefaultStyleSheetLocation();
      if (rawKey == null)
      {
        // there is no default stylesheet for that namespace.
        continue;
      }
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.