rapture.common.model.DocumentMetadata Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common.model;
import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.Map;
import java.util.Date;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class DocumentMetadata implements RaptureTransferObject, Debugable {
/*
* Start of field 'version' (Integer)
*/
private Integer version;
@JsonProperty("version")
public Integer getVersion() {
return version;
}
@JsonProperty("version")
public void setVersion(Integer version) {
this.version = version ;
}
/*
* end of field 'version' (Integer)
*/
/*
* Start of field 'writeTime' (Date)
*/
private Date writeTime;
@JsonProperty("writeTime")
public Date getWriteTime() {
return writeTime;
}
@JsonProperty("writeTime")
public void setWriteTime(Date writeTime) {
this.writeTime = writeTime ;
}
/*
* end of field 'writeTime' (Date)
*/
/*
* Start of field 'createdTimestamp' (Long)
*/
private Long createdTimestamp;
@JsonProperty("createdTimestamp")
public Long getCreatedTimestamp() {
return createdTimestamp;
}
@JsonProperty("createdTimestamp")
public void setCreatedTimestamp(Long createdTimestamp) {
this.createdTimestamp = createdTimestamp ;
}
/*
* end of field 'createdTimestamp' (Long)
*/
/*
* Start of field 'modifiedTimestamp' (Long)
*/
private Long modifiedTimestamp;
@JsonProperty("modifiedTimestamp")
public Long getModifiedTimestamp() {
return modifiedTimestamp;
}
@JsonProperty("modifiedTimestamp")
public void setModifiedTimestamp(Long modifiedTimestamp) {
this.modifiedTimestamp = modifiedTimestamp ;
}
/*
* end of field 'modifiedTimestamp' (Long)
*/
/*
* Start of field 'user' (String)
*/
private String user;
@JsonProperty("user")
public String getUser() {
return user;
}
@JsonProperty("user")
public void setUser(String user) {
this.user = user ;
}
/*
* end of field 'user' (String)
*/
/*
* Start of field 'comment' (String)
*/
private String comment;
@JsonProperty("comment")
public String getComment() {
return comment;
}
@JsonProperty("comment")
public void setComment(String comment) {
this.comment = comment ;
}
/*
* end of field 'comment' (String)
*/
/*
* Start of field 'deleted' (Boolean)
*/
private Boolean deleted;
@JsonProperty("deleted")
public Boolean getDeleted() {
return deleted;
}
@JsonProperty("deleted")
public void setDeleted(Boolean deleted) {
this.deleted = deleted ;
}
/*
* end of field 'deleted' (Boolean)
*/
/*
* Start of field 'tags' (Map)
*/
private Map tags = new HashMap();
@JsonProperty("tags")
public Map getTags() {
return tags;
}
@JsonProperty("tags")
public void setTags(Map tags) {
this.tags = tags ;
}
/*
* end of field 'tags' (Map)
*/
/*
* Start of field 'semanticUri' (String)
*/
private String semanticUri = "";
@JsonProperty("semanticUri")
public String getSemanticUri() {
return semanticUri;
}
@JsonProperty("semanticUri")
public void setSemanticUri(String semanticUri) {
this.semanticUri = semanticUri ;
}
/*
* end of field 'semanticUri' (String)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((writeTime == null) ? 0 : writeTime.hashCode());
result = prime * result + ((deleted == null) ? 0 : deleted.hashCode());
result = prime * result + ((semanticUri == null) ? 0 : semanticUri.hashCode());
result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
result = prime * result + ((modifiedTimestamp == null) ? 0 : modifiedTimestamp.hashCode());
result = prime * result + ((comment == null) ? 0 : comment.hashCode());
result = prime * result + ((version == null) ? 0 : version.hashCode());
result = prime * result + ((user == null) ? 0 : user.hashCode());
result = prime * result + ((tags == null) ? 0 : tags.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
DocumentMetadata other = (DocumentMetadata) obj;
if (writeTime == null) {
if (other.writeTime != null) {
return false;
}
} else if (!writeTime.equals(other.writeTime)) {
return false;
}
if (deleted == null) {
if (other.deleted != null) {
return false;
}
} else if (!deleted.equals(other.deleted)) {
return false;
}
if (semanticUri == null) {
if (other.semanticUri != null) {
return false;
}
} else if (!semanticUri.equals(other.semanticUri)) {
return false;
}
if (createdTimestamp == null) {
if (other.createdTimestamp != null) {
return false;
}
} else if (!createdTimestamp.equals(other.createdTimestamp)) {
return false;
}
if (modifiedTimestamp == null) {
if (other.modifiedTimestamp != null) {
return false;
}
} else if (!modifiedTimestamp.equals(other.modifiedTimestamp)) {
return false;
}
if (comment == null) {
if (other.comment != null) {
return false;
}
} else if (!comment.equals(other.comment)) {
return false;
}
if (version == null) {
if (other.version != null) {
return false;
}
} else if (!version.equals(other.version)) {
return false;
}
if (user == null) {
if (other.user != null) {
return false;
}
} else if (!user.equals(other.user)) {
return false;
}
if (tags == null) {
if (other.tags != null) {
return false;
}
} else if (!tags.equals(other.tags)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" writeTime= ");
Object o = writeTime;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" deleted= ");
Object o = deleted;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" semanticUri= ");
Object o = semanticUri;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" createdTimestamp= ");
Object o = createdTimestamp;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" modifiedTimestamp= ");
Object o = modifiedTimestamp;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" comment= ");
Object o = comment;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" version= ");
Object o = version;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" user= ");
Object o = user;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" tags= ");
Object o = tags;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
return sb.append("\n").toString();
}
@Override
public String toString() {
return JacksonUtil.jsonFromObject(this);
}
private ApiVersion _raptureVersion;
@JsonProperty("_raptureVersion")
public ApiVersion get_raptureVersion() {
return _raptureVersion;
}
@JsonProperty("_raptureVersion")
public void set_raptureVersion(ApiVersion _raptureVersion) {
this._raptureVersion = _raptureVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy