/* Copyright 2012 Tim Garrett, Mothsoft LLC * * 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.mothsoft.alexis.rest.document.v1; import java.util.Date; import javax.xml.bind.annotation.XmlRootElement; import org.codehaus.jackson.annotate.JsonTypeInfo; import org.codehaus.jackson.annotate.JsonTypeInfo.Id; import org.codehaus.jackson.annotate.JsonTypeName; @JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = Id.NAME) @JsonTypeName("Document") @XmlRootElement(name = "Document") public class Document { private Long id; private String title; private String description; private String type; private String state; private String url; private Integer termCount; private Date creationDate; private Date retrievalDate; public Document() { super(); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public Integer getTermCount() { return termCount; } public void setTermCount(Integer termCount) { this.termCount = termCount; } public Date getCreationDate() { return creationDate; } public void setCreationDate(Date creationDate) { this.creationDate = creationDate; } public Date getRetrievalDate() { return retrievalDate; } public void setRetrievalDate(Date retrievalDate) { this.retrievalDate = retrievalDate; } }