Package edu.umd.cs.findbugs.xml

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


    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);
        }
View Full Code Here


        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

    @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

    @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

    @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

    @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) {
View Full Code Here

        // 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) {
View Full Code Here

        }
        if (user != null && !"".equals(user)) {
            attributeList.addAttribute("user", user);
        }
        if (dirty) {
            attributeList.addAttribute("needsSync", "true");
        }
        if (timestamp > 0) {
            attributeList.addAttribute("timestamp", String.valueOf(timestamp));
        }
View Full Code Here

        }
        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

        if (signature != null) {
            attributes.addOptionalAttribute(
                    "signature", signature.getSpec());
        }
        if (disabled) {
            attributes.addAttribute("disabled", "true");
        }
        xmlOutput.openCloseTag("Field", attributes);
    }
}
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.