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 domain of the raster cell

Java class for MD_CoverageDescription_Type complex type.

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

 <complexType name="MD_CoverageDescription_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}AbstractMD_ContentInformation_Type">
       <sequence>
         <element name="attributeDescription" type="{http://www.isotc211.org/2005/gco}RecordType_PropertyType"/>
         <element name="contentType" type="{http://www.isotc211.org/2005/gmd}MD_CoverageContentTypeCode_PropertyType"/>
         <element name="dimension" type="{http://www.isotc211.org/2005/gmd}MD_RangeDimension_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_CoverageDescription_Type", propOrder = {
     "attributeDescription",
     "contentType",
     "dimension"
 })
     MDImageDescriptionType.class
 })
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     @XmlElement(required = true)
     protected List<MDRangeDimensionPropertyTypedimension;

    
Gets the value of the attributeDescription property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the attributeDescription property.

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

    
Gets the value of the contentType property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the contentType property.

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

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

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

    getDimension().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<MDRangeDimensionPropertyType>();
        }
        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);
        {
            RecordTypePropertyType theAttributeDescription;
            theAttributeDescription = this.getAttributeDescription();
            strategy.appendField(locatorthis"attributeDescription"buffertheAttributeDescription);
        }
        {
            MDCoverageContentTypeCodePropertyType theContentType;
            theContentType = this.getContentType();
            strategy.appendField(locatorthis"contentType"buffertheContentType);
        }
        {
            List<MDRangeDimensionPropertyTypetheDimension;
            theDimension = (((this.!= null)&&(!this..isEmpty()))?this.getDimension():null);
            strategy.appendField(locatorthis"dimension"buffertheDimension);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDCoverageDescriptionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDCoverageDescriptionType that = ((MDCoverageDescriptionTypeobject);
        {
            RecordTypePropertyType lhsAttributeDescription;
            lhsAttributeDescription = this.getAttributeDescription();
            RecordTypePropertyType rhsAttributeDescription;
            rhsAttributeDescription = that.getAttributeDescription();
            if (!strategy.equals(LocatorUtils.property(thisLocator"attributeDescription"lhsAttributeDescription), LocatorUtils.property(thatLocator"attributeDescription"rhsAttributeDescription), lhsAttributeDescriptionrhsAttributeDescription)) {
                return false;
            }
        }
        {
            MDCoverageContentTypeCodePropertyType lhsContentType;
            lhsContentType = this.getContentType();
            MDCoverageContentTypeCodePropertyType rhsContentType;
            rhsContentType = that.getContentType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"contentType"lhsContentType), LocatorUtils.property(thatLocator"contentType"rhsContentType), lhsContentTyperhsContentType)) {
                return false;
            }
        }
        {
            List<MDRangeDimensionPropertyTypelhsDimension;
            lhsDimension = (((this.!= null)&&(!this..isEmpty()))?this.getDimension():null);
            List<MDRangeDimensionPropertyTyperhsDimension;
            rhsDimension = (((that.dimension!= null)&&(!that.dimension.isEmpty()))?that.getDimension():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"dimension"lhsDimension), LocatorUtils.property(thatLocator"dimension"rhsDimension), lhsDimensionrhsDimension)) {
                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);
        {
            RecordTypePropertyType theAttributeDescription;
            theAttributeDescription = this.getAttributeDescription();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"attributeDescription"theAttributeDescription), currentHashCodetheAttributeDescription);
        }
        {
            MDCoverageContentTypeCodePropertyType theContentType;
            theContentType = this.getContentType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"contentType"theContentType), currentHashCodetheContentType);
        }
        {
            List<MDRangeDimensionPropertyTypetheDimension;
            theDimension = (((this.!= null)&&(!this..isEmpty()))?this.getDimension():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"dimension"theDimension), currentHashCodetheDimension);
        }
        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 MDCoverageDescriptionType) {
            final MDCoverageDescriptionType copy = ((MDCoverageDescriptionTypedraftCopy);
            if (this.!= null) {
                RecordTypePropertyType sourceAttributeDescription;
                sourceAttributeDescription = this.getAttributeDescription();
                RecordTypePropertyType copyAttributeDescription = ((RecordTypePropertyTypestrategy.copy(LocatorUtils.property(locator"attributeDescription"sourceAttributeDescription), sourceAttributeDescription));
                copy.setAttributeDescription(copyAttributeDescription);
            } else {
                copy.attributeDescription = null;
            }
            if (this.!= null) {
                MDCoverageContentTypeCodePropertyType sourceContentType;
                sourceContentType = this.getContentType();
                MDCoverageContentTypeCodePropertyType copyContentType = ((MDCoverageContentTypeCodePropertyTypestrategy.copy(LocatorUtils.property(locator"contentType"sourceContentType), sourceContentType));
                copy.setContentType(copyContentType);
            } else {
                copy.contentType = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDRangeDimensionPropertyTypesourceDimension;
                sourceDimension = (((this.!= null)&&(!this..isEmpty()))?this.getDimension():null);
                @SuppressWarnings("unchecked")
                List<MDRangeDimensionPropertyTypecopyDimension = ((List<MDRangeDimensionPropertyType> ) strategy.copy(LocatorUtils.property(locator"dimension"sourceDimension), sourceDimension));
                copy.dimension = null;
                if (copyDimension!= null) {
                    List<MDRangeDimensionPropertyTypeuniqueDimensionl = copy.getDimension();
                    uniqueDimensionl.addAll(copyDimension);
                }
            } else {
                copy.dimension = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDCoverageDescriptionType();
    }
    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 MDCoverageDescriptionType) {
            final MDCoverageDescriptionType target = this;
            final MDCoverageDescriptionType leftObject = ((MDCoverageDescriptionTypeleft);
            final MDCoverageDescriptionType rightObject = ((MDCoverageDescriptionTyperight);
            {
                RecordTypePropertyType lhsAttributeDescription;
                lhsAttributeDescription = leftObject.getAttributeDescription();
                RecordTypePropertyType rhsAttributeDescription;
                rhsAttributeDescription = rightObject.getAttributeDescription();
                RecordTypePropertyType mergedAttributeDescription = ((RecordTypePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"attributeDescription"lhsAttributeDescription), LocatorUtils.property(rightLocator"attributeDescription"rhsAttributeDescription), lhsAttributeDescriptionrhsAttributeDescription));
                target.setAttributeDescription(mergedAttributeDescription);
            }
            {
                MDCoverageContentTypeCodePropertyType lhsContentType;
                lhsContentType = leftObject.getContentType();
                MDCoverageContentTypeCodePropertyType rhsContentType;
                rhsContentType = rightObject.getContentType();
                MDCoverageContentTypeCodePropertyType mergedContentType = ((MDCoverageContentTypeCodePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"contentType"lhsContentType), LocatorUtils.property(rightLocator"contentType"rhsContentType), lhsContentTyperhsContentType));
                target.setContentType(mergedContentType);
            }
            {
                List<MDRangeDimensionPropertyTypelhsDimension;
                lhsDimension = (((leftObject.dimension!= null)&&(!leftObject.dimension.isEmpty()))?leftObject.getDimension():null);
                List<MDRangeDimensionPropertyTyperhsDimension;
                rhsDimension = (((rightObject.dimension!= null)&&(!rightObject.dimension.isEmpty()))?rightObject.getDimension():null);
                List<MDRangeDimensionPropertyTypemergedDimension = ((List<MDRangeDimensionPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"dimension"lhsDimension), LocatorUtils.property(rightLocator"dimension"rhsDimension), lhsDimensionrhsDimension));
                target.dimension = null;
                if (mergedDimension!= null) {
                    List<MDRangeDimensionPropertyTypeuniqueDimensionl = target.getDimension();
                    uniqueDimensionl.addAll(mergedDimension);
                }
            }
        }
    }
    public void setDimension(List<MDRangeDimensionPropertyTypevalue) {
        this. = null;
        List<MDRangeDimensionPropertyTypedraftl = this.getDimension();
        draftl.addAll(value);
    }
        setAttributeDescription(value);
        return this;
    }
        setContentType(value);
        return this;
    }
        if (values!= null) {
            for (MDRangeDimensionPropertyType valuevalues) {
                getDimension().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getDimension().addAll(values);
        }
        return this;
    }
        setDimension(value);
        return this;
    }
    @Override
    public MDCoverageDescriptionType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDCoverageDescriptionType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X