Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.03.28 at 10:20:34 AM CET 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
 import java.util.List;
Information about the distributor

Java class for MD_Distributor_Type complex type.

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

 <complexType name="MD_Distributor_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="distributorContact" type="{http://www.isotc211.org/2005/gmd}CI_ResponsibleParty_PropertyType"/>
         <element name="distributionOrderProcess" type="{http://www.isotc211.org/2005/gmd}MD_StandardOrderProcess_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="distributorFormat" type="{http://www.isotc211.org/2005/gmd}MD_Format_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="distributorTransferOptions" type="{http://www.isotc211.org/2005/gmd}MD_DigitalTransferOptions_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_Distributor_Type", propOrder = {
     "distributorContact",
     "distributionOrderProcess",
     "distributorFormat",
     "distributorTransferOptions"
 })
 public class MDDistributorType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
Gets the value of the distributorContact property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the distributorContact property.

Parameters:
value allowed object is
 
        this. = value;
    }

    
Gets the value of the distributionOrderProcess property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the distributionOrderProcess property.

For example, to add a new item, do as follows:

    getDistributionOrderProcess().add(newItem);
 

Objects of the following type(s) are allowed in the list

        if ( == null) {
        }
        return this.;
    }

    
Gets the value of the distributorFormat property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the distributorFormat property.

For example, to add a new item, do as follows:

    getDistributorFormat().add(newItem);
 

Objects of the following type(s) are allowed in the list

        if ( == null) {
             = new ArrayList<MDFormatPropertyType>();
        }
        return this.;
    }

    
Gets the value of the distributorTransferOptions property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the distributorTransferOptions property.

For example, to add a new item, do as follows:

    getDistributorTransferOptions().add(newItem);
 

Objects of the following type(s) are allowed in the list

        if ( == null) {
        }
        return this.;
    }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        super.appendFields(locatorbufferstrategy);
        {
            CIResponsiblePartyPropertyType theDistributorContact;
            theDistributorContact = this.getDistributorContact();
            strategy.appendField(locatorthis"distributorContact"buffertheDistributorContact);
        }
        {
            List<MDStandardOrderProcessPropertyTypetheDistributionOrderProcess;
            theDistributionOrderProcess = (((this.!= null)&&(!this..isEmpty()))?this.getDistributionOrderProcess():null);
            strategy.appendField(locatorthis"distributionOrderProcess"buffertheDistributionOrderProcess);
        }
        {
            List<MDFormatPropertyTypetheDistributorFormat;
            theDistributorFormat = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorFormat():null);
            strategy.appendField(locatorthis"distributorFormat"buffertheDistributorFormat);
        }
        {
            List<MDDigitalTransferOptionsPropertyTypetheDistributorTransferOptions;
            theDistributorTransferOptions = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorTransferOptions():null);
            strategy.appendField(locatorthis"distributorTransferOptions"buffertheDistributorTransferOptions);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDDistributorType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDDistributorType that = ((MDDistributorTypeobject);
        {
            CIResponsiblePartyPropertyType lhsDistributorContact;
            lhsDistributorContact = this.getDistributorContact();
            CIResponsiblePartyPropertyType rhsDistributorContact;
            rhsDistributorContact = that.getDistributorContact();
            if (!strategy.equals(LocatorUtils.property(thisLocator"distributorContact"lhsDistributorContact), LocatorUtils.property(thatLocator"distributorContact"rhsDistributorContact), lhsDistributorContactrhsDistributorContact)) {
                return false;
            }
        }
        {
            List<MDStandardOrderProcessPropertyTypelhsDistributionOrderProcess;
            lhsDistributionOrderProcess = (((this.!= null)&&(!this..isEmpty()))?this.getDistributionOrderProcess():null);
            List<MDStandardOrderProcessPropertyTyperhsDistributionOrderProcess;
            rhsDistributionOrderProcess = (((that.distributionOrderProcess!= null)&&(!that.distributionOrderProcess.isEmpty()))?that.getDistributionOrderProcess():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"distributionOrderProcess"lhsDistributionOrderProcess), LocatorUtils.property(thatLocator"distributionOrderProcess"rhsDistributionOrderProcess), lhsDistributionOrderProcessrhsDistributionOrderProcess)) {
                return false;
            }
        }
        {
            List<MDFormatPropertyTypelhsDistributorFormat;
            lhsDistributorFormat = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorFormat():null);
            List<MDFormatPropertyTyperhsDistributorFormat;
            rhsDistributorFormat = (((that.distributorFormat!= null)&&(!that.distributorFormat.isEmpty()))?that.getDistributorFormat():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"distributorFormat"lhsDistributorFormat), LocatorUtils.property(thatLocator"distributorFormat"rhsDistributorFormat), lhsDistributorFormatrhsDistributorFormat)) {
                return false;
            }
        }
        {
            List<MDDigitalTransferOptionsPropertyTypelhsDistributorTransferOptions;
            lhsDistributorTransferOptions = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorTransferOptions():null);
            List<MDDigitalTransferOptionsPropertyTyperhsDistributorTransferOptions;
            rhsDistributorTransferOptions = (((that.distributorTransferOptions!= null)&&(!that.distributorTransferOptions.isEmpty()))?that.getDistributorTransferOptions():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"distributorTransferOptions"lhsDistributorTransferOptions), LocatorUtils.property(thatLocator"distributorTransferOptions"rhsDistributorTransferOptions), lhsDistributorTransferOptionsrhsDistributorTransferOptions)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            CIResponsiblePartyPropertyType theDistributorContact;
            theDistributorContact = this.getDistributorContact();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"distributorContact"theDistributorContact), currentHashCodetheDistributorContact);
        }
        {
            List<MDStandardOrderProcessPropertyTypetheDistributionOrderProcess;
            theDistributionOrderProcess = (((this.!= null)&&(!this..isEmpty()))?this.getDistributionOrderProcess():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"distributionOrderProcess"theDistributionOrderProcess), currentHashCodetheDistributionOrderProcess);
        }
        {
            List<MDFormatPropertyTypetheDistributorFormat;
            theDistributorFormat = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorFormat():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"distributorFormat"theDistributorFormat), currentHashCodetheDistributorFormat);
        }
        {
            List<MDDigitalTransferOptionsPropertyTypetheDistributorTransferOptions;
            theDistributorTransferOptions = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorTransferOptions():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"distributorTransferOptions"theDistributorTransferOptions), currentHashCodetheDistributorTransferOptions);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof MDDistributorType) {
            final MDDistributorType copy = ((MDDistributorTypedraftCopy);
            if (this.!= null) {
                CIResponsiblePartyPropertyType sourceDistributorContact;
                sourceDistributorContact = this.getDistributorContact();
                CIResponsiblePartyPropertyType copyDistributorContact = ((CIResponsiblePartyPropertyTypestrategy.copy(LocatorUtils.property(locator"distributorContact"sourceDistributorContact), sourceDistributorContact));
                copy.setDistributorContact(copyDistributorContact);
            } else {
                copy.distributorContact = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDStandardOrderProcessPropertyTypesourceDistributionOrderProcess;
                sourceDistributionOrderProcess = (((this.!= null)&&(!this..isEmpty()))?this.getDistributionOrderProcess():null);
                @SuppressWarnings("unchecked")
                List<MDStandardOrderProcessPropertyTypecopyDistributionOrderProcess = ((List<MDStandardOrderProcessPropertyType> ) strategy.copy(LocatorUtils.property(locator"distributionOrderProcess"sourceDistributionOrderProcess), sourceDistributionOrderProcess));
                copy.distributionOrderProcess = null;
                if (copyDistributionOrderProcess!= null) {
                    List<MDStandardOrderProcessPropertyTypeuniqueDistributionOrderProcessl = copy.getDistributionOrderProcess();
                    uniqueDistributionOrderProcessl.addAll(copyDistributionOrderProcess);
                }
            } else {
                copy.distributionOrderProcess = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDFormatPropertyTypesourceDistributorFormat;
                sourceDistributorFormat = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorFormat():null);
                @SuppressWarnings("unchecked")
                List<MDFormatPropertyTypecopyDistributorFormat = ((List<MDFormatPropertyType> ) strategy.copy(LocatorUtils.property(locator"distributorFormat"sourceDistributorFormat), sourceDistributorFormat));
                copy.distributorFormat = null;
                if (copyDistributorFormat!= null) {
                    List<MDFormatPropertyTypeuniqueDistributorFormatl = copy.getDistributorFormat();
                    uniqueDistributorFormatl.addAll(copyDistributorFormat);
                }
            } else {
                copy.distributorFormat = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDDigitalTransferOptionsPropertyTypesourceDistributorTransferOptions;
                sourceDistributorTransferOptions = (((this.!= null)&&(!this..isEmpty()))?this.getDistributorTransferOptions():null);
                @SuppressWarnings("unchecked")
                List<MDDigitalTransferOptionsPropertyTypecopyDistributorTransferOptions = ((List<MDDigitalTransferOptionsPropertyType> ) strategy.copy(LocatorUtils.property(locator"distributorTransferOptions"sourceDistributorTransferOptions), sourceDistributorTransferOptions));
                copy.distributorTransferOptions = null;
                if (copyDistributorTransferOptions!= null) {
                    List<MDDigitalTransferOptionsPropertyTypeuniqueDistributorTransferOptionsl = copy.getDistributorTransferOptions();
                    uniqueDistributorTransferOptionsl.addAll(copyDistributorTransferOptions);
                }
            } else {
                copy.distributorTransferOptions = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDDistributorType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof MDDistributorType) {
            final MDDistributorType target = this;
            final MDDistributorType leftObject = ((MDDistributorTypeleft);
            final MDDistributorType rightObject = ((MDDistributorTyperight);
            {
                CIResponsiblePartyPropertyType lhsDistributorContact;
                lhsDistributorContact = leftObject.getDistributorContact();
                CIResponsiblePartyPropertyType rhsDistributorContact;
                rhsDistributorContact = rightObject.getDistributorContact();
                CIResponsiblePartyPropertyType mergedDistributorContact = ((CIResponsiblePartyPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"distributorContact"lhsDistributorContact), LocatorUtils.property(rightLocator"distributorContact"rhsDistributorContact), lhsDistributorContactrhsDistributorContact));
                target.setDistributorContact(mergedDistributorContact);
            }
            {
                List<MDStandardOrderProcessPropertyTypelhsDistributionOrderProcess;
                lhsDistributionOrderProcess = (((leftObject.distributionOrderProcess!= null)&&(!leftObject.distributionOrderProcess.isEmpty()))?leftObject.getDistributionOrderProcess():null);
                List<MDStandardOrderProcessPropertyTyperhsDistributionOrderProcess;
                rhsDistributionOrderProcess = (((rightObject.distributionOrderProcess!= null)&&(!rightObject.distributionOrderProcess.isEmpty()))?rightObject.getDistributionOrderProcess():null);
                List<MDStandardOrderProcessPropertyTypemergedDistributionOrderProcess = ((List<MDStandardOrderProcessPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"distributionOrderProcess"lhsDistributionOrderProcess), LocatorUtils.property(rightLocator"distributionOrderProcess"rhsDistributionOrderProcess), lhsDistributionOrderProcessrhsDistributionOrderProcess));
                target.distributionOrderProcess = null;
                if (mergedDistributionOrderProcess!= null) {
                    List<MDStandardOrderProcessPropertyTypeuniqueDistributionOrderProcessl = target.getDistributionOrderProcess();
                    uniqueDistributionOrderProcessl.addAll(mergedDistributionOrderProcess);
                }
            }
            {
                List<MDFormatPropertyTypelhsDistributorFormat;
                lhsDistributorFormat = (((leftObject.distributorFormat!= null)&&(!leftObject.distributorFormat.isEmpty()))?leftObject.getDistributorFormat():null);
                List<MDFormatPropertyTyperhsDistributorFormat;
                rhsDistributorFormat = (((rightObject.distributorFormat!= null)&&(!rightObject.distributorFormat.isEmpty()))?rightObject.getDistributorFormat():null);
                List<MDFormatPropertyTypemergedDistributorFormat = ((List<MDFormatPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"distributorFormat"lhsDistributorFormat), LocatorUtils.property(rightLocator"distributorFormat"rhsDistributorFormat), lhsDistributorFormatrhsDistributorFormat));
                target.distributorFormat = null;
                if (mergedDistributorFormat!= null) {
                    List<MDFormatPropertyTypeuniqueDistributorFormatl = target.getDistributorFormat();
                    uniqueDistributorFormatl.addAll(mergedDistributorFormat);
                }
            }
            {
                List<MDDigitalTransferOptionsPropertyTypelhsDistributorTransferOptions;
                lhsDistributorTransferOptions = (((leftObject.distributorTransferOptions!= null)&&(!leftObject.distributorTransferOptions.isEmpty()))?leftObject.getDistributorTransferOptions():null);
                List<MDDigitalTransferOptionsPropertyTyperhsDistributorTransferOptions;
                rhsDistributorTransferOptions = (((rightObject.distributorTransferOptions!= null)&&(!rightObject.distributorTransferOptions.isEmpty()))?rightObject.getDistributorTransferOptions():null);
                List<MDDigitalTransferOptionsPropertyTypemergedDistributorTransferOptions = ((List<MDDigitalTransferOptionsPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"distributorTransferOptions"lhsDistributorTransferOptions), LocatorUtils.property(rightLocator"distributorTransferOptions"rhsDistributorTransferOptions), lhsDistributorTransferOptionsrhsDistributorTransferOptions));
                target.distributorTransferOptions = null;
                if (mergedDistributorTransferOptions!= null) {
                    List<MDDigitalTransferOptionsPropertyTypeuniqueDistributorTransferOptionsl = target.getDistributorTransferOptions();
                    uniqueDistributorTransferOptionsl.addAll(mergedDistributorTransferOptions);
                }
            }
        }
    }
        this. = null;
        draftl.addAll(value);
    }
    public void setDistributorFormat(List<MDFormatPropertyTypevalue) {
        this. = null;
        List<MDFormatPropertyTypedraftl = this.getDistributorFormat();
        draftl.addAll(value);
    }
        this. = null;
        draftl.addAll(value);
    }
        setDistributorContact(value);
        return this;
    }
        if (values!= null) {
            for (MDStandardOrderProcessPropertyType valuevalues) {
                getDistributionOrderProcess().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getDistributionOrderProcess().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (MDFormatPropertyType valuevalues) {
                getDistributorFormat().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getDistributorFormat().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (MDDigitalTransferOptionsPropertyType valuevalues) {
                getDistributorTransferOptions().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getDistributorTransferOptions().addAll(values);
        }
        return this;
    }
        setDistributionOrderProcess(value);
        return this;
    }
        setDistributorFormat(value);
        return this;
    }
        setDistributorTransferOptions(value);
        return this;
    }
    @Override
    public MDDistributorType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDDistributorType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X