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;
Description of the class of information covered by the information

Java class for MD_ScopeDescription_Type complex type.

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

 <complexType name="MD_ScopeDescription_Type">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element name="attributes" type="{http://www.isotc211.org/2005/gco}ObjectReference_PropertyType" maxOccurs="unbounded"/>
         <element name="features" type="{http://www.isotc211.org/2005/gco}ObjectReference_PropertyType" maxOccurs="unbounded"/>
         <element name="featureInstances" type="{http://www.isotc211.org/2005/gco}ObjectReference_PropertyType" maxOccurs="unbounded"/>
         <element name="attributeInstances" type="{http://www.isotc211.org/2005/gco}ObjectReference_PropertyType" maxOccurs="unbounded"/>
         <element name="dataset" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element name="other" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_ScopeDescription_Type", propOrder = {
     "attributes",
     "features",
     "featureInstances",
     "attributeInstances",
     "dataset",
     "other"
 })
 public class MDScopeDescriptionType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected CharacterStringPropertyType dataset;
     protected CharacterStringPropertyType other;

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

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

    getAttributes().add(newItem);
 

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

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

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

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

    getFeatures().add(newItem);
 

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

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

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

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

    getFeatureInstances().add(newItem);
 

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

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

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

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

    getAttributeInstances().add(newItem);
 

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

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

    
Gets the value of the dataset property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the dataset property.

Parameters:
value allowed object is
    public void setDataset(CharacterStringPropertyType value) {
        this. = value;
    }

    
Gets the value of the other property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the other property.

Parameters:
value allowed object is
    public void setOther(CharacterStringPropertyType value) {
        this. = value;
    }
    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) {
        {
            List<ObjectReferencePropertyTypetheAttributes;
            theAttributes = (((this.!= null)&&(!this..isEmpty()))?this.getAttributes():null);
            strategy.appendField(locatorthis"attributes"buffertheAttributes);
        }
        {
            List<ObjectReferencePropertyTypetheFeatures;
            theFeatures = (((this.!= null)&&(!this..isEmpty()))?this.getFeatures():null);
            strategy.appendField(locatorthis"features"buffertheFeatures);
        }
        {
            List<ObjectReferencePropertyTypetheFeatureInstances;
            theFeatureInstances = (((this.!= null)&&(!this..isEmpty()))?this.getFeatureInstances():null);
            strategy.appendField(locatorthis"featureInstances"buffertheFeatureInstances);
        }
        {
            List<ObjectReferencePropertyTypetheAttributeInstances;
            theAttributeInstances = (((this.!= null)&&(!this..isEmpty()))?this.getAttributeInstances():null);
            strategy.appendField(locatorthis"attributeInstances"buffertheAttributeInstances);
        }
        {
            CharacterStringPropertyType theDataset;
            theDataset = this.getDataset();
            strategy.appendField(locatorthis"dataset"buffertheDataset);
        }
        {
            CharacterStringPropertyType theOther;
            theOther = this.getOther();
            strategy.appendField(locatorthis"other"buffertheOther);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDScopeDescriptionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final MDScopeDescriptionType that = ((MDScopeDescriptionTypeobject);
        {
            List<ObjectReferencePropertyTypelhsAttributes;
            lhsAttributes = (((this.!= null)&&(!this..isEmpty()))?this.getAttributes():null);
            List<ObjectReferencePropertyTyperhsAttributes;
            rhsAttributes = (((that.attributes!= null)&&(!that.attributes.isEmpty()))?that.getAttributes():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"attributes"lhsAttributes), LocatorUtils.property(thatLocator"attributes"rhsAttributes), lhsAttributesrhsAttributes)) {
                return false;
            }
        }
        {
            List<ObjectReferencePropertyTypelhsFeatures;
            lhsFeatures = (((this.!= null)&&(!this..isEmpty()))?this.getFeatures():null);
            List<ObjectReferencePropertyTyperhsFeatures;
            rhsFeatures = (((that.features!= null)&&(!that.features.isEmpty()))?that.getFeatures():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"features"lhsFeatures), LocatorUtils.property(thatLocator"features"rhsFeatures), lhsFeaturesrhsFeatures)) {
                return false;
            }
        }
        {
            List<ObjectReferencePropertyTypelhsFeatureInstances;
            lhsFeatureInstances = (((this.!= null)&&(!this..isEmpty()))?this.getFeatureInstances():null);
            List<ObjectReferencePropertyTyperhsFeatureInstances;
            rhsFeatureInstances = (((that.featureInstances!= null)&&(!that.featureInstances.isEmpty()))?that.getFeatureInstances():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"featureInstances"lhsFeatureInstances), LocatorUtils.property(thatLocator"featureInstances"rhsFeatureInstances), lhsFeatureInstancesrhsFeatureInstances)) {
                return false;
            }
        }
        {
            List<ObjectReferencePropertyTypelhsAttributeInstances;
            lhsAttributeInstances = (((this.!= null)&&(!this..isEmpty()))?this.getAttributeInstances():null);
            List<ObjectReferencePropertyTyperhsAttributeInstances;
            rhsAttributeInstances = (((that.attributeInstances!= null)&&(!that.attributeInstances.isEmpty()))?that.getAttributeInstances():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"attributeInstances"lhsAttributeInstances), LocatorUtils.property(thatLocator"attributeInstances"rhsAttributeInstances), lhsAttributeInstancesrhsAttributeInstances)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsDataset;
            lhsDataset = this.getDataset();
            CharacterStringPropertyType rhsDataset;
            rhsDataset = that.getDataset();
            if (!strategy.equals(LocatorUtils.property(thisLocator"dataset"lhsDataset), LocatorUtils.property(thatLocator"dataset"rhsDataset), lhsDatasetrhsDataset)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsOther;
            lhsOther = this.getOther();
            CharacterStringPropertyType rhsOther;
            rhsOther = that.getOther();
            if (!strategy.equals(LocatorUtils.property(thisLocator"other"lhsOther), LocatorUtils.property(thatLocator"other"rhsOther), lhsOtherrhsOther)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            List<ObjectReferencePropertyTypetheAttributes;
            theAttributes = (((this.!= null)&&(!this..isEmpty()))?this.getAttributes():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"attributes"theAttributes), currentHashCodetheAttributes);
        }
        {
            List<ObjectReferencePropertyTypetheFeatures;
            theFeatures = (((this.!= null)&&(!this..isEmpty()))?this.getFeatures():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"features"theFeatures), currentHashCodetheFeatures);
        }
        {
            List<ObjectReferencePropertyTypetheFeatureInstances;
            theFeatureInstances = (((this.!= null)&&(!this..isEmpty()))?this.getFeatureInstances():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"featureInstances"theFeatureInstances), currentHashCodetheFeatureInstances);
        }
        {
            List<ObjectReferencePropertyTypetheAttributeInstances;
            theAttributeInstances = (((this.!= null)&&(!this..isEmpty()))?this.getAttributeInstances():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"attributeInstances"theAttributeInstances), currentHashCodetheAttributeInstances);
        }
        {
            CharacterStringPropertyType theDataset;
            theDataset = this.getDataset();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"dataset"theDataset), currentHashCodetheDataset);
        }
        {
            CharacterStringPropertyType theOther;
            theOther = this.getOther();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"other"theOther), currentHashCodetheOther);
        }
        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);
        if (draftCopy instanceof MDScopeDescriptionType) {
            final MDScopeDescriptionType copy = ((MDScopeDescriptionTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<ObjectReferencePropertyTypesourceAttributes;
                sourceAttributes = (((this.!= null)&&(!this..isEmpty()))?this.getAttributes():null);
                @SuppressWarnings("unchecked")
                List<ObjectReferencePropertyTypecopyAttributes = ((List<ObjectReferencePropertyType> ) strategy.copy(LocatorUtils.property(locator"attributes"sourceAttributes), sourceAttributes));
                copy.attributes = null;
                if (copyAttributes!= null) {
                    List<ObjectReferencePropertyTypeuniqueAttributesl = copy.getAttributes();
                    uniqueAttributesl.addAll(copyAttributes);
                }
            } else {
                copy.attributes = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<ObjectReferencePropertyTypesourceFeatures;
                sourceFeatures = (((this.!= null)&&(!this..isEmpty()))?this.getFeatures():null);
                @SuppressWarnings("unchecked")
                List<ObjectReferencePropertyTypecopyFeatures = ((List<ObjectReferencePropertyType> ) strategy.copy(LocatorUtils.property(locator"features"sourceFeatures), sourceFeatures));
                copy.features = null;
                if (copyFeatures!= null) {
                    List<ObjectReferencePropertyTypeuniqueFeaturesl = copy.getFeatures();
                    uniqueFeaturesl.addAll(copyFeatures);
                }
            } else {
                copy.features = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<ObjectReferencePropertyTypesourceFeatureInstances;
                sourceFeatureInstances = (((this.!= null)&&(!this..isEmpty()))?this.getFeatureInstances():null);
                @SuppressWarnings("unchecked")
                List<ObjectReferencePropertyTypecopyFeatureInstances = ((List<ObjectReferencePropertyType> ) strategy.copy(LocatorUtils.property(locator"featureInstances"sourceFeatureInstances), sourceFeatureInstances));
                copy.featureInstances = null;
                if (copyFeatureInstances!= null) {
                    List<ObjectReferencePropertyTypeuniqueFeatureInstancesl = copy.getFeatureInstances();
                    uniqueFeatureInstancesl.addAll(copyFeatureInstances);
                }
            } else {
                copy.featureInstances = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<ObjectReferencePropertyTypesourceAttributeInstances;
                sourceAttributeInstances = (((this.!= null)&&(!this..isEmpty()))?this.getAttributeInstances():null);
                @SuppressWarnings("unchecked")
                List<ObjectReferencePropertyTypecopyAttributeInstances = ((List<ObjectReferencePropertyType> ) strategy.copy(LocatorUtils.property(locator"attributeInstances"sourceAttributeInstances), sourceAttributeInstances));
                copy.attributeInstances = null;
                if (copyAttributeInstances!= null) {
                    List<ObjectReferencePropertyTypeuniqueAttributeInstancesl = copy.getAttributeInstances();
                    uniqueAttributeInstancesl.addAll(copyAttributeInstances);
                }
            } else {
                copy.attributeInstances = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceDataset;
                sourceDataset = this.getDataset();
                CharacterStringPropertyType copyDataset = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"dataset"sourceDataset), sourceDataset));
                copy.setDataset(copyDataset);
            } else {
                copy.dataset = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceOther;
                sourceOther = this.getOther();
                CharacterStringPropertyType copyOther = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"other"sourceOther), sourceOther));
                copy.setOther(copyOther);
            } else {
                copy.other = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDScopeDescriptionType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof MDScopeDescriptionType) {
            final MDScopeDescriptionType target = this;
            final MDScopeDescriptionType leftObject = ((MDScopeDescriptionTypeleft);
            final MDScopeDescriptionType rightObject = ((MDScopeDescriptionTyperight);
            {
                List<ObjectReferencePropertyTypelhsAttributes;
                lhsAttributes = (((leftObject.attributes!= null)&&(!leftObject.attributes.isEmpty()))?leftObject.getAttributes():null);
                List<ObjectReferencePropertyTyperhsAttributes;
                rhsAttributes = (((rightObject.attributes!= null)&&(!rightObject.attributes.isEmpty()))?rightObject.getAttributes():null);
                List<ObjectReferencePropertyTypemergedAttributes = ((List<ObjectReferencePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"attributes"lhsAttributes), LocatorUtils.property(rightLocator"attributes"rhsAttributes), lhsAttributesrhsAttributes));
                target.attributes = null;
                if (mergedAttributes!= null) {
                    List<ObjectReferencePropertyTypeuniqueAttributesl = target.getAttributes();
                    uniqueAttributesl.addAll(mergedAttributes);
                }
            }
            {
                List<ObjectReferencePropertyTypelhsFeatures;
                lhsFeatures = (((leftObject.features!= null)&&(!leftObject.features.isEmpty()))?leftObject.getFeatures():null);
                List<ObjectReferencePropertyTyperhsFeatures;
                rhsFeatures = (((rightObject.features!= null)&&(!rightObject.features.isEmpty()))?rightObject.getFeatures():null);
                List<ObjectReferencePropertyTypemergedFeatures = ((List<ObjectReferencePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"features"lhsFeatures), LocatorUtils.property(rightLocator"features"rhsFeatures), lhsFeaturesrhsFeatures));
                target.features = null;
                if (mergedFeatures!= null) {
                    List<ObjectReferencePropertyTypeuniqueFeaturesl = target.getFeatures();
                    uniqueFeaturesl.addAll(mergedFeatures);
                }
            }
            {
                List<ObjectReferencePropertyTypelhsFeatureInstances;
                lhsFeatureInstances = (((leftObject.featureInstances!= null)&&(!leftObject.featureInstances.isEmpty()))?leftObject.getFeatureInstances():null);
                List<ObjectReferencePropertyTyperhsFeatureInstances;
                rhsFeatureInstances = (((rightObject.featureInstances!= null)&&(!rightObject.featureInstances.isEmpty()))?rightObject.getFeatureInstances():null);
                List<ObjectReferencePropertyTypemergedFeatureInstances = ((List<ObjectReferencePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"featureInstances"lhsFeatureInstances), LocatorUtils.property(rightLocator"featureInstances"rhsFeatureInstances), lhsFeatureInstancesrhsFeatureInstances));
                target.featureInstances = null;
                if (mergedFeatureInstances!= null) {
                    List<ObjectReferencePropertyTypeuniqueFeatureInstancesl = target.getFeatureInstances();
                    uniqueFeatureInstancesl.addAll(mergedFeatureInstances);
                }
            }
            {
                List<ObjectReferencePropertyTypelhsAttributeInstances;
                lhsAttributeInstances = (((leftObject.attributeInstances!= null)&&(!leftObject.attributeInstances.isEmpty()))?leftObject.getAttributeInstances():null);
                List<ObjectReferencePropertyTyperhsAttributeInstances;
                rhsAttributeInstances = (((rightObject.attributeInstances!= null)&&(!rightObject.attributeInstances.isEmpty()))?rightObject.getAttributeInstances():null);
                List<ObjectReferencePropertyTypemergedAttributeInstances = ((List<ObjectReferencePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"attributeInstances"lhsAttributeInstances), LocatorUtils.property(rightLocator"attributeInstances"rhsAttributeInstances), lhsAttributeInstancesrhsAttributeInstances));
                target.attributeInstances = null;
                if (mergedAttributeInstances!= null) {
                    List<ObjectReferencePropertyTypeuniqueAttributeInstancesl = target.getAttributeInstances();
                    uniqueAttributeInstancesl.addAll(mergedAttributeInstances);
                }
            }
            {
                CharacterStringPropertyType lhsDataset;
                lhsDataset = leftObject.getDataset();
                CharacterStringPropertyType rhsDataset;
                rhsDataset = rightObject.getDataset();
                CharacterStringPropertyType mergedDataset = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"dataset"lhsDataset), LocatorUtils.property(rightLocator"dataset"rhsDataset), lhsDatasetrhsDataset));
                target.setDataset(mergedDataset);
            }
            {
                CharacterStringPropertyType lhsOther;
                lhsOther = leftObject.getOther();
                CharacterStringPropertyType rhsOther;
                rhsOther = rightObject.getOther();
                CharacterStringPropertyType mergedOther = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"other"lhsOther), LocatorUtils.property(rightLocator"other"rhsOther), lhsOtherrhsOther));
                target.setOther(mergedOther);
            }
        }
    }
    public void setAttributes(List<ObjectReferencePropertyTypevalue) {
        this. = null;
        List<ObjectReferencePropertyTypedraftl = this.getAttributes();
        draftl.addAll(value);
    }
    public void setFeatures(List<ObjectReferencePropertyTypevalue) {
        this. = null;
        List<ObjectReferencePropertyTypedraftl = this.getFeatures();
        draftl.addAll(value);
    }
    public void setFeatureInstances(List<ObjectReferencePropertyTypevalue) {
        this. = null;
        List<ObjectReferencePropertyTypedraftl = this.getFeatureInstances();
        draftl.addAll(value);
    }
        this. = null;
        List<ObjectReferencePropertyTypedraftl = this.getAttributeInstances();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (ObjectReferencePropertyType valuevalues) {
                getAttributes().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getAttributes().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (ObjectReferencePropertyType valuevalues) {
                getFeatures().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getFeatures().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (ObjectReferencePropertyType valuevalues) {
                getFeatureInstances().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getFeatureInstances().addAll(values);
        }
        return this;
    }
        if (values!= null) {
            for (ObjectReferencePropertyType valuevalues) {
                getAttributeInstances().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getAttributeInstances().addAll(values);
        }
        return this;
    }
        setDataset(value);
        return this;
    }
        setOther(value);
        return this;
    }
        setAttributes(value);
        return this;
    }
        setFeatures(value);
        return this;
    }
        setFeatureInstances(value);
        return this;
    }
        setAttributeInstances(value);
        return this;
    }
New to GrepCode? Check out our FAQ X