com.glookast.commons.templates.GenericStorageSystem Maven / Gradle / Ivy
package com.glookast.commons.templates;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.Objects;
import java.util.UUID;
/**
* Java class for GenericStorageSystem complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="GenericStorageSystem">
* <complexContent>
* <extension base="{http://templates.commons.glookast.com}StorageSystem">
* <sequence>
* <element name="location" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GenericStorageSystem", namespace = "http://templates.commons.glookast.com", propOrder = {
"location"
})
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = GenericStorageSystem.class)
public class GenericStorageSystem
extends StorageSystem
implements Serializable
{
@XmlElement(required = true)
protected String location;
/**
* Default no-arg constructor
*/
public GenericStorageSystem()
{
super();
}
/**
* Fully-initialising value constructor
*/
public GenericStorageSystem(final UUID id, final String name, final String description, final String location)
{
super(id, name, description);
this.location = location;
}
public GenericStorageSystem(GenericStorageSystem ss)
{
super(ss);
this.location = ss.location;
}
/**
* Gets the value of the location property.
*
* @return possible object is
* {@link String }
*/
public String getLocation()
{
return location;
}
/**
* Sets the value of the location property.
*
* @param value allowed object is
* {@link String }
*/
public void setLocation(String value)
{
this.location = value;
}
@Override
public boolean equals(Object o)
{
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
GenericStorageSystem that = (GenericStorageSystem) o;
return Objects.equals(getLocation(), that.getLocation());
}
@Override
public int hashCode()
{
return Objects.hash(super.hashCode(), getLocation());
}
@Override
public String toString()
{
return "GenericStorageSystem{" + "id=" + id + ", name=" + name + ", description=" + description + ", location=" + location + '}';
}
}