MenuBar.java 1.11 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.appmon.xml;

import com.adobe.appmon.xml.Selection;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
@XmlAccessorType(value=XmlAccessType.FIELD)
@XmlType(name="", propOrder={"selection"})
@XmlRootElement(name="menuBar")
public class MenuBar
implements Serializable {
    @XmlElement(required=1)
    protected List<Selection> selection;

    public List<Selection> getSelection() {
        if (this.selection == null) {
            this.selection = new ArrayList<Selection>();
        }
        return this.selection;
    }

    public boolean isSetSelection() {
        return this.selection != null && !this.selection.isEmpty();
    }

    public void unsetSelection() {
        this.selection = null;
    }
}