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;
 
Set of adjacent wavelengths in the electro-magnetic spectrum with a common characteristic, such as the visible band

Java class for MD_RangeDimension_Type complex type.

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

 <complexType name="MD_RangeDimension_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="sequenceIdentifier" type="{http://www.isotc211.org/2005/gco}MemberName_PropertyType" minOccurs="0"/>
         <element name="descriptor" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_RangeDimension_Type", propOrder = {
     "sequenceIdentifier",
     "descriptor"
 })
     MDBandType.class
 })
 public class MDRangeDimensionType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected CharacterStringPropertyType descriptor;

    
Gets the value of the sequenceIdentifier property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the sequenceIdentifier property.

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

    
Gets the value of the descriptor property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the descriptor property.

Parameters:
value allowed object is
    public void setDescriptor(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) {
        super.appendFields(locatorbufferstrategy);
        {
            MemberNamePropertyType theSequenceIdentifier;
            theSequenceIdentifier = this.getSequenceIdentifier();
            strategy.appendField(locatorthis"sequenceIdentifier"buffertheSequenceIdentifier);
        }
        {
            CharacterStringPropertyType theDescriptor;
            theDescriptor = this.getDescriptor();
            strategy.appendField(locatorthis"descriptor"buffertheDescriptor);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDRangeDimensionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDRangeDimensionType that = ((MDRangeDimensionTypeobject);
        {
            MemberNamePropertyType lhsSequenceIdentifier;
            lhsSequenceIdentifier = this.getSequenceIdentifier();
            MemberNamePropertyType rhsSequenceIdentifier;
            rhsSequenceIdentifier = that.getSequenceIdentifier();
            if (!strategy.equals(LocatorUtils.property(thisLocator"sequenceIdentifier"lhsSequenceIdentifier), LocatorUtils.property(thatLocator"sequenceIdentifier"rhsSequenceIdentifier), lhsSequenceIdentifierrhsSequenceIdentifier)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsDescriptor;
            lhsDescriptor = this.getDescriptor();
            CharacterStringPropertyType rhsDescriptor;
            rhsDescriptor = that.getDescriptor();
            if (!strategy.equals(LocatorUtils.property(thisLocator"descriptor"lhsDescriptor), LocatorUtils.property(thatLocator"descriptor"rhsDescriptor), lhsDescriptorrhsDescriptor)) {
                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);
        {
            MemberNamePropertyType theSequenceIdentifier;
            theSequenceIdentifier = this.getSequenceIdentifier();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"sequenceIdentifier"theSequenceIdentifier), currentHashCodetheSequenceIdentifier);
        }
        {
            CharacterStringPropertyType theDescriptor;
            theDescriptor = this.getDescriptor();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"descriptor"theDescriptor), currentHashCodetheDescriptor);
        }
        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 MDRangeDimensionType) {
            final MDRangeDimensionType copy = ((MDRangeDimensionTypedraftCopy);
            if (this.!= null) {
                MemberNamePropertyType sourceSequenceIdentifier;
                sourceSequenceIdentifier = this.getSequenceIdentifier();
                MemberNamePropertyType copySequenceIdentifier = ((MemberNamePropertyTypestrategy.copy(LocatorUtils.property(locator"sequenceIdentifier"sourceSequenceIdentifier), sourceSequenceIdentifier));
                copy.setSequenceIdentifier(copySequenceIdentifier);
            } else {
                copy.sequenceIdentifier = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceDescriptor;
                sourceDescriptor = this.getDescriptor();
                CharacterStringPropertyType copyDescriptor = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"descriptor"sourceDescriptor), sourceDescriptor));
                copy.setDescriptor(copyDescriptor);
            } else {
                copy.descriptor = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDRangeDimensionType();
    }
    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 MDRangeDimensionType) {
            final MDRangeDimensionType target = this;
            final MDRangeDimensionType leftObject = ((MDRangeDimensionTypeleft);
            final MDRangeDimensionType rightObject = ((MDRangeDimensionTyperight);
            {
                MemberNamePropertyType lhsSequenceIdentifier;
                lhsSequenceIdentifier = leftObject.getSequenceIdentifier();
                MemberNamePropertyType rhsSequenceIdentifier;
                rhsSequenceIdentifier = rightObject.getSequenceIdentifier();
                MemberNamePropertyType mergedSequenceIdentifier = ((MemberNamePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"sequenceIdentifier"lhsSequenceIdentifier), LocatorUtils.property(rightLocator"sequenceIdentifier"rhsSequenceIdentifier), lhsSequenceIdentifierrhsSequenceIdentifier));
                target.setSequenceIdentifier(mergedSequenceIdentifier);
            }
            {
                CharacterStringPropertyType lhsDescriptor;
                lhsDescriptor = leftObject.getDescriptor();
                CharacterStringPropertyType rhsDescriptor;
                rhsDescriptor = rightObject.getDescriptor();
                CharacterStringPropertyType mergedDescriptor = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"descriptor"lhsDescriptor), LocatorUtils.property(rightLocator"descriptor"rhsDescriptor), lhsDescriptorrhsDescriptor));
                target.setDescriptor(mergedDescriptor);
            }
        }
    }
        setSequenceIdentifier(value);
        return this;
    }
        setDescriptor(value);
        return this;
    }
    @Override
    public MDRangeDimensionType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDRangeDimensionType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X