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.04.16 at 07:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
 import java.util.List;
Identifiable collection of datasets

Java class for AbstractDS_Aggregate_Type complex type.

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

 <complexType name="AbstractDS_Aggregate_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="composedOf" type="{http://www.isotc211.org/2005/gmd}DS_DataSet_PropertyType" maxOccurs="unbounded"/>
         <element name="seriesMetadata" type="{http://www.isotc211.org/2005/gmd}MD_Metadata_PropertyType" maxOccurs="unbounded"/>
         <element name="subset" type="{http://www.isotc211.org/2005/gmd}DS_Aggregate_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="superset" type="{http://www.isotc211.org/2005/gmd}DS_Aggregate_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractDS_Aggregate_Type", propOrder = {
     "composedOf",
     "seriesMetadata",
     "subset",
     "superset"
 })
     DSInitiativeType.class,
     DSSeriesType.class,
     DSOtherAggregateType.class,
     MXAggregateType.class
 })
 public abstract class AbstractDSAggregateType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected List<DSDataSetPropertyTypecomposedOf;
     @XmlElement(required = true)
     protected List<DSAggregatePropertyTypesubset;
     protected List<DSAggregatePropertyTypesuperset;

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

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

    getComposedOf().add(newItem);
 

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

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

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

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

    getSeriesMetadata().add(newItem);
 

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

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

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

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

    getSubset().add(newItem);
 

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

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

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

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

    getSuperset().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<DSAggregatePropertyType>();
        }
        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<DSDataSetPropertyTypetheComposedOf;
            theComposedOf = (((this.!= null)&&(!this..isEmpty()))?this.getComposedOf():null);
            strategy.appendField(locatorthis"composedOf"buffertheComposedOf);
        }
        {
            List<MDMetadataPropertyTypetheSeriesMetadata;
            theSeriesMetadata = (((this.!= null)&&(!this..isEmpty()))?this.getSeriesMetadata():null);
            strategy.appendField(locatorthis"seriesMetadata"buffertheSeriesMetadata);
        }
        {
            List<DSAggregatePropertyTypetheSubset;
            theSubset = (((this.!= null)&&(!this..isEmpty()))?this.getSubset():null);
            strategy.appendField(locatorthis"subset"buffertheSubset);
        }
        {
            List<DSAggregatePropertyTypetheSuperset;
            theSuperset = (((this.!= null)&&(!this..isEmpty()))?this.getSuperset():null);
            strategy.appendField(locatorthis"superset"buffertheSuperset);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractDSAggregateType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final AbstractDSAggregateType that = ((AbstractDSAggregateTypeobject);
        {
            List<DSDataSetPropertyTypelhsComposedOf;
            lhsComposedOf = (((this.!= null)&&(!this..isEmpty()))?this.getComposedOf():null);
            List<DSDataSetPropertyTyperhsComposedOf;
            rhsComposedOf = (((that.composedOf!= null)&&(!that.composedOf.isEmpty()))?that.getComposedOf():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"composedOf"lhsComposedOf), LocatorUtils.property(thatLocator"composedOf"rhsComposedOf), lhsComposedOfrhsComposedOf)) {
                return false;
            }
        }
        {
            List<MDMetadataPropertyTypelhsSeriesMetadata;
            lhsSeriesMetadata = (((this.!= null)&&(!this..isEmpty()))?this.getSeriesMetadata():null);
            List<MDMetadataPropertyTyperhsSeriesMetadata;
            rhsSeriesMetadata = (((that.seriesMetadata!= null)&&(!that.seriesMetadata.isEmpty()))?that.getSeriesMetadata():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"seriesMetadata"lhsSeriesMetadata), LocatorUtils.property(thatLocator"seriesMetadata"rhsSeriesMetadata), lhsSeriesMetadatarhsSeriesMetadata)) {
                return false;
            }
        }
        {
            List<DSAggregatePropertyTypelhsSubset;
            lhsSubset = (((this.!= null)&&(!this..isEmpty()))?this.getSubset():null);
            List<DSAggregatePropertyTyperhsSubset;
            rhsSubset = (((that.subset!= null)&&(!that.subset.isEmpty()))?that.getSubset():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"subset"lhsSubset), LocatorUtils.property(thatLocator"subset"rhsSubset), lhsSubsetrhsSubset)) {
                return false;
            }
        }
        {
            List<DSAggregatePropertyTypelhsSuperset;
            lhsSuperset = (((this.!= null)&&(!this..isEmpty()))?this.getSuperset():null);
            List<DSAggregatePropertyTyperhsSuperset;
            rhsSuperset = (((that.superset!= null)&&(!that.superset.isEmpty()))?that.getSuperset():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"superset"lhsSuperset), LocatorUtils.property(thatLocator"superset"rhsSuperset), lhsSupersetrhsSuperset)) {
                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<DSDataSetPropertyTypetheComposedOf;
            theComposedOf = (((this.!= null)&&(!this..isEmpty()))?this.getComposedOf():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"composedOf"theComposedOf), currentHashCodetheComposedOf);
        }
        {
            List<MDMetadataPropertyTypetheSeriesMetadata;
            theSeriesMetadata = (((this.!= null)&&(!this..isEmpty()))?this.getSeriesMetadata():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"seriesMetadata"theSeriesMetadata), currentHashCodetheSeriesMetadata);
        }
        {
            List<DSAggregatePropertyTypetheSubset;
            theSubset = (((this.!= null)&&(!this..isEmpty()))?this.getSubset():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"subset"theSubset), currentHashCodetheSubset);
        }
        {
            List<DSAggregatePropertyTypetheSuperset;
            theSuperset = (((this.!= null)&&(!this..isEmpty()))?this.getSuperset():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"superset"theSuperset), currentHashCodetheSuperset);
        }
        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) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        super.copyTo(locatortargetstrategy);
        if (target instanceof AbstractDSAggregateType) {
            final AbstractDSAggregateType copy = ((AbstractDSAggregateTypetarget);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<DSDataSetPropertyTypesourceComposedOf;
                sourceComposedOf = (((this.!= null)&&(!this..isEmpty()))?this.getComposedOf():null);
                @SuppressWarnings("unchecked")
                List<DSDataSetPropertyTypecopyComposedOf = ((List<DSDataSetPropertyType> ) strategy.copy(LocatorUtils.property(locator"composedOf"sourceComposedOf), sourceComposedOf));
                copy.composedOf = null;
                if (copyComposedOf!= null) {
                    List<DSDataSetPropertyTypeuniqueComposedOfl = copy.getComposedOf();
                    uniqueComposedOfl.addAll(copyComposedOf);
                }
            } else {
                copy.composedOf = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDMetadataPropertyTypesourceSeriesMetadata;
                sourceSeriesMetadata = (((this.!= null)&&(!this..isEmpty()))?this.getSeriesMetadata():null);
                @SuppressWarnings("unchecked")
                List<MDMetadataPropertyTypecopySeriesMetadata = ((List<MDMetadataPropertyType> ) strategy.copy(LocatorUtils.property(locator"seriesMetadata"sourceSeriesMetadata), sourceSeriesMetadata));
                copy.seriesMetadata = null;
                if (copySeriesMetadata!= null) {
                    List<MDMetadataPropertyTypeuniqueSeriesMetadatal = copy.getSeriesMetadata();
                    uniqueSeriesMetadatal.addAll(copySeriesMetadata);
                }
            } else {
                copy.seriesMetadata = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<DSAggregatePropertyTypesourceSubset;
                sourceSubset = (((this.!= null)&&(!this..isEmpty()))?this.getSubset():null);
                @SuppressWarnings("unchecked")
                List<DSAggregatePropertyTypecopySubset = ((List<DSAggregatePropertyType> ) strategy.copy(LocatorUtils.property(locator"subset"sourceSubset), sourceSubset));
                copy.subset = null;
                if (copySubset!= null) {
                    List<DSAggregatePropertyTypeuniqueSubsetl = copy.getSubset();
                    uniqueSubsetl.addAll(copySubset);
                }
            } else {
                copy.subset = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<DSAggregatePropertyTypesourceSuperset;
                sourceSuperset = (((this.!= null)&&(!this..isEmpty()))?this.getSuperset():null);
                @SuppressWarnings("unchecked")
                List<DSAggregatePropertyTypecopySuperset = ((List<DSAggregatePropertyType> ) strategy.copy(LocatorUtils.property(locator"superset"sourceSuperset), sourceSuperset));
                copy.superset = null;
                if (copySuperset!= null) {
                    List<DSAggregatePropertyTypeuniqueSupersetl = copy.getSuperset();
                    uniqueSupersetl.addAll(copySuperset);
                }
            } else {
                copy.superset = null;
            }
        }
        return target;
    }
    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 AbstractDSAggregateType) {
            final AbstractDSAggregateType target = this;
            final AbstractDSAggregateType leftObject = ((AbstractDSAggregateTypeleft);
            final AbstractDSAggregateType rightObject = ((AbstractDSAggregateTyperight);
            {
                List<DSDataSetPropertyTypelhsComposedOf;
                lhsComposedOf = (((leftObject.composedOf!= null)&&(!leftObject.composedOf.isEmpty()))?leftObject.getComposedOf():null);
                List<DSDataSetPropertyTyperhsComposedOf;
                rhsComposedOf = (((rightObject.composedOf!= null)&&(!rightObject.composedOf.isEmpty()))?rightObject.getComposedOf():null);
                List<DSDataSetPropertyTypemergedComposedOf = ((List<DSDataSetPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"composedOf"lhsComposedOf), LocatorUtils.property(rightLocator"composedOf"rhsComposedOf), lhsComposedOfrhsComposedOf));
                target.composedOf = null;
                if (mergedComposedOf!= null) {
                    List<DSDataSetPropertyTypeuniqueComposedOfl = target.getComposedOf();
                    uniqueComposedOfl.addAll(mergedComposedOf);
                }
            }
            {
                List<MDMetadataPropertyTypelhsSeriesMetadata;
                lhsSeriesMetadata = (((leftObject.seriesMetadata!= null)&&(!leftObject.seriesMetadata.isEmpty()))?leftObject.getSeriesMetadata():null);
                List<MDMetadataPropertyTyperhsSeriesMetadata;
                rhsSeriesMetadata = (((rightObject.seriesMetadata!= null)&&(!rightObject.seriesMetadata.isEmpty()))?rightObject.getSeriesMetadata():null);
                List<MDMetadataPropertyTypemergedSeriesMetadata = ((List<MDMetadataPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"seriesMetadata"lhsSeriesMetadata), LocatorUtils.property(rightLocator"seriesMetadata"rhsSeriesMetadata), lhsSeriesMetadatarhsSeriesMetadata));
                target.seriesMetadata = null;
                if (mergedSeriesMetadata!= null) {
                    List<MDMetadataPropertyTypeuniqueSeriesMetadatal = target.getSeriesMetadata();
                    uniqueSeriesMetadatal.addAll(mergedSeriesMetadata);
                }
            }
            {
                List<DSAggregatePropertyTypelhsSubset;
                lhsSubset = (((leftObject.subset!= null)&&(!leftObject.subset.isEmpty()))?leftObject.getSubset():null);
                List<DSAggregatePropertyTyperhsSubset;
                rhsSubset = (((rightObject.subset!= null)&&(!rightObject.subset.isEmpty()))?rightObject.getSubset():null);
                List<DSAggregatePropertyTypemergedSubset = ((List<DSAggregatePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"subset"lhsSubset), LocatorUtils.property(rightLocator"subset"rhsSubset), lhsSubsetrhsSubset));
                target.subset = null;
                if (mergedSubset!= null) {
                    List<DSAggregatePropertyTypeuniqueSubsetl = target.getSubset();
                    uniqueSubsetl.addAll(mergedSubset);
                }
            }
            {
                List<DSAggregatePropertyTypelhsSuperset;
                lhsSuperset = (((leftObject.superset!= null)&&(!leftObject.superset.isEmpty()))?leftObject.getSuperset():null);
                List<DSAggregatePropertyTyperhsSuperset;
                rhsSuperset = (((rightObject.superset!= null)&&(!rightObject.superset.isEmpty()))?rightObject.getSuperset():null);
                List<DSAggregatePropertyTypemergedSuperset = ((List<DSAggregatePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"superset"lhsSuperset), LocatorUtils.property(rightLocator"superset"rhsSuperset), lhsSupersetrhsSuperset));
                target.superset = null;
                if (mergedSuperset!= null) {
                    List<DSAggregatePropertyTypeuniqueSupersetl = target.getSuperset();
                    uniqueSupersetl.addAll(mergedSuperset);
                }
            }
        }
    }
    public void setComposedOf(List<DSDataSetPropertyTypevalue) {
        this. = null;
        List<DSDataSetPropertyTypedraftl = this.getComposedOf();
        draftl.addAll(value);
    }
    public void setSeriesMetadata(List<MDMetadataPropertyTypevalue) {
        this. = null;
        List<MDMetadataPropertyTypedraftl = this.getSeriesMetadata();
        draftl.addAll(value);
    }
    public void setSubset(List<DSAggregatePropertyTypevalue) {
        this. = null;
        List<DSAggregatePropertyTypedraftl = this.getSubset();
        draftl.addAll(value);
    }
    public void setSuperset(List<DSAggregatePropertyTypevalue) {
        this. = null;
        List<DSAggregatePropertyTypedraftl = this.getSuperset();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (DSDataSetPropertyType valuevalues) {
                getComposedOf().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getComposedOf().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (MDMetadataPropertyType valuevalues) {
                getSeriesMetadata().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getSeriesMetadata().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (DSAggregatePropertyType valuevalues) {
                getSubset().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getSubset().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (DSAggregatePropertyType valuevalues) {
                getSuperset().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getSuperset().addAll(values);
        }
        return this;
    }
        setComposedOf(value);
        return this;
    }
        setSeriesMetadata(value);
        return this;
    }
        setSubset(value);
        return this;
    }
        setSuperset(value);
        return this;
    }
    @Override
    public AbstractDSAggregateType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public AbstractDSAggregateType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X