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, vhudson-jaxb-ri-2.1-2 
  // 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: 2010.09.03 at 10:11:56 AM MESZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
This type is used as a unit of measure for ADTs only, it's not used by the GML3 geometry. This will be a point for future work of harmonization.

Java class for AngleType complex type.

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

 <complexType name="AngleType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractMeasureType">
       <attribute name="uom" type="{http://www.w3.org/2001/XMLSchema}string" fixed="DecimalDegrees" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AngleType")
 public class AngleType
     extends AbstractMeasureType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "uom")
     protected String uom;

    
Gets the value of the uom property.

Returns:
possible object is
 
     public String getUom() {
         if ( == null) {
             return "DecimalDegrees";
         } else {
             return ;
         }
     }

    
Sets the value of the uom property.

Parameters:
value allowed object is
 
     public void setUom(String 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);
        {
            String theUom;
            theUom = this.getUom();
            strategy.appendField(locatorthis"uom"buffertheUom);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AngleType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final AngleType that = ((AngleTypeobject);
        {
            String lhsUom;
            lhsUom = this.getUom();
            String rhsUom;
            rhsUom = that.getUom();
            if (!strategy.equals(LocatorUtils.property(thisLocator"uom"lhsUom), LocatorUtils.property(thatLocator"uom"rhsUom), lhsUomrhsUom)) {
                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);
        {
            String theUom;
            theUom = this.getUom();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"uom"theUom), currentHashCodetheUom);
        }
        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 AngleType) {
            final AngleType copy = ((AngleTypedraftCopy);
            if (this.!= null) {
                String sourceUom;
                sourceUom = this.getUom();
                String copyUom = ((Stringstrategy.copy(LocatorUtils.property(locator"uom"sourceUom), sourceUom));
                copy.setUom(copyUom);
            } else {
                copy.uom = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new AngleType();
    }
    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 AngleType) {
            final AngleType target = this;
            final AngleType leftObject = ((AngleTypeleft);
            final AngleType rightObject = ((AngleTyperight);
            {
                String lhsUom;
                lhsUom = leftObject.getUom();
                String rhsUom;
                rhsUom = rightObject.getUom();
                target.setUom(((Stringstrategy.merge(LocatorUtils.property(leftLocator"uom"lhsUom), LocatorUtils.property(rightLocator"uom"rhsUom), lhsUomrhsUom)));
            }
        }
    }
New to GrepCode? Check out our FAQ X