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.gmx.v_20060504;
 
 import java.util.List;

Java class for MX_Aggregate_Type complex type.

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

 <complexType name="MX_Aggregate_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}AbstractDS_Aggregate_Type">
       <sequence>
         <element name="aggregateCatalogue" type="{http://www.isotc211.org/2005/gmx}CT_Catalogue_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="aggregateFile" type="{http://www.isotc211.org/2005/gmx}MX_SupportFile_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MX_Aggregate_Type", propOrder = {
     "aggregateCatalogue",
     "aggregateFile"
 })
 public class MXAggregateType
     extends AbstractDSAggregateType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected List<MXSupportFilePropertyTypeaggregateFile;

    
Gets the value of the aggregateCatalogue 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 aggregateCatalogue property.

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

    getAggregateCatalogue().add(newItem);
 

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

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

    
Gets the value of the aggregateFile 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 aggregateFile property.

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

    getAggregateFile().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<MXSupportFilePropertyType>();
        }
        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);
        {
            List<CTCataloguePropertyTypetheAggregateCatalogue;
            theAggregateCatalogue = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateCatalogue():null);
            strategy.appendField(locatorthis"aggregateCatalogue"buffertheAggregateCatalogue);
        }
        {
            List<MXSupportFilePropertyTypetheAggregateFile;
            theAggregateFile = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateFile():null);
            strategy.appendField(locatorthis"aggregateFile"buffertheAggregateFile);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MXAggregateType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MXAggregateType that = ((MXAggregateTypeobject);
        {
            List<CTCataloguePropertyTypelhsAggregateCatalogue;
            lhsAggregateCatalogue = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateCatalogue():null);
            List<CTCataloguePropertyTyperhsAggregateCatalogue;
            rhsAggregateCatalogue = (((that.aggregateCatalogue!= null)&&(!that.aggregateCatalogue.isEmpty()))?that.getAggregateCatalogue():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"aggregateCatalogue"lhsAggregateCatalogue), LocatorUtils.property(thatLocator"aggregateCatalogue"rhsAggregateCatalogue), lhsAggregateCataloguerhsAggregateCatalogue)) {
                return false;
            }
        }
        {
            List<MXSupportFilePropertyTypelhsAggregateFile;
            lhsAggregateFile = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateFile():null);
            List<MXSupportFilePropertyTyperhsAggregateFile;
            rhsAggregateFile = (((that.aggregateFile!= null)&&(!that.aggregateFile.isEmpty()))?that.getAggregateFile():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"aggregateFile"lhsAggregateFile), LocatorUtils.property(thatLocator"aggregateFile"rhsAggregateFile), lhsAggregateFilerhsAggregateFile)) {
                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);
        {
            List<CTCataloguePropertyTypetheAggregateCatalogue;
            theAggregateCatalogue = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateCatalogue():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"aggregateCatalogue"theAggregateCatalogue), currentHashCodetheAggregateCatalogue);
        }
        {
            List<MXSupportFilePropertyTypetheAggregateFile;
            theAggregateFile = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateFile():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"aggregateFile"theAggregateFile), currentHashCodetheAggregateFile);
        }
        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 MXAggregateType) {
            final MXAggregateType copy = ((MXAggregateTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CTCataloguePropertyTypesourceAggregateCatalogue;
                sourceAggregateCatalogue = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateCatalogue():null);
                @SuppressWarnings("unchecked")
                List<CTCataloguePropertyTypecopyAggregateCatalogue = ((List<CTCataloguePropertyType> ) strategy.copy(LocatorUtils.property(locator"aggregateCatalogue"sourceAggregateCatalogue), sourceAggregateCatalogue));
                copy.aggregateCatalogue = null;
                if (copyAggregateCatalogue!= null) {
                    List<CTCataloguePropertyTypeuniqueAggregateCataloguel = copy.getAggregateCatalogue();
                    uniqueAggregateCataloguel.addAll(copyAggregateCatalogue);
                }
            } else {
                copy.aggregateCatalogue = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MXSupportFilePropertyTypesourceAggregateFile;
                sourceAggregateFile = (((this.!= null)&&(!this..isEmpty()))?this.getAggregateFile():null);
                @SuppressWarnings("unchecked")
                List<MXSupportFilePropertyTypecopyAggregateFile = ((List<MXSupportFilePropertyType> ) strategy.copy(LocatorUtils.property(locator"aggregateFile"sourceAggregateFile), sourceAggregateFile));
                copy.aggregateFile = null;
                if (copyAggregateFile!= null) {
                    List<MXSupportFilePropertyTypeuniqueAggregateFilel = copy.getAggregateFile();
                    uniqueAggregateFilel.addAll(copyAggregateFile);
                }
            } else {
                copy.aggregateFile = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MXAggregateType();
    }
    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 MXAggregateType) {
            final MXAggregateType target = this;
            final MXAggregateType leftObject = ((MXAggregateTypeleft);
            final MXAggregateType rightObject = ((MXAggregateTyperight);
            {
                List<CTCataloguePropertyTypelhsAggregateCatalogue;
                lhsAggregateCatalogue = (((leftObject.aggregateCatalogue!= null)&&(!leftObject.aggregateCatalogue.isEmpty()))?leftObject.getAggregateCatalogue():null);
                List<CTCataloguePropertyTyperhsAggregateCatalogue;
                rhsAggregateCatalogue = (((rightObject.aggregateCatalogue!= null)&&(!rightObject.aggregateCatalogue.isEmpty()))?rightObject.getAggregateCatalogue():null);
                List<CTCataloguePropertyTypemergedAggregateCatalogue = ((List<CTCataloguePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"aggregateCatalogue"lhsAggregateCatalogue), LocatorUtils.property(rightLocator"aggregateCatalogue"rhsAggregateCatalogue), lhsAggregateCataloguerhsAggregateCatalogue));
                target.aggregateCatalogue = null;
                if (mergedAggregateCatalogue!= null) {
                    List<CTCataloguePropertyTypeuniqueAggregateCataloguel = target.getAggregateCatalogue();
                    uniqueAggregateCataloguel.addAll(mergedAggregateCatalogue);
                }
            }
            {
                List<MXSupportFilePropertyTypelhsAggregateFile;
                lhsAggregateFile = (((leftObject.aggregateFile!= null)&&(!leftObject.aggregateFile.isEmpty()))?leftObject.getAggregateFile():null);
                List<MXSupportFilePropertyTyperhsAggregateFile;
                rhsAggregateFile = (((rightObject.aggregateFile!= null)&&(!rightObject.aggregateFile.isEmpty()))?rightObject.getAggregateFile():null);
                List<MXSupportFilePropertyTypemergedAggregateFile = ((List<MXSupportFilePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"aggregateFile"lhsAggregateFile), LocatorUtils.property(rightLocator"aggregateFile"rhsAggregateFile), lhsAggregateFilerhsAggregateFile));
                target.aggregateFile = null;
                if (mergedAggregateFile!= null) {
                    List<MXSupportFilePropertyTypeuniqueAggregateFilel = target.getAggregateFile();
                    uniqueAggregateFilel.addAll(mergedAggregateFile);
                }
            }
        }
    }
    public void setAggregateCatalogue(List<CTCataloguePropertyTypevalue) {
        this. = null;
        List<CTCataloguePropertyTypedraftl = this.getAggregateCatalogue();
        draftl.addAll(value);
    }
    public void setAggregateFile(List<MXSupportFilePropertyTypevalue) {
        this. = null;
        List<MXSupportFilePropertyTypedraftl = this.getAggregateFile();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (CTCataloguePropertyType valuevalues) {
                getAggregateCatalogue().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getAggregateCatalogue().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (MXSupportFilePropertyType valuevalues) {
                getAggregateFile().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getAggregateFile().addAll(values);
        }
        return this;
    }
        setAggregateCatalogue(value);
        return this;
    }
        setAggregateFile(value);
        return this;
    }
    @Override
        if (values!= null) {
            for (DSDataSetPropertyType valuevalues) {
                getComposedOf().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getComposedOf().addAll(values);
        }
        return this;
    }
    @Override
        if (values!= null) {
            for (MDMetadataPropertyType valuevalues) {
                getSeriesMetadata().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getSeriesMetadata().addAll(values);
        }
        return this;
    }
    @Override
    public MXAggregateType withSubset(DSAggregatePropertyType... values) {
        if (values!= null) {
            for (DSAggregatePropertyType valuevalues) {
                getSubset().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getSubset().addAll(values);
        }
        return this;
    }
    @Override
        if (values!= null) {
            for (DSAggregatePropertyType valuevalues) {
                getSuperset().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getSuperset().addAll(values);
        }
        return this;
    }
    @Override
        setComposedOf(value);
        return this;
    }
    @Override
        setSeriesMetadata(value);
        return this;
    }
    @Override
        setSubset(value);
        return this;
    }
    @Override
        setSuperset(value);
        return this;
    }
    @Override
    public MXAggregateType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MXAggregateType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X