Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 01:29:25 AM CET 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java-Klasse für SpeedType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 <complexType name="SpeedType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractMeasureType">
       <attribute name="uom" type="{http://www.opengis.net/xls}SpeedUnitType" default="KPH" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SpeedType")
 public class SpeedType
     extends AbstractMeasureType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "uom")
     protected SpeedUnitType uom;

    
Ruft den Wert der uom-Eigenschaft ab.

Returns:
possible object is
 
     public SpeedUnitType getUom() {
         if ( == null) {
             return .;
         } else {
             return ;
         }
     }

    
Legt den Wert der uom-Eigenschaft fest.

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