IRIS CompanyGrpType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: CompanyGrpType
|  +- businessName: BusinessNameType
|  |  +- businessNameLine1Txt: String
|  |  +- businessNameLine2Txt: String
|  +- mailingAddressGrp: AddressGrpType
|  |  +- usAddress: USAddressType
|  |  |  +- addressLine1Txt: String
|  |  |  +- addressLine2Txt: String
|  |  |  +- cityNm: String
|  |  |  +- stateAbbreviationCd: StateType
|  |  |  +- zipCd: String
|  |  +- foreignAddress: ForeignAddressType
|  |  |  +- addressLine1Txt: String
|  |  |  +- addressLine2Txt: String
|  |  |  +- cityNm: String
|  |  |  +- provinceOrStateNm: String
|  |  |  +- countryCd: CountryType
|  |  |  +- foreignPostalCd: String


Flattened

CompanyGrpType.businessName.businessNameLine1Txt
CompanyGrpType.businessName.businessNameLine2Txt
CompanyGrpType.mailingAddressGrp.usAddress.addressLine1Txt
CompanyGrpType.mailingAddressGrp.usAddress.addressLine2Txt
CompanyGrpType.mailingAddressGrp.usAddress.cityNm
CompanyGrpType.mailingAddressGrp.usAddress.stateAbbreviationCd
CompanyGrpType.mailingAddressGrp.usAddress.zipCd
CompanyGrpType.mailingAddressGrp.foreignAddress.addressLine1Txt
CompanyGrpType.mailingAddressGrp.foreignAddress.addressLine2Txt
CompanyGrpType.mailingAddressGrp.foreignAddress.cityNm
CompanyGrpType.mailingAddressGrp.foreignAddress.provinceOrStateNm
CompanyGrpType.mailingAddressGrp.foreignAddress.countryCd
CompanyGrpType.mailingAddressGrp.foreignAddress.foreignPostalCd

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;


/**
 * 
 * <pre>
 * <?xml version="1.0" encoding="UTF-8"?><Component xmlns="urn:us:gov:treasury:irs:ir" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntryNm>Company Group Type</DictionaryEntryNm><MajorVersionNum>1</MajorVersionNum><MinorVersionNum>0</MinorVersionNum><VersionEffectiveBeginDt>2015-08-28</VersionEffectiveBeginDt><VersionDescriptionTxt>Initial version</VersionDescriptionTxt><DescriptionTxt>Global type for the company information</DescriptionTxt></Component>
 * </pre>
 * 
 * 
 * <p>Java class for CompanyGrpType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="CompanyGrpType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="BusinessName" type="{urn:us:gov:treasury:irs:ir}BusinessNameType"/>
 *         <element name="MailingAddressGrp" type="{urn:us:gov:treasury:irs:ir}AddressGrpType"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CompanyGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "businessName",
    "mailingAddressGrp"
})
public class CompanyGrpType implements Equals2, ToString2
{

    @XmlElement(name = "BusinessName", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected BusinessNameType businessName;
    @XmlElement(name = "MailingAddressGrp", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected AddressGrpType mailingAddressGrp;

    /**
     * Gets the value of the businessName property.
     * 
     * @return
     *     possible object is
     *     {@link BusinessNameType }
     *     
     */
    public BusinessNameType getBusinessName() {
        return businessName;
    }

    /**
     * Sets the value of the businessName property.
     * 
     * @param value
     *     allowed object is
     *     {@link BusinessNameType }
     *     
     */
    public void setBusinessName(BusinessNameType value) {
        this.businessName = value;
    }

    /**
     * Gets the value of the mailingAddressGrp property.
     * 
     * @return
     *     possible object is
     *     {@link AddressGrpType }
     *     
     */
    public AddressGrpType getMailingAddressGrp() {
        return mailingAddressGrp;
    }

    /**
     * Sets the value of the mailingAddressGrp property.
     * 
     * @param value
     *     allowed object is
     *     {@link AddressGrpType }
     *     
     */
    public void setMailingAddressGrp(AddressGrpType value) {
        this.mailingAddressGrp = 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) {
        {
            BusinessNameType theBusinessName;
            theBusinessName = this.getBusinessName();
            strategy.appendField(locator, this, "businessName", buffer, theBusinessName, (this.businessName!= null));
        }
        {
            AddressGrpType theMailingAddressGrp;
            theMailingAddressGrp = this.getMailingAddressGrp();
            strategy.appendField(locator, this, "mailingAddressGrp", buffer, theMailingAddressGrp, (this.mailingAddressGrp!= 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 CompanyGrpType that = ((CompanyGrpType) object);
        {
            BusinessNameType lhsBusinessName;
            lhsBusinessName = this.getBusinessName();
            BusinessNameType rhsBusinessName;
            rhsBusinessName = that.getBusinessName();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "businessName", lhsBusinessName), LocatorUtils.property(thatLocator, "businessName", rhsBusinessName), lhsBusinessName, rhsBusinessName, (this.businessName!= null), (that.businessName!= null))) {
                return false;
            }
        }
        {
            AddressGrpType lhsMailingAddressGrp;
            lhsMailingAddressGrp = this.getMailingAddressGrp();
            AddressGrpType rhsMailingAddressGrp;
            rhsMailingAddressGrp = that.getMailingAddressGrp();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "mailingAddressGrp", lhsMailingAddressGrp), LocatorUtils.property(thatLocator, "mailingAddressGrp", rhsMailingAddressGrp), lhsMailingAddressGrp, rhsMailingAddressGrp, (this.mailingAddressGrp!= null), (that.mailingAddressGrp!= null))) {
                return false;
            }
        }
        return true;
    }

    public boolean equals(Object object) {
        final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
        return equals(null, null, object, strategy);
    }

}

© Copyright 2023. All Rights Reserved.