Skip to content
TapCredentials.java 3.24 KiB
Newer Older
 * _____________________________________________________________________________
 * 
 * INAF - OATS National Institute for Astrophysics - Astronomical Observatory of
 * Trieste INAF - IA2 Italian Center for Astronomical Archives
 * _____________________________________________________________________________
 * 
 * Copyright (C) 2017 Istituto Nazionale di Astrofisica
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License Version 3 as published by the
 * Free Software Foundation.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 51
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */
import javax.xml.bind.annotation.XmlElement;

/**
 *
 * @author Sonia Zorba {@literal <zorba at oats.inaf.it>}
public abstract class TapCredentials implements Serializable {
    private static final long serialVersionUID = -3736612935129057338L;
Sonia Zorba's avatar
Sonia Zorba committed
    private String label;
    private String tapSchemaName;
    private String tapSchemaVersion;
    private boolean hasObscore;
    private String obscoreVersion;
    private String ivoaSchemaName;
    public TapCredentials() {
    }

    // Copy constructor
    public TapCredentials(TapCredentials tapCredentials) {
        this.tapSchemaName = tapCredentials.getTapSchemaName();
        this.tapSchemaVersion = tapCredentials.getTapSchemaVersion();
        this.hasObscore = tapCredentials.isHasObscore();
        this.obscoreVersion = tapCredentials.getObscoreVersion();
        this.ivoaSchemaName = tapCredentials.getIvoaSchemaName();
Sonia Zorba's avatar
Sonia Zorba committed
    @XmlElement(name = "label")
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @XmlElement(name = "tap_schema_name")
    public String getTapSchemaName() {
        return tapSchemaName;
    public void setTapSchemaName(String tapSchemaName) {
        this.tapSchemaName = tapSchemaName;
    @XmlElement(name = "tap_schema_version")
    public String getTapSchemaVersion() {
        return tapSchemaVersion;
    }

    public void setTapSchemaVersion(String tapSchemaVersion) {
        this.tapSchemaVersion = tapSchemaVersion;
    }

    @XmlElement(name = "obscore")
    public boolean isHasObscore() {
        return hasObscore;
    }

    public void setHasObscore(boolean hasObscore) {
        this.hasObscore = hasObscore;

    @XmlElement(name = "obscore_version")
    public String getObscoreVersion() {
        return obscoreVersion;
    }

    public void setObscoreVersion(String obscoreVersion) {
        this.obscoreVersion = obscoreVersion;
    }

    @XmlElement(name = "ivoa_schema_name")
    public String getIvoaSchemaName() {
        return ivoaSchemaName;
    }

    public void setIvoaSchemaName(String ivoaSchemaName) {
        this.ivoaSchemaName = ivoaSchemaName;
    }