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

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(value=XmlAccessType.FIELD)
@XmlType(name="")
@XmlRootElement(name="printPageRange")
public class PrintPageRange
implements Serializable {
    @XmlAttribute
    protected String type;
    @XmlAttribute
    protected Integer fromPage;
    @XmlAttribute
    protected Integer toPage;
    @XmlAttribute
    protected String multiplePages;

    public String getType() {
        if (this.type == null) {
            return "All";
        }
        return this.type;
    }

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

    public boolean isSetType() {
        return this.type != null;
    }

    public int getFromPage() {
        return this.isSetFromPage() ? this.fromPage : 0;
    }

    public void setFromPage(int value) {
        this.fromPage = value;
    }

    public boolean isSetFromPage() {
        return this.fromPage != null;
    }

    public void unsetFromPage() {
        this.fromPage = null;
    }

    public int getToPage() {
        return this.isSetToPage() ? this.toPage : 0;
    }

    public void setToPage(int value) {
        this.toPage = value;
    }

    public boolean isSetToPage() {
        return this.toPage != null;
    }

    public void unsetToPage() {
        this.toPage = null;
    }

    public String getMultiplePages() {
        return this.multiplePages;
    }

    public void setMultiplePages(String value) {
        this.multiplePages = value;
    }

    public boolean isSetMultiplePages() {
        return this.multiplePages != null;
    }
}