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;
 

Java class for AbstractGatewayParametersType complex type.

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

 <complexType name="AbstractGatewayParametersType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="RequestedQoP" type="{http://www.opengis.net/xls}QualityOfPositionType" minOccurs="0"/>
       </sequence>
       <attribute name="locationType" default="CURRENT">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="CURRENT"/>
             <enumeration value="LAST"/>
             <enumeration value="CURRENT_OR_LAST"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="requestedsrsName" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
       <attribute name="priority" default="HIGH">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="NORMAL"/>
             <enumeration value="HIGH"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractGatewayParametersType", propOrder = {
     "requestedQoP"
 })
 })
 public abstract class AbstractGatewayParametersType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "RequestedQoP")
     protected QualityOfPositionType requestedQoP;
     @XmlAttribute(name = "locationType")
     protected String locationType;
     @XmlAttribute(name = "requestedsrsName")
     @XmlSchemaType(name = "anyURI")
     protected String requestedsrsName;
     @XmlAttribute(name = "priority")
     protected String priority;

    
Gets the value of the requestedQoP property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the requestedQoP property.

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

    
Gets the value of the locationType property.

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

    
Sets the value of the locationType property.

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

    
Gets the value of the requestedsrsName property.

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

    
Sets the value of the requestedsrsName property.

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

    
Gets the value of the priority property.

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

    
Sets the value of the priority property.

Parameters:
value allowed object is
    public void setPriority(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) {
        {
            QualityOfPositionType theRequestedQoP;
            theRequestedQoP = this.getRequestedQoP();
            strategy.appendField(locatorthis"requestedQoP"buffertheRequestedQoP);
        }
        {
            String theLocationType;
            theLocationType = this.getLocationType();
            strategy.appendField(locatorthis"locationType"buffertheLocationType);
        }
        {
            String theRequestedsrsName;
            theRequestedsrsName = this.getRequestedsrsName();
            strategy.appendField(locatorthis"requestedsrsName"buffertheRequestedsrsName);
        }
        {
            String thePriority;
            thePriority = this.getPriority();
            strategy.appendField(locatorthis"priority"bufferthePriority);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractGatewayParametersType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final AbstractGatewayParametersType that = ((AbstractGatewayParametersTypeobject);
        {
            QualityOfPositionType lhsRequestedQoP;
            lhsRequestedQoP = this.getRequestedQoP();
            QualityOfPositionType rhsRequestedQoP;
            rhsRequestedQoP = that.getRequestedQoP();
            if (!strategy.equals(LocatorUtils.property(thisLocator"requestedQoP"lhsRequestedQoP), LocatorUtils.property(thatLocator"requestedQoP"rhsRequestedQoP), lhsRequestedQoPrhsRequestedQoP)) {
                return false;
            }
        }
        {
            String lhsLocationType;
            lhsLocationType = this.getLocationType();
            String rhsLocationType;
            rhsLocationType = that.getLocationType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"locationType"lhsLocationType), LocatorUtils.property(thatLocator"locationType"rhsLocationType), lhsLocationTyperhsLocationType)) {
                return false;
            }
        }
        {
            String lhsRequestedsrsName;
            lhsRequestedsrsName = this.getRequestedsrsName();
            String rhsRequestedsrsName;
            rhsRequestedsrsName = that.getRequestedsrsName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"requestedsrsName"lhsRequestedsrsName), LocatorUtils.property(thatLocator"requestedsrsName"rhsRequestedsrsName), lhsRequestedsrsNamerhsRequestedsrsName)) {
                return false;
            }
        }
        {
            String lhsPriority;
            lhsPriority = this.getPriority();
            String rhsPriority;
            rhsPriority = that.getPriority();
            if (!strategy.equals(LocatorUtils.property(thisLocator"priority"lhsPriority), LocatorUtils.property(thatLocator"priority"rhsPriority), lhsPriorityrhsPriority)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            QualityOfPositionType theRequestedQoP;
            theRequestedQoP = this.getRequestedQoP();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"requestedQoP"theRequestedQoP), currentHashCodetheRequestedQoP);
        }
        {
            String theLocationType;
            theLocationType = this.getLocationType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"locationType"theLocationType), currentHashCodetheLocationType);
        }
        {
            String theRequestedsrsName;
            theRequestedsrsName = this.getRequestedsrsName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"requestedsrsName"theRequestedsrsName), currentHashCodetheRequestedsrsName);
        }
        {
            String thePriority;
            thePriority = this.getPriority();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"priority"thePriority), currentHashCodethePriority);
        }
        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) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        if (target instanceof AbstractGatewayParametersType) {
            final AbstractGatewayParametersType copy = ((AbstractGatewayParametersTypetarget);
            if (this.!= null) {
                QualityOfPositionType sourceRequestedQoP;
                sourceRequestedQoP = this.getRequestedQoP();
                QualityOfPositionType copyRequestedQoP = ((QualityOfPositionTypestrategy.copy(LocatorUtils.property(locator"requestedQoP"sourceRequestedQoP), sourceRequestedQoP));
                copy.setRequestedQoP(copyRequestedQoP);
            } else {
                copy.requestedQoP = null;
            }
            if (this.!= null) {
                String sourceLocationType;
                sourceLocationType = this.getLocationType();
                String copyLocationType = ((Stringstrategy.copy(LocatorUtils.property(locator"locationType"sourceLocationType), sourceLocationType));
                copy.setLocationType(copyLocationType);
            } else {
                copy.locationType = null;
            }
            if (this.!= null) {
                String sourceRequestedsrsName;
                sourceRequestedsrsName = this.getRequestedsrsName();
                String copyRequestedsrsName = ((Stringstrategy.copy(LocatorUtils.property(locator"requestedsrsName"sourceRequestedsrsName), sourceRequestedsrsName));
                copy.setRequestedsrsName(copyRequestedsrsName);
            } else {
                copy.requestedsrsName = null;
            }
            if (this.!= null) {
                String sourcePriority;
                sourcePriority = this.getPriority();
                String copyPriority = ((Stringstrategy.copy(LocatorUtils.property(locator"priority"sourcePriority), sourcePriority));
                copy.setPriority(copyPriority);
            } else {
                copy.priority = null;
            }
        }
        return target;
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof AbstractGatewayParametersType) {
            final AbstractGatewayParametersType target = this;
            final AbstractGatewayParametersType leftObject = ((AbstractGatewayParametersTypeleft);
            final AbstractGatewayParametersType rightObject = ((AbstractGatewayParametersTyperight);
            {
                QualityOfPositionType lhsRequestedQoP;
                lhsRequestedQoP = leftObject.getRequestedQoP();
                QualityOfPositionType rhsRequestedQoP;
                rhsRequestedQoP = rightObject.getRequestedQoP();
                target.setRequestedQoP(((QualityOfPositionTypestrategy.merge(LocatorUtils.property(leftLocator"requestedQoP"lhsRequestedQoP), LocatorUtils.property(rightLocator"requestedQoP"rhsRequestedQoP), lhsRequestedQoPrhsRequestedQoP)));
            }
            {
                String lhsLocationType;
                lhsLocationType = leftObject.getLocationType();
                String rhsLocationType;
                rhsLocationType = rightObject.getLocationType();
                target.setLocationType(((Stringstrategy.merge(LocatorUtils.property(leftLocator"locationType"lhsLocationType), LocatorUtils.property(rightLocator"locationType"rhsLocationType), lhsLocationTyperhsLocationType)));
            }
            {
                String lhsRequestedsrsName;
                lhsRequestedsrsName = leftObject.getRequestedsrsName();
                String rhsRequestedsrsName;
                rhsRequestedsrsName = rightObject.getRequestedsrsName();
                target.setRequestedsrsName(((Stringstrategy.merge(LocatorUtils.property(leftLocator"requestedsrsName"lhsRequestedsrsName), LocatorUtils.property(rightLocator"requestedsrsName"rhsRequestedsrsName), lhsRequestedsrsNamerhsRequestedsrsName)));
            }
            {
                String lhsPriority;
                lhsPriority = leftObject.getPriority();
                String rhsPriority;
                rhsPriority = rightObject.getPriority();
                target.setPriority(((Stringstrategy.merge(LocatorUtils.property(leftLocator"priority"lhsPriority), LocatorUtils.property(rightLocator"priority"rhsPriority), lhsPriorityrhsPriority)));
            }
        }
    }
New to GrepCode? Check out our FAQ X