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

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

 <complexType name="AbstractMSInformationType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="msIDType" default="MSISDN">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="MSISDN"/>
             <enumeration value="MIN"/>
             <enumeration value="IMSI"/>
             <enumeration value="IMEI"/>
             <enumeration value="MDN"/>
             <enumeration value="EME_MSID"/>
             <enumeration value="IPV4"/>
             <enumeration value="IPV6"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="msIDValue" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="encryption" default="ASC">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="ASC"/>
             <enumeration value="B64"/>
             <enumeration value="CRP"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractMSInformationType")
     OutputMSInformationType.class,
     InputMSInformationType.class
 })
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "msIDType")
     protected String msIDType;
     @XmlAttribute(name = "msIDValue")
     protected String msIDValue;
     @XmlAttribute(name = "encryption")
     protected String encryption;

    
Gets the value of the msIDType property.

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

    
Sets the value of the msIDType property.

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

    
Gets the value of the msIDValue property.

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

    
Sets the value of the msIDValue property.

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

    
Gets the value of the encryption property.

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

    
Sets the value of the encryption property.

Parameters:
value allowed object is
    public void setEncryption(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 theMsIDType;
            theMsIDType = this.getMsIDType();
            strategy.appendField(locatorthis"msIDType"buffertheMsIDType);
        }
        {
            String theMsIDValue;
            theMsIDValue = this.getMsIDValue();
            strategy.appendField(locatorthis"msIDValue"buffertheMsIDValue);
        }
        {
            String theEncryption;
            theEncryption = this.getEncryption();
            strategy.appendField(locatorthis"encryption"buffertheEncryption);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractMSInformationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final AbstractMSInformationType that = ((AbstractMSInformationTypeobject);
        {
            String lhsMsIDType;
            lhsMsIDType = this.getMsIDType();
            String rhsMsIDType;
            rhsMsIDType = that.getMsIDType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"msIDType"lhsMsIDType), LocatorUtils.property(thatLocator"msIDType"rhsMsIDType), lhsMsIDTyperhsMsIDType)) {
                return false;
            }
        }
        {
            String lhsMsIDValue;
            lhsMsIDValue = this.getMsIDValue();
            String rhsMsIDValue;
            rhsMsIDValue = that.getMsIDValue();
            if (!strategy.equals(LocatorUtils.property(thisLocator"msIDValue"lhsMsIDValue), LocatorUtils.property(thatLocator"msIDValue"rhsMsIDValue), lhsMsIDValuerhsMsIDValue)) {
                return false;
            }
        }
        {
            String lhsEncryption;
            lhsEncryption = this.getEncryption();
            String rhsEncryption;
            rhsEncryption = that.getEncryption();
            if (!strategy.equals(LocatorUtils.property(thisLocator"encryption"lhsEncryption), LocatorUtils.property(thatLocator"encryption"rhsEncryption), lhsEncryptionrhsEncryption)) {
                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 theMsIDType;
            theMsIDType = this.getMsIDType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"msIDType"theMsIDType), currentHashCodetheMsIDType);
        }
        {
            String theMsIDValue;
            theMsIDValue = this.getMsIDValue();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"msIDValue"theMsIDValue), currentHashCodetheMsIDValue);
        }
        {
            String theEncryption;
            theEncryption = this.getEncryption();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"encryption"theEncryption), currentHashCodetheEncryption);
        }
        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 AbstractMSInformationType) {
            final AbstractMSInformationType copy = ((AbstractMSInformationTypedraftCopy);
            if (this.!= null) {
                String sourceMsIDType;
                sourceMsIDType = this.getMsIDType();
                String copyMsIDType = ((Stringstrategy.copy(LocatorUtils.property(locator"msIDType"sourceMsIDType), sourceMsIDType));
                copy.setMsIDType(copyMsIDType);
            } else {
                copy.msIDType = null;
            }
            if (this.!= null) {
                String sourceMsIDValue;
                sourceMsIDValue = this.getMsIDValue();
                String copyMsIDValue = ((Stringstrategy.copy(LocatorUtils.property(locator"msIDValue"sourceMsIDValue), sourceMsIDValue));
                copy.setMsIDValue(copyMsIDValue);
            } else {
                copy.msIDValue = null;
            }
            if (this.!= null) {
                String sourceEncryption;
                sourceEncryption = this.getEncryption();
                String copyEncryption = ((Stringstrategy.copy(LocatorUtils.property(locator"encryption"sourceEncryption), sourceEncryption));
                copy.setEncryption(copyEncryption);
            } else {
                copy.encryption = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new AbstractMSInformationType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof AbstractMSInformationType) {
            final AbstractMSInformationType target = this;
            final AbstractMSInformationType leftObject = ((AbstractMSInformationTypeleft);
            final AbstractMSInformationType rightObject = ((AbstractMSInformationTyperight);
            {
                String lhsMsIDType;
                lhsMsIDType = leftObject.getMsIDType();
                String rhsMsIDType;
                rhsMsIDType = rightObject.getMsIDType();
                target.setMsIDType(((Stringstrategy.merge(LocatorUtils.property(leftLocator"msIDType"lhsMsIDType), LocatorUtils.property(rightLocator"msIDType"rhsMsIDType), lhsMsIDTyperhsMsIDType)));
            }
            {
                String lhsMsIDValue;
                lhsMsIDValue = leftObject.getMsIDValue();
                String rhsMsIDValue;
                rhsMsIDValue = rightObject.getMsIDValue();
                target.setMsIDValue(((Stringstrategy.merge(LocatorUtils.property(leftLocator"msIDValue"lhsMsIDValue), LocatorUtils.property(rightLocator"msIDValue"rhsMsIDValue), lhsMsIDValuerhsMsIDValue)));
            }
            {
                String lhsEncryption;
                lhsEncryption = leftObject.getEncryption();
                String rhsEncryption;
                rhsEncryption = rightObject.getEncryption();
                target.setEncryption(((Stringstrategy.merge(LocatorUtils.property(leftLocator"encryption"lhsEncryption), LocatorUtils.property(rightLocator"encryption"rhsEncryption), lhsEncryptionrhsEncryption)));
            }
        }
    }
New to GrepCode? Check out our FAQ X