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_ReferenceSystem_Type complex type.

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

 <complexType name="MD_ReferenceSystem_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="referenceSystemIdentifier" type="{http://www.isotc211.org/2005/gmd}RS_Identifier_PropertyType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_ReferenceSystem_Type", propOrder = {
     "referenceSystemIdentifier"
 })
 public class MDReferenceSystemType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
Gets the value of the referenceSystemIdentifier property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the referenceSystemIdentifier property.

Parameters:
value allowed object is
 
     public void setReferenceSystemIdentifier(RSIdentifierPropertyType 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);
        {
            RSIdentifierPropertyType theReferenceSystemIdentifier;
            theReferenceSystemIdentifier = this.getReferenceSystemIdentifier();
            strategy.appendField(locatorthis"referenceSystemIdentifier"buffertheReferenceSystemIdentifier);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDReferenceSystemType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDReferenceSystemType that = ((MDReferenceSystemTypeobject);
        {
            RSIdentifierPropertyType lhsReferenceSystemIdentifier;
            lhsReferenceSystemIdentifier = this.getReferenceSystemIdentifier();
            RSIdentifierPropertyType rhsReferenceSystemIdentifier;
            rhsReferenceSystemIdentifier = that.getReferenceSystemIdentifier();
            if (!strategy.equals(LocatorUtils.property(thisLocator"referenceSystemIdentifier"lhsReferenceSystemIdentifier), LocatorUtils.property(thatLocator"referenceSystemIdentifier"rhsReferenceSystemIdentifier), lhsReferenceSystemIdentifierrhsReferenceSystemIdentifier)) {
                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);
        {
            RSIdentifierPropertyType theReferenceSystemIdentifier;
            theReferenceSystemIdentifier = this.getReferenceSystemIdentifier();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"referenceSystemIdentifier"theReferenceSystemIdentifier), currentHashCodetheReferenceSystemIdentifier);
        }
        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 MDReferenceSystemType) {
            final MDReferenceSystemType copy = ((MDReferenceSystemTypedraftCopy);
            if (this.!= null) {
                RSIdentifierPropertyType sourceReferenceSystemIdentifier;
                sourceReferenceSystemIdentifier = this.getReferenceSystemIdentifier();
                RSIdentifierPropertyType copyReferenceSystemIdentifier = ((RSIdentifierPropertyTypestrategy.copy(LocatorUtils.property(locator"referenceSystemIdentifier"sourceReferenceSystemIdentifier), sourceReferenceSystemIdentifier));
                copy.setReferenceSystemIdentifier(copyReferenceSystemIdentifier);
            } else {
                copy.referenceSystemIdentifier = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDReferenceSystemType();
    }
    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 MDReferenceSystemType) {
            final MDReferenceSystemType target = this;
            final MDReferenceSystemType leftObject = ((MDReferenceSystemTypeleft);
            final MDReferenceSystemType rightObject = ((MDReferenceSystemTyperight);
            {
                RSIdentifierPropertyType lhsReferenceSystemIdentifier;
                lhsReferenceSystemIdentifier = leftObject.getReferenceSystemIdentifier();
                RSIdentifierPropertyType rhsReferenceSystemIdentifier;
                rhsReferenceSystemIdentifier = rightObject.getReferenceSystemIdentifier();
                RSIdentifierPropertyType mergedReferenceSystemIdentifier = ((RSIdentifierPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"referenceSystemIdentifier"lhsReferenceSystemIdentifier), LocatorUtils.property(rightLocator"referenceSystemIdentifier"rhsReferenceSystemIdentifier), lhsReferenceSystemIdentifierrhsReferenceSystemIdentifier));
                target.setReferenceSystemIdentifier(mergedReferenceSystemIdentifier);
            }
        }
    }
        setReferenceSystemIdentifier(value);
        return this;
    }
    @Override
    public MDReferenceSystemType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDReferenceSystemType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X