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;
 
Quality of service type

Java-Klasse für GeocodingQOSType complex type.

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

 <complexType name="GeocodingQOSType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="accuracy" type="{http://www.w3.org/2001/XMLSchema}float" />
       <attribute name="matchType" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "GeocodingQOSType")
 public class GeocodingQOSType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "accuracy")
     protected Float accuracy;
     @XmlAttribute(name = "matchType")
     protected String matchType;

    
Ruft den Wert der accuracy-Eigenschaft ab.

Returns:
possible object is
 
     public Float getAccuracy() {
         return ;
     }

    
Legt den Wert der accuracy-Eigenschaft fest.

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

    
Ruft den Wert der matchType-Eigenschaft ab.

Returns:
possible object is
 
     public String getMatchType() {
         return ;
     }

    
Legt den Wert der matchType-Eigenschaft fest.

Parameters:
value allowed object is
    public void setMatchType(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) {
        {
            Float theAccuracy;
            theAccuracy = this.getAccuracy();
            strategy.appendField(locatorthis"accuracy"buffertheAccuracy);
        }
        {
            String theMatchType;
            theMatchType = this.getMatchType();
            strategy.appendField(locatorthis"matchType"buffertheMatchType);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof GeocodingQOSType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final GeocodingQOSType that = ((GeocodingQOSTypeobject);
        {
            Float lhsAccuracy;
            lhsAccuracy = this.getAccuracy();
            Float rhsAccuracy;
            rhsAccuracy = that.getAccuracy();
            if (!strategy.equals(LocatorUtils.property(thisLocator"accuracy"lhsAccuracy), LocatorUtils.property(thatLocator"accuracy"rhsAccuracy), lhsAccuracyrhsAccuracy)) {
                return false;
            }
        }
        {
            String lhsMatchType;
            lhsMatchType = this.getMatchType();
            String rhsMatchType;
            rhsMatchType = that.getMatchType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"matchType"lhsMatchType), LocatorUtils.property(thatLocator"matchType"rhsMatchType), lhsMatchTyperhsMatchType)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            Float theAccuracy;
            theAccuracy = this.getAccuracy();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"accuracy"theAccuracy), currentHashCodetheAccuracy);
        }
        {
            String theMatchType;
            theMatchType = this.getMatchType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"matchType"theMatchType), currentHashCodetheMatchType);
        }
        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);
        if (draftCopy instanceof GeocodingQOSType) {
            final GeocodingQOSType copy = ((GeocodingQOSTypedraftCopy);
            if (this.!= null) {
                Float sourceAccuracy;
                sourceAccuracy = this.getAccuracy();
                Float copyAccuracy = ((Floatstrategy.copy(LocatorUtils.property(locator"accuracy"sourceAccuracy), sourceAccuracy));
                copy.setAccuracy(copyAccuracy);
            } else {
                copy.accuracy = null;
            }
            if (this.!= null) {
                String sourceMatchType;
                sourceMatchType = this.getMatchType();
                String copyMatchType = ((Stringstrategy.copy(LocatorUtils.property(locator"matchType"sourceMatchType), sourceMatchType));
                copy.setMatchType(copyMatchType);
            } else {
                copy.matchType = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new GeocodingQOSType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof GeocodingQOSType) {
            final GeocodingQOSType target = this;
            final GeocodingQOSType leftObject = ((GeocodingQOSTypeleft);
            final GeocodingQOSType rightObject = ((GeocodingQOSTyperight);
            {
                Float lhsAccuracy;
                lhsAccuracy = leftObject.getAccuracy();
                Float rhsAccuracy;
                rhsAccuracy = rightObject.getAccuracy();
                target.setAccuracy(((Floatstrategy.merge(LocatorUtils.property(leftLocator"accuracy"lhsAccuracy), LocatorUtils.property(rightLocator"accuracy"rhsAccuracy), lhsAccuracyrhsAccuracy)));
            }
            {
                String lhsMatchType;
                lhsMatchType = leftObject.getMatchType();
                String rhsMatchType;
                rhsMatchType = rightObject.getMatchType();
                target.setMatchType(((Stringstrategy.merge(LocatorUtils.property(leftLocator"matchType"lhsMatchType), LocatorUtils.property(rightLocator"matchType"rhsMatchType), lhsMatchTyperhsMatchType)));
            }
        }
    }
New to GrepCode? Check out our FAQ X