org.meridor.perspective.config.Cloud Maven / Gradle / Ivy
The newest version!
package org.meridor.perspective.config;
import java.io.Serializable;
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 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;
/**
* Java class for cloud complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="cloud">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="endpoint" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="identity" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="credential" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cloud", propOrder = {
})
public class Cloud implements Serializable, Equals, HashCode, ToString
{
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected String endpoint;
@XmlElement(required = true)
protected String identity;
@XmlElement(required = true)
protected String credential;
@XmlElement(defaultValue = "true")
protected Boolean enabled;
/**
* 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 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 endpoint property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEndpoint() {
return endpoint;
}
/**
* Sets the value of the endpoint property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEndpoint(String value) {
this.endpoint = value;
}
/**
* Gets the value of the identity property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdentity() {
return identity;
}
/**
* Sets the value of the identity property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdentity(String value) {
this.identity = value;
}
/**
* Gets the value of the credential property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCredential() {
return credential;
}
/**
* Sets the value of the credential property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCredential(String value) {
this.credential = value;
}
/**
* Gets the value of the enabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isEnabled() {
return enabled;
}
/**
* Sets the value of the enabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setEnabled(Boolean value) {
this.enabled = value;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof Cloud)) {
return false;
}
if (this == object) {
return true;
}
final Cloud that = ((Cloud) 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 lhsName;
lhsName = this.getName();
String rhsName;
rhsName = that.getName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) {
return false;
}
}
{
String lhsEndpoint;
lhsEndpoint = this.getEndpoint();
String rhsEndpoint;
rhsEndpoint = that.getEndpoint();
if (!strategy.equals(LocatorUtils.property(thisLocator, "endpoint", lhsEndpoint), LocatorUtils.property(thatLocator, "endpoint", rhsEndpoint), lhsEndpoint, rhsEndpoint)) {
return false;
}
}
{
String lhsIdentity;
lhsIdentity = this.getIdentity();
String rhsIdentity;
rhsIdentity = that.getIdentity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "identity", lhsIdentity), LocatorUtils.property(thatLocator, "identity", rhsIdentity), lhsIdentity, rhsIdentity)) {
return false;
}
}
{
String lhsCredential;
lhsCredential = this.getCredential();
String rhsCredential;
rhsCredential = that.getCredential();
if (!strategy.equals(LocatorUtils.property(thisLocator, "credential", lhsCredential), LocatorUtils.property(thatLocator, "credential", rhsCredential), lhsCredential, rhsCredential)) {
return false;
}
}
{
Boolean lhsEnabled;
lhsEnabled = this.isEnabled();
Boolean rhsEnabled;
rhsEnabled = that.isEnabled();
if (!strategy.equals(LocatorUtils.property(thisLocator, "enabled", lhsEnabled), LocatorUtils.property(thatLocator, "enabled", rhsEnabled), lhsEnabled, rhsEnabled)) {
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 theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName);
}
{
String theEndpoint;
theEndpoint = this.getEndpoint();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endpoint", theEndpoint), currentHashCode, theEndpoint);
}
{
String theIdentity;
theIdentity = this.getIdentity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identity", theIdentity), currentHashCode, theIdentity);
}
{
String theCredential;
theCredential = this.getCredential();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "credential", theCredential), currentHashCode, theCredential);
}
{
Boolean theEnabled;
theEnabled = this.isEnabled();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enabled", theEnabled), currentHashCode, theEnabled);
}
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 theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName);
}
{
String theEndpoint;
theEndpoint = this.getEndpoint();
strategy.appendField(locator, this, "endpoint", buffer, theEndpoint);
}
{
String theIdentity;
theIdentity = this.getIdentity();
strategy.appendField(locator, this, "identity", buffer, theIdentity);
}
{
Boolean theEnabled;
theEnabled = this.isEnabled();
strategy.appendField(locator, this, "enabled", buffer, theEnabled);
}
return buffer;
}
}