Tree
+- root: BusinessNameType
| +- businessNameLine1Txt: String
| +- businessNameLine2Txt: String
Flattened
BusinessNameType.businessNameLine1Txt
BusinessNameType.businessNameLine2Txt
Java Code
package modelsiris;
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.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
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;
/**
* <p>Java class for BusinessNameType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="BusinessNameType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="BusinessNameLine1Txt" type="{urn:us:gov:treasury:irs:ir}BusinessNameLine1Type"/>
* <element name="BusinessNameLine2Txt" type="{urn:us:gov:treasury:irs:ir}BusinessNameLine2Type" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BusinessNameType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"businessNameLine1Txt",
"businessNameLine2Txt"
})
public class BusinessNameType implements Equals2, ToString2
{
@XmlElement(name = "BusinessNameLine1Txt", namespace = "urn:us:gov:treasury:irs:ir", required = true)
protected String businessNameLine1Txt;
@XmlElement(name = "BusinessNameLine2Txt", namespace = "urn:us:gov:treasury:irs:ir")
protected String businessNameLine2Txt;
/**
* Gets the value of the businessNameLine1Txt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBusinessNameLine1Txt() {
return businessNameLine1Txt;
}
/**
* Sets the value of the businessNameLine1Txt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBusinessNameLine1Txt(String value) {
this.businessNameLine1Txt = value;
}
/**
* Gets the value of the businessNameLine2Txt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBusinessNameLine2Txt() {
return businessNameLine2Txt;
}
/**
* Sets the value of the businessNameLine2Txt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBusinessNameLine2Txt(String value) {
this.businessNameLine2Txt = 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) {
{
String theBusinessNameLine1Txt;
theBusinessNameLine1Txt = this.getBusinessNameLine1Txt();
strategy.appendField(locator, this, "businessNameLine1Txt", buffer, theBusinessNameLine1Txt, (this.businessNameLine1Txt!= null));
}
{
String theBusinessNameLine2Txt;
theBusinessNameLine2Txt = this.getBusinessNameLine2Txt();
strategy.appendField(locator, this, "businessNameLine2Txt", buffer, theBusinessNameLine2Txt, (this.businessNameLine2Txt!= null));
}
return buffer;
}
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 BusinessNameType that = ((BusinessNameType) object);
{
String lhsBusinessNameLine1Txt;
lhsBusinessNameLine1Txt = this.getBusinessNameLine1Txt();
String rhsBusinessNameLine1Txt;
rhsBusinessNameLine1Txt = that.getBusinessNameLine1Txt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessNameLine1Txt", lhsBusinessNameLine1Txt), LocatorUtils.property(thatLocator, "businessNameLine1Txt", rhsBusinessNameLine1Txt), lhsBusinessNameLine1Txt, rhsBusinessNameLine1Txt, (this.businessNameLine1Txt!= null), (that.businessNameLine1Txt!= null))) {
return false;
}
}
{
String lhsBusinessNameLine2Txt;
lhsBusinessNameLine2Txt = this.getBusinessNameLine2Txt();
String rhsBusinessNameLine2Txt;
rhsBusinessNameLine2Txt = that.getBusinessNameLine2Txt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessNameLine2Txt", lhsBusinessNameLine2Txt), LocatorUtils.property(thatLocator, "businessNameLine2Txt", rhsBusinessNameLine2Txt), lhsBusinessNameLine2Txt, rhsBusinessNameLine2Txt, (this.businessNameLine2Txt!= null), (that.businessNameLine2Txt!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}