Examples of addAttribute()


Examples of nu.validator.xml.AttributesImpl.addAttribute()

        String wrapper = (bad? "b" : "span");
        String highlight = (bad? " highlight" : "");
        if (typeCount > 1 || "value".equals(attributeName)) {
            addText(xhtmlSaxEmitter, " ");
            AttributesImpl attributesImpl = new AttributesImpl();
            attributesImpl.addAttribute("class", "inputattrtypes" + highlight);
            xhtmlSaxEmitter.startElement(wrapper, attributesImpl);
            addText(xhtmlSaxEmitter, "when ");
            xhtmlSaxEmitter.startElement("code");
            addText(xhtmlSaxEmitter, "type");
            xhtmlSaxEmitter.endElement("code", "code");

Examples of nu.xom.Element.addAttribute()

    public MusicXmlRenderer()
    {  root = new Element("score-partwise");
   
      Element elID = new Element("identification");
      Element elCreator = new Element("creator");
      elCreator.addAttribute(new Attribute("type", "software"));
      elCreator.appendChild("JFugue MusicXMLRenderer");
      elID.appendChild(elCreator);
      root.appendChild(elID);
   
      //  add an empty score-part list here (before any parts are added)

Examples of oracle.toplink.essentials.queryframework.ReportQuery.addAttribute()

     * Apply this node to the passed query
     */
    public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {
        if (theQuery.isReportQuery()) {
            ReportQuery reportQuery = (ReportQuery)theQuery;
            reportQuery.addAttribute(resolveAttribute(),
                                     generateExpression(context));
        }
    }

    /**
 

Examples of org.activiti.bpmn.model.ExtensionElement.addAttribute()

        extensionAttribute.setNamespace(xtr.getAttributeNamespace(i));
      }
      if (StringUtils.isNotEmpty(xtr.getAttributePrefix(i))) {
        extensionAttribute.setNamespacePrefix(xtr.getAttributePrefix(i));
      }
      extensionElement.addAttribute(extensionAttribute);
    }
   
    boolean readyWithExtensionElement = false;
    while (readyWithExtensionElement == false && xtr.hasNext()) {
      xtr.next();

Examples of org.activiti.engine.impl.interceptor.CommandContext.addAttribute()

       
        eventFlusher = createEventFlusher();
        if (eventFlusher == null) {
          eventFlusher = new DatabaseEventFlusher(); // Default
        }
        currentCommandContext.addAttribute(EVENT_FLUSHER_KEY, eventFlusher);
       
        currentCommandContext.addCloseListener(eventFlusher);
        currentCommandContext
            .addCloseListener(new CommandContextCloseListener() {

Examples of org.apache.ace.client.repository.RepositoryObject.addAttribute()

        for (Entry<String, String> attribute : valueObject.attributes.entrySet()) {
            String key = attribute.getKey();
            String value = attribute.getValue();
            // only add/update the attribute if it actually changed
            if (!value.equals(repositoryObject.getAttribute(key))) {
                repositoryObject.addAttribute(key, value);
            }
        }
        Enumeration<String> keys = repositoryObject.getAttributeKeys();
        while (keys.hasMoreElements()) {
            String key = keys.nextElement();

Examples of org.apache.ace.client.repository.object.ArtifactObject.addAttribute()

        catch (IllegalArgumentException iae) {
            //expected
        }

        try {
            b2.addAttribute("thenewattribute", "withsomevalue");
        }
        catch (UnsupportedOperationException uoe) {
            assert false : "Adding arbitrary attributes to a artifact object should be allowed.";
        }

Examples of org.apache.axiom.om.OMElement.addAttribute()

    private OMElement serializeAction(RewriteAction a) {
        OMElement action = fac.createOMElement("action", synNS);
        if (a.getValue() != null) {
            action.addAttribute("value", a.getValue(), null);
        } else if (a.getXpath() != null) {
            action.addAttribute("xpath", a.getXpath().toString(), null);
        }

        if (a.getRegex() != null) {
            action.addAttribute("regex", a.getRegex(), null);
        }

Examples of org.apache.axiom.soap.SOAPEnvelope.addAttribute()

        }

        SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
        SOAPEnvelope soapEnvelope = factory.createSOAPEnvelope();
        soapEnvelope.setNamespace(new OMNamespaceImpl(SOAP_ENV_NS, "soapenv"));
        soapEnvelope.addAttribute("xmlns:xsd",
                                  "http://www.w3.org/2001/XMLSchema", null);
        soapEnvelope.addAttribute("xmlns:xsi",
                                  "http://www.w3.org/2001/XMLSchema-instance",
                                  null);
        SOAPBody soapBody = factory.createSOAPBody(soapEnvelope);

Examples of org.apache.axiom.soap.SOAPFaultText.addAttribute()

      faultText = factory.createSOAPFaultText();
      // Add the SOAP text
      faultReason.addSOAPText(faultText);
    }
 
    faultText.addAttribute("lang", "en", namespace);

    faultText.setText(data.getReason());
   
    //SequenceFault header is added only for SOAP 1.1
    if (isSequenceFault(data))
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.