Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.openestate.io.openimmo.xml.Bauweise Maven / Gradle / Ivy
package org.openestate.io.openimmo.xml;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for <bauweise> element.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "bauweise")
public class Bauweise implements Serializable, Cloneable, CopyTo2, Equals2, ToString2
{
@XmlAttribute(name = "MASSIV")
protected Boolean massiv;
@XmlAttribute(name = "FERTIGTEILE")
protected Boolean fertigteile;
@XmlAttribute(name = "HOLZ")
protected Boolean holz;
/**
* Gets the value of the massiv property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isMASSIV() {
return massiv;
}
/**
* Sets the value of the massiv property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setMASSIV(Boolean value) {
this.massiv = value;
}
/**
* Gets the value of the fertigteile property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isFERTIGTEILE() {
return fertigteile;
}
/**
* Sets the value of the fertigteile property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setFERTIGTEILE(Boolean value) {
this.fertigteile = value;
}
/**
* Gets the value of the holz property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isHOLZ() {
return holz;
}
/**
* Sets the value of the holz property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setHOLZ(Boolean value) {
this.holz = value;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
Boolean theMASSIV;
theMASSIV = this.isMASSIV();
strategy.appendField(locator, this, "massiv", buffer, theMASSIV, (this.massiv!= null));
}
{
Boolean theFERTIGTEILE;
theFERTIGTEILE = this.isFERTIGTEILE();
strategy.appendField(locator, this, "fertigteile", buffer, theFERTIGTEILE, (this.fertigteile!= null));
}
{
Boolean theHOLZ;
theHOLZ = this.isHOLZ();
strategy.appendField(locator, this, "holz", buffer, theHOLZ, (this.holz!= null));
}
return buffer;
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Bauweise) {
final Bauweise copy = ((Bauweise) draftCopy);
{
Boolean massivShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.massiv!= null));
if (massivShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceMASSIV;
sourceMASSIV = this.isMASSIV();
Boolean copyMASSIV = ((Boolean) strategy.copy(LocatorUtils.property(locator, "massiv", sourceMASSIV), sourceMASSIV, (this.massiv!= null)));
copy.setMASSIV(copyMASSIV);
} else {
if (massivShouldBeCopiedAndSet == Boolean.FALSE) {
copy.massiv = null;
}
}
}
{
Boolean fertigteileShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.fertigteile!= null));
if (fertigteileShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceFERTIGTEILE;
sourceFERTIGTEILE = this.isFERTIGTEILE();
Boolean copyFERTIGTEILE = ((Boolean) strategy.copy(LocatorUtils.property(locator, "fertigteile", sourceFERTIGTEILE), sourceFERTIGTEILE, (this.fertigteile!= null)));
copy.setFERTIGTEILE(copyFERTIGTEILE);
} else {
if (fertigteileShouldBeCopiedAndSet == Boolean.FALSE) {
copy.fertigteile = null;
}
}
}
{
Boolean holzShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.holz!= null));
if (holzShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceHOLZ;
sourceHOLZ = this.isHOLZ();
Boolean copyHOLZ = ((Boolean) strategy.copy(LocatorUtils.property(locator, "holz", sourceHOLZ), sourceHOLZ, (this.holz!= null)));
copy.setHOLZ(copyHOLZ);
} else {
if (holzShouldBeCopiedAndSet == Boolean.FALSE) {
copy.holz = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Bauweise();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final Bauweise that = ((Bauweise) object);
{
Boolean lhsMASSIV;
lhsMASSIV = this.isMASSIV();
Boolean rhsMASSIV;
rhsMASSIV = that.isMASSIV();
if (!strategy.equals(LocatorUtils.property(thisLocator, "massiv", lhsMASSIV), LocatorUtils.property(thatLocator, "massiv", rhsMASSIV), lhsMASSIV, rhsMASSIV, (this.massiv!= null), (that.massiv!= null))) {
return false;
}
}
{
Boolean lhsFERTIGTEILE;
lhsFERTIGTEILE = this.isFERTIGTEILE();
Boolean rhsFERTIGTEILE;
rhsFERTIGTEILE = that.isFERTIGTEILE();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fertigteile", lhsFERTIGTEILE), LocatorUtils.property(thatLocator, "fertigteile", rhsFERTIGTEILE), lhsFERTIGTEILE, rhsFERTIGTEILE, (this.fertigteile!= null), (that.fertigteile!= null))) {
return false;
}
}
{
Boolean lhsHOLZ;
lhsHOLZ = this.isHOLZ();
Boolean rhsHOLZ;
rhsHOLZ = that.isHOLZ();
if (!strategy.equals(LocatorUtils.property(thisLocator, "holz", lhsHOLZ), LocatorUtils.property(thatLocator, "holz", rhsHOLZ), lhsHOLZ, rhsHOLZ, (this.holz!= null), (that.holz!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}