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;
 

Java class for MD_Dimension_Type complex type.

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

 <complexType name="MD_Dimension_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="dimensionName" type="{http://www.isotc211.org/2005/gmd}MD_DimensionNameTypeCode_PropertyType"/>
         <element name="dimensionSize" type="{http://www.isotc211.org/2005/gco}Integer_PropertyType"/>
         <element name="resolution" type="{http://www.isotc211.org/2005/gco}Measure_PropertyType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_Dimension_Type", propOrder = {
     "dimensionName",
     "dimensionSize",
     "resolution"
 })
 public class MDDimensionType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     @XmlElement(required = true)
     protected IntegerPropertyType dimensionSize;
     protected MeasurePropertyType resolution;

    
Gets the value of the dimensionName property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the dimensionName property.

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

    
Gets the value of the dimensionSize property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the dimensionSize property.

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

    
Gets the value of the resolution property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the resolution property.

Parameters:
value allowed object is
    public void setResolution(MeasurePropertyType 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) {
        super.appendFields(locatorbufferstrategy);
        {
            MDDimensionNameTypeCodePropertyType theDimensionName;
            theDimensionName = this.getDimensionName();
            strategy.appendField(locatorthis"dimensionName"buffertheDimensionName);
        }
        {
            IntegerPropertyType theDimensionSize;
            theDimensionSize = this.getDimensionSize();
            strategy.appendField(locatorthis"dimensionSize"buffertheDimensionSize);
        }
        {
            MeasurePropertyType theResolution;
            theResolution = this.getResolution();
            strategy.appendField(locatorthis"resolution"buffertheResolution);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDDimensionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDDimensionType that = ((MDDimensionTypeobject);
        {
            MDDimensionNameTypeCodePropertyType lhsDimensionName;
            lhsDimensionName = this.getDimensionName();
            MDDimensionNameTypeCodePropertyType rhsDimensionName;
            rhsDimensionName = that.getDimensionName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"dimensionName"lhsDimensionName), LocatorUtils.property(thatLocator"dimensionName"rhsDimensionName), lhsDimensionNamerhsDimensionName)) {
                return false;
            }
        }
        {
            IntegerPropertyType lhsDimensionSize;
            lhsDimensionSize = this.getDimensionSize();
            IntegerPropertyType rhsDimensionSize;
            rhsDimensionSize = that.getDimensionSize();
            if (!strategy.equals(LocatorUtils.property(thisLocator"dimensionSize"lhsDimensionSize), LocatorUtils.property(thatLocator"dimensionSize"rhsDimensionSize), lhsDimensionSizerhsDimensionSize)) {
                return false;
            }
        }
        {
            MeasurePropertyType lhsResolution;
            lhsResolution = this.getResolution();
            MeasurePropertyType rhsResolution;
            rhsResolution = that.getResolution();
            if (!strategy.equals(LocatorUtils.property(thisLocator"resolution"lhsResolution), LocatorUtils.property(thatLocator"resolution"rhsResolution), lhsResolutionrhsResolution)) {
                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);
        {
            MDDimensionNameTypeCodePropertyType theDimensionName;
            theDimensionName = this.getDimensionName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"dimensionName"theDimensionName), currentHashCodetheDimensionName);
        }
        {
            IntegerPropertyType theDimensionSize;
            theDimensionSize = this.getDimensionSize();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"dimensionSize"theDimensionSize), currentHashCodetheDimensionSize);
        }
        {
            MeasurePropertyType theResolution;
            theResolution = this.getResolution();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"resolution"theResolution), currentHashCodetheResolution);
        }
        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 MDDimensionType) {
            final MDDimensionType copy = ((MDDimensionTypedraftCopy);
            if (this.!= null) {
                MDDimensionNameTypeCodePropertyType sourceDimensionName;
                sourceDimensionName = this.getDimensionName();
                MDDimensionNameTypeCodePropertyType copyDimensionName = ((MDDimensionNameTypeCodePropertyTypestrategy.copy(LocatorUtils.property(locator"dimensionName"sourceDimensionName), sourceDimensionName));
                copy.setDimensionName(copyDimensionName);
            } else {
                copy.dimensionName = null;
            }
            if (this.!= null) {
                IntegerPropertyType sourceDimensionSize;
                sourceDimensionSize = this.getDimensionSize();
                IntegerPropertyType copyDimensionSize = ((IntegerPropertyTypestrategy.copy(LocatorUtils.property(locator"dimensionSize"sourceDimensionSize), sourceDimensionSize));
                copy.setDimensionSize(copyDimensionSize);
            } else {
                copy.dimensionSize = null;
            }
            if (this.!= null) {
                MeasurePropertyType sourceResolution;
                sourceResolution = this.getResolution();
                MeasurePropertyType copyResolution = ((MeasurePropertyTypestrategy.copy(LocatorUtils.property(locator"resolution"sourceResolution), sourceResolution));
                copy.setResolution(copyResolution);
            } else {
                copy.resolution = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDDimensionType();
    }
    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 MDDimensionType) {
            final MDDimensionType target = this;
            final MDDimensionType leftObject = ((MDDimensionTypeleft);
            final MDDimensionType rightObject = ((MDDimensionTyperight);
            {
                MDDimensionNameTypeCodePropertyType lhsDimensionName;
                lhsDimensionName = leftObject.getDimensionName();
                MDDimensionNameTypeCodePropertyType rhsDimensionName;
                rhsDimensionName = rightObject.getDimensionName();
                MDDimensionNameTypeCodePropertyType mergedDimensionName = ((MDDimensionNameTypeCodePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"dimensionName"lhsDimensionName), LocatorUtils.property(rightLocator"dimensionName"rhsDimensionName), lhsDimensionNamerhsDimensionName));
                target.setDimensionName(mergedDimensionName);
            }
            {
                IntegerPropertyType lhsDimensionSize;
                lhsDimensionSize = leftObject.getDimensionSize();
                IntegerPropertyType rhsDimensionSize;
                rhsDimensionSize = rightObject.getDimensionSize();
                IntegerPropertyType mergedDimensionSize = ((IntegerPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"dimensionSize"lhsDimensionSize), LocatorUtils.property(rightLocator"dimensionSize"rhsDimensionSize), lhsDimensionSizerhsDimensionSize));
                target.setDimensionSize(mergedDimensionSize);
            }
            {
                MeasurePropertyType lhsResolution;
                lhsResolution = leftObject.getResolution();
                MeasurePropertyType rhsResolution;
                rhsResolution = rightObject.getResolution();
                MeasurePropertyType mergedResolution = ((MeasurePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"resolution"lhsResolution), LocatorUtils.property(rightLocator"resolution"rhsResolution), lhsResolutionrhsResolution));
                target.setResolution(mergedResolution);
            }
        }
    }
        setDimensionName(value);
        return this;
    }
        setDimensionSize(value);
        return this;
    }
        setResolution(value);
        return this;
    }
    @Override
    public MDDimensionType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDDimensionType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X