Examples of attribute()


Examples of info.magnolia.templating.elements.MarkupHelper.attribute()

            if(!(nodeObj instanceof javax.jcr.Node)){
                throw new TemplateProcessingException("Musst pass a javx.jcr.Node here");
            }
            javax.jcr.Node node = (javax.jcr.Node)nodeObj;
            if(node != null) {
                helper.attribute(CONTENT_ATTRIBUTE, getNodePath(node));
            }
            Object ctxObj = StandardExpressionProcessor.processExpression(
                    arguments, "${renderingContext}");
            if(!(ctxObj instanceof RenderingContext)){
                throw new TemplateProcessingException("Musst pass a RenderingContext here");
View Full Code Here

Examples of net.sf.saxon.event.Receiver.attribute()

                    out.namespace(decl.getNamespaceCode(i), 0);
                }

                AttributeCollection atts = in.getAttributes();
                for (int i=0; i<atts.getLength(); i++) {
                    out.attribute(atts.getNameCode(i), atts.getTypeAnnotation(i),
                            atts.getValue(i), 0, atts.getProperties(i));
                }

                out.startContent();
                break;
View Full Code Here

Examples of net.sf.saxon.event.SequenceReceiver.attribute()

        }
        if ((nameCode & NamePool.FP_MASK) == StandardNames.XML_ID) {
            value = Whitespace.collapseWhitespace(value);
        }
        try {
            out.attribute(nameCode, ann, value, locationId, opt);
        } catch (XPathException err) {
            throw dynamicError(this, err, context);
        }

        //return null;
View Full Code Here

Examples of net.sf.saxon.tinytree.TinyBuilder.attribute()

            builder.startElement(elementNameCode, StandardNames.XS_UNTYPED_ATOMIC, 0, 0);
            for (int i=0; i<namespacesSize; i++) {
                builder.namespace(namespaces[i], 0);
            }
            for (int i=0; i<len; i++) {
                builder.attribute(bufferedAttributes.getNameCode(i), StandardNames.XS_UNTYPED_ATOMIC,
                        bufferedAttributes.getValue(i), 0, 0);
            }
            builder.startContent();
            builder.endElement();
            elementNode = builder.getCurrentRoot();
View Full Code Here

Examples of net.sf.saxon.tree.TreeBuilder.attribute()

            builder.startDocument(0);

            int st = StandardNames.XSL_STYLESHEET;
            builder.startElement(st, StandardNames.XS_UNTYPED, 0, 0);
            builder.namespace(NamespaceConstant.XSLT_CODE, 0);
            builder.attribute(pool.allocate("", "", "version"), StandardNames.XS_UNTYPED_ATOMIC, version, 0, 0);
            builder.startContent();

            int te = StandardNames.XSL_TEMPLATE;
            builder.startElement(te, StandardNames.XS_UNTYPED, 0, 0);
            builder.attribute(pool.allocate("", "", "match"), StandardNames.XS_UNTYPED_ATOMIC, "/", 0, 0);
View Full Code Here

Examples of net.sf.tacos.markup.ExtendedMarkupWriterImpl.attribute()

                ASYNC, OGNL+ASYNC,
                NEXT_LISTENER, OGNL+NEXT_LISTENER,
                PREVIOUS_LISTENER, OGNL+PREVIOUS_LISTENER
        );
        if (debugCondition!=null) {
            writer.attribute(DEBUG, debugCondition);
        }
        if (additionalUpdateComponents!=null) {
            writer.attribute(ADDITIONAL_UPDATE_COMPONENTS, additionalUpdateComponents);
        }
        Set<String> matchedParameters = new HashSet<String>(Arrays.asList(HIDE_FLOW_CONTROL,
View Full Code Here

Examples of net.sf.tacos.markup.IExtendedMarkupWriter.attribute()

                ASYNC, OGNL+ASYNC,
                NEXT_LISTENER, OGNL+NEXT_LISTENER,
                PREVIOUS_LISTENER, OGNL+PREVIOUS_LISTENER
        );
        if (debugCondition!=null) {
            writer.attribute(DEBUG, debugCondition);
        }
        if (additionalUpdateComponents!=null) {
            writer.attribute(ADDITIONAL_UPDATE_COMPONENTS, additionalUpdateComponents);
        }
        Set<String> matchedParameters = new HashSet<String>(Arrays.asList(HIDE_FLOW_CONTROL,
View Full Code Here

Examples of org.activiti.engine.impl.util.xml.Element.attribute()

    Element miLoopCharacteristics = activityElement.element("multiInstanceLoopCharacteristics");
    if (miLoopCharacteristics != null) {

      MultiInstanceActivityBehavior miActivityBehavior = null;
      boolean isSequential = parseBooleanAttribute(miLoopCharacteristics.attribute("isSequential"), false);
      if (isSequential) {
        miActivityBehavior = new SequentialMultiInstanceBehavior(activity, (AbstractBpmnActivityBehavior) activity.getActivityBehavior());
      } else {
        miActivityBehavior = new ParallelMultiInstanceBehavior(activity, (AbstractBpmnActivityBehavior) activity.getActivityBehavior());
      }
View Full Code Here

Examples of org.apache.camel.builder.FluentArg.attribute()

      // make sure all the given attribute parameters can be assigned via
      // attributes
      boolean miss = false;
      for (String key : attributeNames) {
        FluentArg arg = method.parameterAnnotations.get(key);
        if (arg == null || !arg.attribute()) {
          miss = true;
          break;
        }
      }
      if (miss)
View Full Code Here

Examples of org.apache.cocoon.template.xml.AttributeAwareXMLConsumer.attribute()

        } catch (Exception exc) {
            throw new SAXParseException(exc.getMessage(), getLocation(), exc);
        }
        if (consumer instanceof AttributeAwareXMLConsumer) {
            AttributeAwareXMLConsumer c = (AttributeAwareXMLConsumer) consumer;
            c.attribute("", nameStr, nameStr, "CDATA", valueStr == null ? "" : valueStr);
        } else
            throw new SAXParseException("consumer is not attribute aware", getLocation());
        return getEndInstruction().getNext();
    }
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.