Examples of addAttribute()


Examples of de.pdark.decentxml.Element.addAttribute()

    if (effectiveUnderlying==null) {
      throw new IllegalArgumentException("effectiveUnderlying must not be null");
    }
    Element element = new Element(nodeName);
    if (nodeType!=null) {
        element.addAttribute("jcr:primaryType", nodeType);
    }
    StringBuffer indent = new StringBuffer();
    Element parElement = domElement.getParentElement();
    while(parElement!=null) {
      indent.append("    ");

Examples of edu.byu.ece.rapidSmith.design.Instance.addAttribute()

              for(String letter : letters){
                if(i.testAttributeValue(letter+"5LUT", "#OFF") &&
                   i.testAttributeValue(letter+"6LUT", "#OFF") &&
                   !i.hasAttribute("_GND_SOURCE") &&
                   !i.hasAttribute("_VCC_SOURCE")){
                  i.addAttribute(new Attribute(new Attribute(srcTypeString,"",letter)));
                  currStaticSourcePin = new Pin(true, letter, i);
                  i.addPin(currStaticSourcePin);
                  return i;
                }
              }

Examples of edu.umd.cs.findbugs.xml.OutputStreamXMLOutput.addAttribute()

        OutputStreamXMLOutput xmlOutput = new OutputStreamXMLOutput(out);
        try {
            xmlOutput.beginDocument();

            xmlOutput.startTag("findbugs-invocation");
            xmlOutput.addAttribute("version", Version.RELEASE);
            String applicationName = Version.getApplicationName();
            if (applicationName == null || applicationName.equals("")) {
                int lastDot = entryPoint.lastIndexOf('.');
                if (lastDot == -1) {
                    applicationName = entryPoint;

Examples of edu.umd.cs.findbugs.xml.XMLAttributeList.addAttribute()

        String classname = getClassName();
        String sourcePath = getSourcePath();

        XMLAttributeList attributeList = new XMLAttributeList().addAttribute("classname", classname);
        if (isPrimary) {
            attributeList.addAttribute("primary", "true");
        }

        int n = getStartLine(); // start/end are now optional (were too many
        // "-1"s in the xml)
        if (n >= 0) {

Examples of eu.stratosphere.test.recordJobs.util.Tuple.addAttribute()

   
    /* pice = extendedprice * (1 - discount): */
    float price = Float.parseFloat(inputTuple.getStringValueAt(5)) * (1 - Float.parseFloat(inputTuple.getStringValueAt(6)));
    /* Project (orderkey | partkey, suppkey, linenumber, quantity, extendedprice, discount, tax, ...) to (partkey, suppkey, quantity): */
    inputTuple.project((0 << 0) | (1 << 1) | (1 << 2) | (0 << 3) | (1 << 4));
    inputTuple.addAttribute("" + price);
    record.setField(1, inputTuple);
    out.collect(record);
  }

}

Examples of fi.luomus.commons.xml.Document.Node.addAttribute()

  }

  public static Document createSimpleDarwinRecordSet() {
    Document doc = new Document("SimpleDarwinRecordSet");
    Node root = doc.getRootNode();
    root.addAttribute("xmlns", "http://rs.tdwg.org/dwc/xsd/simpledarwincore/");
    root.addAttribute("xmlns:dc", "http://purl.org/dc/terms/");
    root.addAttribute("xmlns:dwc", "http://rs.tdwg.org/dwc/terms/");
    root.addAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
    root.addAttribute("xsi:schemaLocation", "http://rs.tdwg.org/dwc/xsd/simpledarwincore/ http://rs.tdwg.org/dwc/xsd/tdwg_dwc_simple.xsd");
    return doc;

Examples of fitnesse.html.HtmlTag.addAttribute()

  protected void addStopLink(String stopResponderId) {
    String link = "?responder=stoptest&id=" + stopResponderId;

    HtmlTag status = HtmlUtil.makeSilentLink(link, new RawHtml("Stop Test"));
    status.addAttribute("class", "stop");

    writeData(HtmlUtil.makeReplaceElementScript("test-action", status.html()).html());
  }

  protected void removeStopTestLink() {

Examples of freenet.support.HTMLNode.addAttribute()

      if(!dontShowFilter) {
        HTMLNode filterControl = optionForm.addChild("div", l10n("filterData"));
        HTMLNode f = filterControl.addChild("input",
                new String[] { "type", "name", "value" },
                new String[] { "checkbox", "filterData", "filterData"});
        if(filterChecked) f.addAttribute("checked", "checked");
        filterControl.addChild("div", l10n("filterDataMessage"));
      }
      if (threatLevel == PHYSICAL_THREAT_LEVEL.HIGH) {
        optionForm.addChild("br");
        NodeL10n.getBase().addL10nSubstitution(optionForm,

Examples of gistoolkit.common.Node.addAttribute()

   
    /** write the index file. */
    private void writeIndex(Envelope tempEnvelope) throws Exception{
        // write the XML file for these nodes.
        Node tempRoot = new Node("TilesColection");
        tempRoot.addAttribute("MinX", ""+tempEnvelope.getMinX());
        tempRoot.addAttribute("MinY", ""+tempEnvelope.getMinY());
        tempRoot.addAttribute("MaxX", ""+tempEnvelope.getMaxX());
        tempRoot.addAttribute("MaxY", ""+tempEnvelope.getMaxY());
        tempRoot.addAttribute("TileWidth", ""+myMaxWidth);
        tempRoot.addAttribute("Extension", ""+myOutputType.toLowerCase());

Examples of gnu.javax.swing.text.html.parser.htmlAttributeSet.addAttribute()

    d = defaulter.getDefaultParameters("input");
    assertEquals(d.getAttribute("type"), "text");

    htmlAttributeSet hma = new htmlAttributeSet();
    hma.setResolveParent(d);
    hma.addAttribute("ku", "1");
    hma.addAttribute(Attribute.ACTION, "sleep");

    assertEquals(hma.getAttribute("action"), "sleep");
    assertEquals(hma.getAttribute(Attribute.ACTION), "sleep");
    assertEquals(hma.getAttribute("ku"), "1");
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.