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 AbstractMSIDsType complex type.

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

 <complexType name="AbstractMSIDsType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="session">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="APN"/>
             <enumeration value="DIAL"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractMSIDsType")
     OutputMSIDsType.class,
     InputMSIDsType.class
 })
 public class AbstractMSIDsType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "session")
     protected String session;

    
Gets the value of the session property.

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

    
Sets the value of the session property.

Parameters:
value allowed object is
 
     public void setSession(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) {
        {
            String theSession;
            theSession = this.getSession();
            strategy.appendField(locatorthis"session"buffertheSession);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractMSIDsType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final AbstractMSIDsType that = ((AbstractMSIDsTypeobject);
        {
            String lhsSession;
            lhsSession = this.getSession();
            String rhsSession;
            rhsSession = that.getSession();
            if (!strategy.equals(LocatorUtils.property(thisLocator"session"lhsSession), LocatorUtils.property(thatLocator"session"rhsSession), lhsSessionrhsSession)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            String theSession;
            theSession = this.getSession();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"session"theSession), currentHashCodetheSession);
        }
        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 AbstractMSIDsType) {
            final AbstractMSIDsType copy = ((AbstractMSIDsTypedraftCopy);
            if (this.!= null) {
                String sourceSession;
                sourceSession = this.getSession();
                String copySession = ((Stringstrategy.copy(LocatorUtils.property(locator"session"sourceSession), sourceSession));
                copy.setSession(copySession);
            } else {
                copy.session = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new AbstractMSIDsType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof AbstractMSIDsType) {
            final AbstractMSIDsType target = this;
            final AbstractMSIDsType leftObject = ((AbstractMSIDsTypeleft);
            final AbstractMSIDsType rightObject = ((AbstractMSIDsTyperight);
            {
                String lhsSession;
                lhsSession = leftObject.getSession();
                String rhsSession;
                rhsSession = rightObject.getSession();
                target.setSession(((Stringstrategy.merge(LocatorUtils.property(leftLocator"session"lhsSession), LocatorUtils.property(rightLocator"session"rhsSession), lhsSessionrhsSession)));
            }
        }
    }
New to GrepCode? Check out our FAQ X