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;
 
A type of AbstractStreetLocatorType

Java-Klasse für BuildingLocatorType complex type.

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

 <complexType name="BuildingLocatorType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractStreetLocatorType">
       <attribute name="number" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="subdivision" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="buildingName" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "BuildingLocatorType")
 public class BuildingLocatorType
     extends AbstractStreetLocatorType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "number")
     protected String number;
     @XmlAttribute(name = "subdivision")
     protected String subdivision;
     @XmlAttribute(name = "buildingName")
     protected String buildingName;

    
Ruft den Wert der number-Eigenschaft ab.

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

    
Legt den Wert der number-Eigenschaft fest.

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

    
Ruft den Wert der subdivision-Eigenschaft ab.

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

    
Legt den Wert der subdivision-Eigenschaft fest.

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

    
Ruft den Wert der buildingName-Eigenschaft ab.

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

    
Legt den Wert der buildingName-Eigenschaft fest.

Parameters:
value allowed object is
    public void setBuildingName(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 theNumber;
            theNumber = this.getNumber();
            strategy.appendField(locatorthis"number"buffertheNumber);
        }
        {
            String theSubdivision;
            theSubdivision = this.getSubdivision();
            strategy.appendField(locatorthis"subdivision"buffertheSubdivision);
        }
        {
            String theBuildingName;
            theBuildingName = this.getBuildingName();
            strategy.appendField(locatorthis"buildingName"buffertheBuildingName);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof BuildingLocatorType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final BuildingLocatorType that = ((BuildingLocatorTypeobject);
        {
            String lhsNumber;
            lhsNumber = this.getNumber();
            String rhsNumber;
            rhsNumber = that.getNumber();
            if (!strategy.equals(LocatorUtils.property(thisLocator"number"lhsNumber), LocatorUtils.property(thatLocator"number"rhsNumber), lhsNumberrhsNumber)) {
                return false;
            }
        }
        {
            String lhsSubdivision;
            lhsSubdivision = this.getSubdivision();
            String rhsSubdivision;
            rhsSubdivision = that.getSubdivision();
            if (!strategy.equals(LocatorUtils.property(thisLocator"subdivision"lhsSubdivision), LocatorUtils.property(thatLocator"subdivision"rhsSubdivision), lhsSubdivisionrhsSubdivision)) {
                return false;
            }
        }
        {
            String lhsBuildingName;
            lhsBuildingName = this.getBuildingName();
            String rhsBuildingName;
            rhsBuildingName = that.getBuildingName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"buildingName"lhsBuildingName), LocatorUtils.property(thatLocator"buildingName"rhsBuildingName), lhsBuildingNamerhsBuildingName)) {
                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 theNumber;
            theNumber = this.getNumber();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"number"theNumber), currentHashCodetheNumber);
        }
        {
            String theSubdivision;
            theSubdivision = this.getSubdivision();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"subdivision"theSubdivision), currentHashCodetheSubdivision);
        }
        {
            String theBuildingName;
            theBuildingName = this.getBuildingName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"buildingName"theBuildingName), currentHashCodetheBuildingName);
        }
        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 BuildingLocatorType) {
            final BuildingLocatorType copy = ((BuildingLocatorTypedraftCopy);
            if (this.!= null) {
                String sourceNumber;
                sourceNumber = this.getNumber();
                String copyNumber = ((Stringstrategy.copy(LocatorUtils.property(locator"number"sourceNumber), sourceNumber));
                copy.setNumber(copyNumber);
            } else {
                copy.number = null;
            }
            if (this.!= null) {
                String sourceSubdivision;
                sourceSubdivision = this.getSubdivision();
                String copySubdivision = ((Stringstrategy.copy(LocatorUtils.property(locator"subdivision"sourceSubdivision), sourceSubdivision));
                copy.setSubdivision(copySubdivision);
            } else {
                copy.subdivision = null;
            }
            if (this.!= null) {
                String sourceBuildingName;
                sourceBuildingName = this.getBuildingName();
                String copyBuildingName = ((Stringstrategy.copy(LocatorUtils.property(locator"buildingName"sourceBuildingName), sourceBuildingName));
                copy.setBuildingName(copyBuildingName);
            } else {
                copy.buildingName = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new BuildingLocatorType();
    }
    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 BuildingLocatorType) {
            final BuildingLocatorType target = this;
            final BuildingLocatorType leftObject = ((BuildingLocatorTypeleft);
            final BuildingLocatorType rightObject = ((BuildingLocatorTyperight);
            {
                String lhsNumber;
                lhsNumber = leftObject.getNumber();
                String rhsNumber;
                rhsNumber = rightObject.getNumber();
                target.setNumber(((Stringstrategy.merge(LocatorUtils.property(leftLocator"number"lhsNumber), LocatorUtils.property(rightLocator"number"rhsNumber), lhsNumberrhsNumber)));
            }
            {
                String lhsSubdivision;
                lhsSubdivision = leftObject.getSubdivision();
                String rhsSubdivision;
                rhsSubdivision = rightObject.getSubdivision();
                target.setSubdivision(((Stringstrategy.merge(LocatorUtils.property(leftLocator"subdivision"lhsSubdivision), LocatorUtils.property(rightLocator"subdivision"rhsSubdivision), lhsSubdivisionrhsSubdivision)));
            }
            {
                String lhsBuildingName;
                lhsBuildingName = leftObject.getBuildingName();
                String rhsBuildingName;
                rhsBuildingName = rightObject.getBuildingName();
                target.setBuildingName(((Stringstrategy.merge(LocatorUtils.property(leftLocator"buildingName"lhsBuildingName), LocatorUtils.property(rightLocator"buildingName"rhsBuildingName), lhsBuildingNamerhsBuildingName)));
            }
        }
    }
New to GrepCode? Check out our FAQ X