All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.meridor.perspective.beans.Image Maven / Gradle / Ivy

The newest version!

package org.meridor.perspective.beans;

import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.meridor.perspective.config.CloudType;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for image complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="image">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="id" type="{urn:beans.perspective.meridor.org}uuid"/>
 *         <element name="realId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="created" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="instanceId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="cloudId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="cloudType" type="{urn:config.perspective.meridor.org}cloudType"/>
 *         <element name="projectIds" type="{urn:beans.perspective.meridor.org}projectIds"/>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="state" type="{urn:beans.perspective.meridor.org}imageState"/>
 *         <element name="checksum" type="{urn:beans.perspective.meridor.org}checksum"/>
 *         <element name="metadata" type="{urn:beans.perspective.meridor.org}metadata"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "image", propOrder = { }) @XmlRootElement(name = "image") public class Image implements Serializable, Equals, HashCode, ToString { @XmlElement(required = true) protected String id; @XmlElement(required = true) protected String realId; @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime timestamp; @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime created; @XmlElement(required = true) protected String instanceId; @XmlElement(required = true) protected String cloudId; @XmlElement(required = true) @XmlSchemaType(name = "string") protected CloudType cloudType; @XmlElement(required = true) protected String name; @XmlElement(required = true) @XmlSchemaType(name = "string") protected ImageState state; @XmlElement(required = true) protected String checksum; @XmlElement(required = true, type = Metadata.class) protected MetadataMap metadata; @XmlElementWrapper(name = "projectIds", required = true) @XmlElement(name = "projectId") protected List projectIds; /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the realId property. * * @return * possible object is * {@link String } * */ public String getRealId() { return realId; } /** * Sets the value of the realId property. * * @param value * allowed object is * {@link String } * */ public void setRealId(String value) { this.realId = value; } /** * Gets the value of the timestamp property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value * allowed object is * {@link String } * */ public void setTimestamp(ZonedDateTime value) { this.timestamp = value; } /** * Gets the value of the created property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getCreated() { return created; } /** * Sets the value of the created property. * * @param value * allowed object is * {@link String } * */ public void setCreated(ZonedDateTime value) { this.created = value; } /** * Gets the value of the instanceId property. * * @return * possible object is * {@link String } * */ public String getInstanceId() { return instanceId; } /** * Sets the value of the instanceId property. * * @param value * allowed object is * {@link String } * */ public void setInstanceId(String value) { this.instanceId = value; } /** * Gets the value of the cloudId property. * * @return * possible object is * {@link String } * */ public String getCloudId() { return cloudId; } /** * Sets the value of the cloudId property. * * @param value * allowed object is * {@link String } * */ public void setCloudId(String value) { this.cloudId = value; } /** * Gets the value of the cloudType property. * * @return * possible object is * {@link CloudType } * */ public CloudType getCloudType() { return cloudType; } /** * Sets the value of the cloudType property. * * @param value * allowed object is * {@link CloudType } * */ public void setCloudType(CloudType value) { this.cloudType = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the state property. * * @return * possible object is * {@link ImageState } * */ public ImageState getState() { return state; } /** * Sets the value of the state property. * * @param value * allowed object is * {@link ImageState } * */ public void setState(ImageState value) { this.state = value; } /** * Gets the value of the checksum property. * * @return * possible object is * {@link String } * */ public String getChecksum() { return checksum; } /** * Sets the value of the checksum property. * * @param value * allowed object is * {@link String } * */ public void setChecksum(String value) { this.checksum = value; } /** * Gets the value of the metadata property. * * @return * possible object is * {@link Metadata } * */ public MetadataMap getMetadata() { return metadata; } /** * Sets the value of the metadata property. * * @param value * allowed object is * {@link Metadata } * */ public void setMetadata(MetadataMap value) { this.metadata = value; } public List getProjectIds() { if (projectIds == null) { projectIds = new ArrayList(); } return projectIds; } public void setProjectIds(List projectIds) { this.projectIds = projectIds; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Image)) { return false; } if (this == object) { return true; } final Image that = ((Image) object); { String lhsId; lhsId = this.getId(); String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { return false; } } { String lhsRealId; lhsRealId = this.getRealId(); String rhsRealId; rhsRealId = that.getRealId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "realId", lhsRealId), LocatorUtils.property(thatLocator, "realId", rhsRealId), lhsRealId, rhsRealId)) { return false; } } { String lhsInstanceId; lhsInstanceId = this.getInstanceId(); String rhsInstanceId; rhsInstanceId = that.getInstanceId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceId", lhsInstanceId), LocatorUtils.property(thatLocator, "instanceId", rhsInstanceId), lhsInstanceId, rhsInstanceId)) { return false; } } { String lhsCloudId; lhsCloudId = this.getCloudId(); String rhsCloudId; rhsCloudId = that.getCloudId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cloudId", lhsCloudId), LocatorUtils.property(thatLocator, "cloudId", rhsCloudId), lhsCloudId, rhsCloudId)) { return false; } } { CloudType lhsCloudType; lhsCloudType = this.getCloudType(); CloudType rhsCloudType; rhsCloudType = that.getCloudType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cloudType", lhsCloudType), LocatorUtils.property(thatLocator, "cloudType", rhsCloudType), lhsCloudType, rhsCloudType)) { return false; } } { List lhsProjectIds; lhsProjectIds = this.getProjectIds(); List rhsProjectIds; rhsProjectIds = that.getProjectIds(); if (!strategy.equals(LocatorUtils.property(thisLocator, "projectIds", lhsProjectIds), LocatorUtils.property(thatLocator, "projectIds", rhsProjectIds), lhsProjectIds, rhsProjectIds)) { return false; } } { ImageState lhsState; lhsState = this.getState(); ImageState rhsState; rhsState = that.getState(); if (!strategy.equals(LocatorUtils.property(thisLocator, "state", lhsState), LocatorUtils.property(thatLocator, "state", rhsState), lhsState, rhsState)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); } { String theRealId; theRealId = this.getRealId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "realId", theRealId), currentHashCode, theRealId); } { String theInstanceId; theInstanceId = this.getInstanceId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceId", theInstanceId), currentHashCode, theInstanceId); } { String theCloudId; theCloudId = this.getCloudId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cloudId", theCloudId), currentHashCode, theCloudId); } { CloudType theCloudType; theCloudType = this.getCloudType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cloudType", theCloudType), currentHashCode, theCloudType); } { List theProjectIds; theProjectIds = this.getProjectIds(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "projectIds", theProjectIds), currentHashCode, theProjectIds); } { ImageState theState; theState = this.getState(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "state", theState), currentHashCode, theState); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId); } { String theRealId; theRealId = this.getRealId(); strategy.appendField(locator, this, "realId", buffer, theRealId); } { ZonedDateTime theTimestamp; theTimestamp = this.getTimestamp(); strategy.appendField(locator, this, "timestamp", buffer, theTimestamp); } { ZonedDateTime theCreated; theCreated = this.getCreated(); strategy.appendField(locator, this, "created", buffer, theCreated); } { String theInstanceId; theInstanceId = this.getInstanceId(); strategy.appendField(locator, this, "instanceId", buffer, theInstanceId); } { String theCloudId; theCloudId = this.getCloudId(); strategy.appendField(locator, this, "cloudId", buffer, theCloudId); } { CloudType theCloudType; theCloudType = this.getCloudType(); strategy.appendField(locator, this, "cloudType", buffer, theCloudType); } { List theProjectIds; theProjectIds = this.getProjectIds(); strategy.appendField(locator, this, "projectIds", buffer, theProjectIds); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { ImageState theState; theState = this.getState(); strategy.appendField(locator, this, "state", buffer, theState); } { String theChecksum; theChecksum = this.getChecksum(); strategy.appendField(locator, this, "checksum", buffer, theChecksum); } { MetadataMap theMetadata; theMetadata = this.getMetadata(); strategy.appendField(locator, this, "metadata", buffer, theMetadata); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy