All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.model.quality.JacocoXmlReport Maven / Gradle / Ivy

The newest version!
package com.capitalone.dashboard.model.quality;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "report")
public class JacocoXmlReport implements QualityVisitee {

    @XmlElement(name="counter")
    private List counters;


    @Override
    public void accept(QualityVisitor visitor) {
        visitor.visit(this);
    }

    public List getCounters() {
        return counters;
    }

    public void setCounters(List counters) {
        this.counters = counters;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Counter {
        @XmlAttribute(name="type")
        private CounterType type;

        @XmlAttribute(name="missed")
        private int missed;

        @XmlAttribute(name="covered")
        private int covered;

        public int getMissed() {
            return missed;
        }

        public void setMissed(int missed) {
            this.missed = missed;
        }

        public int getCovered() {
            return covered;
        }

        public void setCovered(int covered) {
            this.covered = covered;
        }

        public CounterType getType() {
            return type;
        }

        public void setType(CounterType type) {
            this.type = type;
        }
    }

    public enum CounterType {
        INSTRUCTION,BRANCH,LINE,COMPLEXITY,METHOD,CLASS
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy