JobOptions.java 3.33 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.native2pdf.xml;

import com.adobe.native2pdf.xml.InitialView;
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.XmlAttribute;
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={"jobOption"})
@XmlRootElement(name="job-options")
public class JobOptions
implements Serializable {
    @XmlElement(name="job-option", required=1)
    protected List<JobOption> jobOption;

    public List<JobOption> getJobOption() {
        if (this.jobOption == null) {
            this.jobOption = new ArrayList<JobOption>();
        }
        return this.jobOption;
    }

    public boolean isSetJobOption() {
        return this.jobOption != null && !this.jobOption.isEmpty();
    }

    public void unsetJobOption() {
        this.jobOption = null;
    }

    @XmlAccessorType(value=XmlAccessType.FIELD)
    @XmlType(name="", propOrder={"optionData", "initialView"})
    public static class JobOption
    implements Serializable {
        @XmlElement(required=1)
        protected String optionData;
        protected InitialView initialView;
        @XmlAttribute(required=1)
        protected String name;
        @XmlAttribute
        protected Boolean readonly;
        @XmlAttribute(name="default")
        protected Boolean _default;

        public String getOptionData() {
            return this.optionData;
        }

        public void setOptionData(String value) {
            this.optionData = value;
        }

        public boolean isSetOptionData() {
            return this.optionData != null;
        }

        public InitialView getInitialView() {
            return this.initialView;
        }

        public void setInitialView(InitialView value) {
            this.initialView = value;
        }

        public boolean isSetInitialView() {
            return this.initialView != null;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String value) {
            this.name = value;
        }

        public boolean isSetName() {
            return this.name != null;
        }

        public boolean isReadonly() {
            if (this.readonly == null) {
                return false;
            }
            return this.readonly;
        }

        public void setReadonly(boolean value) {
            this.readonly = value;
        }

        public boolean isSetReadonly() {
            return this.readonly != null;
        }

        public void unsetReadonly() {
            this.readonly = null;
        }

        public boolean isDefault() {
            if (this._default == null) {
                return false;
            }
            return this._default;
        }

        public void setDefault(boolean value) {
            this._default = value;
        }

        public boolean isSetDefault() {
            return this._default != null;
        }

        public void unsetDefault() {
            this._default = null;
        }
    }

}