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

test.java.com.cloudant.tests.Foo Maven / Gradle / Ivy

There is a newer version: 2.20.1
Show newest version
/*
 * Copyright (c) 2015 IBM Corp. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the
 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package com.cloudant.tests;

import com.google.gson.JsonArray;

import com.cloudant.client.org.lightcouch.Attachment;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Foo {

    @SuppressWarnings("unused")
    private final String Type = "Foo";

    private String _id;
    private String _rev;

    private String title;
    private String content;
    private JsonArray contentArray;
    private int position;
    private List tags;
    private int[] complexDate;
    private Set bars;
    private Date date;
    private Map _attachments;
    private List _revs_info;

    public Foo() {
        super();
    }

    public Foo(String _id) {
        this._id = _id;
    }

    public Foo(String _id, String title) {
        this._id = _id;
        this.title = title;
    }

    public String get_id() {
        return _id;
    }

    public String get_rev() {
        return _rev;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public JsonArray getContentArray() {
        return contentArray;
    }

    public int getPosition() {
        return position;
    }

    public List getTags() {
        return tags;
    }

    public int[] getComplexDate() {
        return complexDate;
    }

    public Set getBars() {
        return bars;
    }

    public Date getDate() {
        return date;
    }

    public Map get_attachments() {
        return _attachments;
    }

    public List get_revs_info() {
        return _revs_info;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public void set_rev(String _rev) {
        this._rev = _rev;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setContentArray(JsonArray content) {
        this.contentArray = content;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public void setTags(List tags) {
        this.tags = tags;
    }

    public void setComplexDate(int[] complexDate) {
        this.complexDate = complexDate;
    }

    public void setBars(Set bars) {
        this.bars = bars;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void set_attachments(Map _attachments) {
        this._attachments = _attachments;
    }

    public void set_revs_info(List _revs_info) {
        this._revs_info = _revs_info;
    }

    @Override
    public String toString() {
        return "Foo [_id=" + _id + ", _rev=" + _rev + ", title=" + title + ", position="
                + position + ", tags=" + tags + ", complexDate="
                + Arrays.toString(complexDate) + ", bars=" + bars + ", _revs_info="
                + _revs_info + "]";
    }

    public static class RevInfo {
        private String rev;
        private String status;

        public String getRev() {
            return rev;
        }

        public void setRev(String rev) {
            this.rev = rev;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        @Override
        public String toString() {
            return "RevInfo [rev=" + rev + ", status=" + status + "]";
        }
    } // end RevInfo

} // end Foo




© 2015 - 2024 Weber Informatics LLC | Privacy Policy