Examples of attributes()


Examples of org.apache.tapestry5.MarkupWriter.attributes()

        w.element("img");

        try
        {
            w.attributes("src", "foo.png", "width", 20, 30);
            unreachable();
        }
        catch (RuntimeException ex)
        {
            assertMessageContains(ex, "Writing attributes of the element 'img' failed.",
View Full Code Here

Examples of org.apache.tapestry5.MarkupWriter.attributes()

        train_getParameterModel(model, "fred", null);

        train_get(binding, rawValue);

        writer.attributes("fred", "97");

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null,
                elementResources, "Foo.bar", null, ins, false);
View Full Code Here

Examples of org.apache.tapestry5.dom.Element.attributes()

            Element element = scriptsAtTop
                              ? body.elementAt(i, "script")
                              : body.element("script");

            element.attributes("src", scriptURL, "type", "text/javascript");
        }
    }

    /**
     * Locates the head element under the root ("html") element, creating it if necessary, and adds the stylesheets to
View Full Code Here

Examples of org.asciidoctor.AttributesBuilder.attributes()

        if (this.verbose) {
            optionsBuilder.option(MONITOR_OPTION_NAME, new HashMap<Object, Object>());
        }

        attributesBuilder.attributes(getAttributes());
        optionsBuilder.attributes(attributesBuilder.get());
        return optionsBuilder.get();

    }
View Full Code Here

Examples of org.asciidoctor.OptionsBuilder.attributes()

        if (this.verbose) {
            optionsBuilder.option(MONITOR_OPTION_NAME, new HashMap<Object, Object>());
        }

        attributesBuilder.attributes(getAttributes());
        optionsBuilder.attributes(attributesBuilder.get());
        return optionsBuilder.get();

    }

    public Map<String, Object> getAttributes() {
View Full Code Here

Examples of org.dom4j.Element.attributes()

   
    void getAttributes(Object node, String localName, String namespaceUri, List result) {
        if(node instanceof Element) {
            Element e = (Element)node;
            if(localName == null) {
                result.addAll(e.attributes());
            }
            else {
                Attribute attr = e.attribute(e.getQName().getDocumentFactory().createQName(localName, "", namespaceUri));
                if(attr != null) {
                    result.add(attr);
View Full Code Here

Examples of org.dom4j.Element.attributes()

            String id = oneImplementation.attributeValue("id");
            String extensionClass = oneImplementation.attributeValue("class");
            LOG.fine("impl: point="+pointId+" class="+extensionClass);
            Extension extension = new Extension(pPluginDescriptor,
                                                pointId, id, extensionClass);
            List list = oneImplementation.attributes();
            for (int k = 0; k < list.size(); k++) {
              Attribute attribute = (Attribute) list.get(k);
              String name = attribute.getName();
              if (name.equals("id") || name.equals("class"))
                continue;
View Full Code Here

Examples of org.dom4j.Element.attributes()

  @SuppressWarnings("unchecked")
    public XdpTreeNode(Node node) {
    super(null, node);
    if (node instanceof Element) {
      Element element = (Element)node;
      addChildNodes(element.attributes());
    }
    if (node instanceof Branch) {
      Branch branch = (Branch) node;
      addChildNodes(branch.content());
    }
View Full Code Here

Examples of org.elasticsearch.cluster.node.DiscoveryNode.attributes()

                        logger.warn("node {} not part of the cluster {}, ignoring...", listedNode, clusterName);
                        newFilteredNodes.add(listedNode);
                    } else if (nodeInfo.getNodes().length != 0) {
                        // use discovered information but do keep the original transport address, so people can control which address is exactly used.
                        DiscoveryNode nodeWithInfo = nodeInfo.getNodes()[0].getNode();
                        newNodes.add(new DiscoveryNode(nodeWithInfo.name(), nodeWithInfo.id(), nodeWithInfo.getHostName(), nodeWithInfo.getHostAddress(), listedNode.address(), nodeWithInfo.attributes(), nodeWithInfo.version()));
                    } else {
                        // although we asked for one node, our target may not have completed initialization yet and doesn't have cluster nodes
                        logger.debug("node {} didn't return any discovery info, temporarily using transport discovery node", listedNode);
                        newNodes.add(listedNode);
                    }
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.attributes()

                    //TODO: a join is taking place
                }

                FeatureSource<? extends FeatureType, ? extends Feature> source = meta.getFeatureSource(null,null);

                List<AttributeTypeInfo> atts = meta.attributes();
                List attNames = new ArrayList( atts.size() );
                for ( AttributeTypeInfo att : atts ) {
                    attNames.add( att.getName() );
                }
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.