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: 2011.02.20 at 01:29:24 PM MEZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java class for OutputMSInformationType complex type.

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

 <complexType name="OutputMSInformationType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractMSInformationType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}Position"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "OutputMSInformationType", propOrder = {
     "position"
 })
 public class OutputMSInformationType
     extends AbstractMSInformationType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Position", required = true)
     protected PositionType position;

    
Gets the value of the position property.

Returns:
possible object is
 
     public PositionType getPosition() {
         return ;
     }

    
Sets the value of the position property.

Parameters:
value allowed object is
 
     public void setPosition(PositionType 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);
        {
            PositionType thePosition;
            thePosition = this.getPosition();
            strategy.appendField(locatorthis"position"bufferthePosition);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof OutputMSInformationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final OutputMSInformationType that = ((OutputMSInformationTypeobject);
        {
            PositionType lhsPosition;
            lhsPosition = this.getPosition();
            PositionType rhsPosition;
            rhsPosition = that.getPosition();
            if (!strategy.equals(LocatorUtils.property(thisLocator"position"lhsPosition), LocatorUtils.property(thatLocator"position"rhsPosition), lhsPositionrhsPosition)) {
                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);
        {
            PositionType thePosition;
            thePosition = this.getPosition();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"position"thePosition), currentHashCodethePosition);
        }
        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 OutputMSInformationType) {
            final OutputMSInformationType copy = ((OutputMSInformationTypedraftCopy);
            if (this.!= null) {
                PositionType sourcePosition;
                sourcePosition = this.getPosition();
                PositionType copyPosition = ((PositionTypestrategy.copy(LocatorUtils.property(locator"position"sourcePosition), sourcePosition));
                copy.setPosition(copyPosition);
            } else {
                copy.position = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new OutputMSInformationType();
    }
    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 OutputMSInformationType) {
            final OutputMSInformationType target = this;
            final OutputMSInformationType leftObject = ((OutputMSInformationTypeleft);
            final OutputMSInformationType rightObject = ((OutputMSInformationTyperight);
            {
                PositionType lhsPosition;
                lhsPosition = leftObject.getPosition();
                PositionType rhsPosition;
                rhsPosition = rightObject.getPosition();
                target.setPosition(((PositionTypestrategy.merge(LocatorUtils.property(leftLocator"position"lhsPosition), LocatorUtils.property(rightLocator"position"rhsPosition), lhsPositionrhsPosition)));
            }
        }
    }
New to GrepCode? Check out our FAQ X