com.glookast.commons.templates.XmlExportMetadataSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-templates Show documentation
Show all versions of commons-templates Show documentation
Common classes used for interfacing with Glookast Products
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 XmlExportMetadataSystem complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="XmlExportMetadataSystem">
* <complexContent>
* <extension base="{http://templates.commons.glookast.com}MetadataSystem">
* <sequence>
* <element name="location" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "XmlExportMetadataSystem", namespace = "http://templates.commons.glookast.com", propOrder = {
"location"
})
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = XmlExportMetadataSystem.class)
public class XmlExportMetadataSystem
extends MetadataSystem
implements Serializable
{
@XmlElement(required = true)
protected String location;
/**
* Default no-arg constructor
*/
public XmlExportMetadataSystem()
{
super();
}
/**
* Fully-initialising value constructor
*/
public XmlExportMetadataSystem(final UUID id, final String name, final String description, final String location)
{
super(id, name, description);
this.location = location;
}
public XmlExportMetadataSystem(XmlExportMetadataSystem ms)
{
super(ms);
this.location = ms.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;
}
XmlExportMetadataSystem that = (XmlExportMetadataSystem) o;
return Objects.equals(getLocation(), that.getLocation());
}
@Override
public int hashCode()
{
return Objects.hash(super.hashCode(), getLocation());
}
@Override
public String toString()
{
return "XmlExportMetadataSystem{" + "id=" + id + ", name=" + name + ", description=" + description + ", location=" + location + '}';
}
}