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

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

 <complexType name="MD_RepresentativeFraction_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="denominator" type="{http://www.isotc211.org/2005/gco}Integer_PropertyType"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_RepresentativeFraction_Type", propOrder = {
     "denominator"
 })
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected IntegerPropertyType denominator;

    
Gets the value of the denominator property.

Returns:
possible object is
 
     public IntegerPropertyType getDenominator() {
         return ;
     }

    
Sets the value of the denominator property.

Parameters:
value allowed object is
 
     public void setDenominator(IntegerPropertyType 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);
        {
            IntegerPropertyType theDenominator;
            theDenominator = this.getDenominator();
            strategy.appendField(locatorthis"denominator"buffertheDenominator);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDRepresentativeFractionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDRepresentativeFractionType that = ((MDRepresentativeFractionTypeobject);
        {
            IntegerPropertyType lhsDenominator;
            lhsDenominator = this.getDenominator();
            IntegerPropertyType rhsDenominator;
            rhsDenominator = that.getDenominator();
            if (!strategy.equals(LocatorUtils.property(thisLocator"denominator"lhsDenominator), LocatorUtils.property(thatLocator"denominator"rhsDenominator), lhsDenominatorrhsDenominator)) {
                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);
        {
            IntegerPropertyType theDenominator;
            theDenominator = this.getDenominator();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"denominator"theDenominator), currentHashCodetheDenominator);
        }
        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 MDRepresentativeFractionType) {
            final MDRepresentativeFractionType copy = ((MDRepresentativeFractionTypedraftCopy);
            if (this.!= null) {
                IntegerPropertyType sourceDenominator;
                sourceDenominator = this.getDenominator();
                IntegerPropertyType copyDenominator = ((IntegerPropertyTypestrategy.copy(LocatorUtils.property(locator"denominator"sourceDenominator), sourceDenominator));
                copy.setDenominator(copyDenominator);
            } else {
                copy.denominator = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDRepresentativeFractionType();
    }
    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 MDRepresentativeFractionType) {
            final MDRepresentativeFractionType target = this;
            final MDRepresentativeFractionType leftObject = ((MDRepresentativeFractionTypeleft);
            final MDRepresentativeFractionType rightObject = ((MDRepresentativeFractionTyperight);
            {
                IntegerPropertyType lhsDenominator;
                lhsDenominator = leftObject.getDenominator();
                IntegerPropertyType rhsDenominator;
                rhsDenominator = rightObject.getDenominator();
                IntegerPropertyType mergedDenominator = ((IntegerPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"denominator"lhsDenominator), LocatorUtils.property(rightLocator"denominator"rhsDenominator), lhsDenominatorrhsDenominator));
                target.setDenominator(mergedDenominator);
            }
        }
    }
        setDenominator(value);
        return this;
    }
    @Override
    public MDRepresentativeFractionType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDRepresentativeFractionType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X