rapture.common.AppConfig 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;
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 com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class AppConfig implements RaptureTransferObject, Debugable ,Storable {
/*
* Start of field 'name' (String)
*/
private String name;
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name ;
}
/*
* end of field 'name' (String)
*/
/*
* Start of field 'title' (String)
*/
private String title;
@JsonProperty("title")
public String getTitle() {
return title;
}
@JsonProperty("title")
public void setTitle(String title) {
this.title = title ;
}
/*
* end of field 'title' (String)
*/
/*
* Start of field 'vendor' (String)
*/
private String vendor;
@JsonProperty("vendor")
public String getVendor() {
return vendor;
}
@JsonProperty("vendor")
public void setVendor(String vendor) {
this.vendor = vendor ;
}
/*
* end of field 'vendor' (String)
*/
/*
* Start of field 'homePage' (String)
*/
private String homePage;
@JsonProperty("homePage")
public String getHomePage() {
return homePage;
}
@JsonProperty("homePage")
public void setHomePage(String homePage) {
this.homePage = homePage ;
}
/*
* end of field 'homePage' (String)
*/
/*
* Start of field 'longDescription' (String)
*/
private String longDescription;
@JsonProperty("longDescription")
public String getLongDescription() {
return longDescription;
}
@JsonProperty("longDescription")
public void setLongDescription(String longDescription) {
this.longDescription = longDescription ;
}
/*
* end of field 'longDescription' (String)
*/
/*
* Start of field 'shortDescription' (String)
*/
private String shortDescription;
@JsonProperty("shortDescription")
public String getShortDescription() {
return shortDescription;
}
@JsonProperty("shortDescription")
public void setShortDescription(String shortDescription) {
this.shortDescription = shortDescription ;
}
/*
* end of field 'shortDescription' (String)
*/
/*
* Start of field 'iconLocation' (String)
*/
private String iconLocation;
@JsonProperty("iconLocation")
public String getIconLocation() {
return iconLocation;
}
@JsonProperty("iconLocation")
public void setIconLocation(String iconLocation) {
this.iconLocation = iconLocation ;
}
/*
* end of field 'iconLocation' (String)
*/
/*
* Start of field 'splashLocation' (String)
*/
private String splashLocation;
@JsonProperty("splashLocation")
public String getSplashLocation() {
return splashLocation;
}
@JsonProperty("splashLocation")
public void setSplashLocation(String splashLocation) {
this.splashLocation = splashLocation ;
}
/*
* end of field 'splashLocation' (String)
*/
/*
* Start of field 'jarFile' (String)
*/
private String jarFile;
@JsonProperty("jarFile")
public String getJarFile() {
return jarFile;
}
@JsonProperty("jarFile")
public void setJarFile(String jarFile) {
this.jarFile = jarFile ;
}
/*
* end of field 'jarFile' (String)
*/
/*
* Start of field 'mainClass' (String)
*/
private String mainClass;
@JsonProperty("mainClass")
public String getMainClass() {
return mainClass;
}
@JsonProperty("mainClass")
public void setMainClass(String mainClass) {
this.mainClass = mainClass ;
}
/*
* end of field 'mainClass' (String)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((longDescription == null) ? 0 : longDescription.hashCode());
result = prime * result + ((mainClass == null) ? 0 : mainClass.hashCode());
result = prime * result + ((jarFile == null) ? 0 : jarFile.hashCode());
result = prime * result + ((vendor == null) ? 0 : vendor.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((iconLocation == null) ? 0 : iconLocation.hashCode());
result = prime * result + ((shortDescription == null) ? 0 : shortDescription.hashCode());
result = prime * result + ((title == null) ? 0 : title.hashCode());
result = prime * result + ((homePage == null) ? 0 : homePage.hashCode());
result = prime * result + ((splashLocation == null) ? 0 : splashLocation.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;
AppConfig other = (AppConfig) obj;
if (longDescription == null) {
if (other.longDescription != null) {
return false;
}
} else if (!longDescription.equals(other.longDescription)) {
return false;
}
if (mainClass == null) {
if (other.mainClass != null) {
return false;
}
} else if (!mainClass.equals(other.mainClass)) {
return false;
}
if (jarFile == null) {
if (other.jarFile != null) {
return false;
}
} else if (!jarFile.equals(other.jarFile)) {
return false;
}
if (vendor == null) {
if (other.vendor != null) {
return false;
}
} else if (!vendor.equals(other.vendor)) {
return false;
}
if (name == null) {
if (other.name != null) {
return false;
}
} else if (!name.equals(other.name)) {
return false;
}
if (iconLocation == null) {
if (other.iconLocation != null) {
return false;
}
} else if (!iconLocation.equals(other.iconLocation)) {
return false;
}
if (shortDescription == null) {
if (other.shortDescription != null) {
return false;
}
} else if (!shortDescription.equals(other.shortDescription)) {
return false;
}
if (title == null) {
if (other.title != null) {
return false;
}
} else if (!title.equals(other.title)) {
return false;
}
if (homePage == null) {
if (other.homePage != null) {
return false;
}
} else if (!homePage.equals(other.homePage)) {
return false;
}
if (splashLocation == null) {
if (other.splashLocation != null) {
return false;
}
} else if (!splashLocation.equals(other.splashLocation)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" longDescription= ");
Object o = longDescription;
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(" mainClass= ");
Object o = mainClass;
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(" jarFile= ");
Object o = jarFile;
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(" vendor= ");
Object o = vendor;
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(" name= ");
Object o = name;
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(" iconLocation= ");
Object o = iconLocation;
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(" shortDescription= ");
Object o = shortDescription;
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(" title= ");
Object o = title;
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(" homePage= ");
Object o = homePage;
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(" splashLocation= ");
Object o = splashLocation;
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 getStoragePath() {
// Add key fields
return new AppConfigPathBuilder()
.name(getName())
.buildStoragePath();
}
@Override
public RaptureURI getStorageLocation() {
return new AppConfigPathBuilder()
.name(getName())
.buildStorageLocation();
}
@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