Package edu.umd.cs.findbugs.xml

Examples of edu.umd.cs.findbugs.xml.XMLAttributeList$NameValuePair


        return BugRanker.findRank(bugInstance) >= rank;
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("value", Integer.toString(rank));
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Rank", attributes);
    }
View Full Code Here


        return result;
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", fileName.getSpec());
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Source", attributes);
    }
View Full Code Here

        writeXML(xmlOutput, false, false);
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean addMessages, boolean isPrimary) throws IOException {
        XMLAttributeList attributeList = new XMLAttributeList().addAttribute("name", name)
                .addAttribute("register", String.valueOf(register)).addAttribute("pc", String.valueOf(pc));

        String role = getDescription();
        if (!role.equals(DEFAULT_ROLE)) {
            attributeList.addAttribute("role", role);
        }

        BugAnnotationUtil.writeXML(xmlOutput, ELEMENT_NAME, this, attributeList, addMessages);
    }
View Full Code Here

        return relOp.check(bugInstance.getFirstVersion(), version);
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("value", Long.toString(version)).addAttribute("relOp",
                relOp.getName());
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("FirstVersion", attributes);
    }
View Full Code Here

        writeXML(xmlOutput, false, false);
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean addMessages, boolean isPrimary) throws IOException {
        XMLAttributeList attributeList = new XMLAttributeList().addAttribute("descriptor", descriptor);

        String role = getDescription();
        if (!role.equals(DEFAULT_ROLE)) {
            attributeList.addAttribute("role", role);
        }
        if (typeParameters != null) {
            attributeList.addAttribute("typeParameters", typeParameters);
        }

        BugAnnotationUtil.writeXML(xmlOutput, ELEMENT_NAME, this, attributeList, addMessages);
    }
View Full Code Here

        return bugInstance.getPriority() == confidence;
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("value", Integer.toString(confidence));
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Confidence", attributes);
    }
View Full Code Here

        return bugInstance.getPriority() == priority;
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("value", Integer.toString(priority));
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Priority", attributes);
    }
View Full Code Here

        return result;
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", className.getSpec());
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Class", attributes);
    }
View Full Code Here

        timestamp = System.currentTimeMillis();
    }

    @Override
    public void writeXML(XMLOutput xmlOutput) throws IOException {
        XMLAttributeList attributeList = new XMLAttributeList();
        // all three of these xml attributes are optional
        if (hasDesignationKey()) {
            attributeList.addAttribute("designation", designation);
        }
        if (user != null && !"".equals(user)) {
            attributeList.addAttribute("user", user);
        }
        if (dirty) {
            attributeList.addAttribute("needsSync", "true");
        }
        if (timestamp > 0) {
            attributeList.addAttribute("timestamp", String.valueOf(timestamp));
        }

        if ((annotationText != null && !"".equals(annotationText))) {
            xmlOutput.openTag("UserAnnotation", attributeList);
            xmlOutput.writeCDATA(annotationText);
View Full Code Here

        return true;
    }

    @Override
    public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
        XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec());
        if (signature != null) {
            attributes.addOptionalAttribute(
                    "signature", signature.getSpec());
        }
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Field", attributes);
    }
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.xml.XMLAttributeList$NameValuePair

Copyright © 2018 www.massapicom. 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.