Tim Gmane se proiznese na 25.11.2004 17:42:

Please post the Java class you are trying to expose. I realize it may contain proprietary information, so you should try writing a simple example that reproduces the problem or posting snippets from the bean that has the CPF attribute ...

Not a problem. Here it is..

--
Viktor [sparks et on tochka net tochka mk]

"Daj bidi originalen:)" - Oli
/**
 * TipoParametar.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2RC1 Sep 29, 2004 (08:29:40 EDT) WSDL2Java emitter.
 */

package BTDtipovi;

public class TipoParametar  implements java.io.Serializable {
    private java.lang.String NOMECOMPLETO;  // attribute
    private java.lang.String CPF;  // attribute
    private java.lang.String NACIONALIDADE;  // attribute
    private java.lang.String DATANASCIMENTO;  // attribute
    private BTDtipovi._TipoParametar_SEXO SEXO;  // attribute

    public TipoParametar() {
    }

    public TipoParametar(
           java.lang.String NOMECOMPLETO,
           java.lang.String CPF,
           java.lang.String NACIONALIDADE,
           java.lang.String DATANASCIMENTO,
           BTDtipovi._TipoParametar_SEXO SEXO) {
           this.NOMECOMPLETO = NOMECOMPLETO;
           this.CPF = CPF;
           this.NACIONALIDADE = NACIONALIDADE;
           this.DATANASCIMENTO = DATANASCIMENTO;
           this.SEXO = SEXO;
    }


    /**
     * Gets the NOMECOMPLETO value for this TipoParametar.
     * 
     * @return NOMECOMPLETO
     */
    public java.lang.String getNOMECOMPLETO() {
        return NOMECOMPLETO;
    }


    /**
     * Sets the NOMECOMPLETO value for this TipoParametar.
     * 
     * @param NOMECOMPLETO
     */
    public void setNOMECOMPLETO(java.lang.String NOMECOMPLETO) {
        this.NOMECOMPLETO = NOMECOMPLETO;
    }


    /**
     * Gets the CPF value for this TipoParametar.
     * 
     * @return CPF
     */
    public java.lang.String getCPF() {
        return CPF;
    }


    /**
     * Sets the CPF value for this TipoParametar.
     * 
     * @param CPF
     */
    public void setCPF(java.lang.String CPF) {
        this.CPF = CPF;
    }


    /**
     * Gets the NACIONALIDADE value for this TipoParametar.
     * 
     * @return NACIONALIDADE
     */
    public java.lang.String getNACIONALIDADE() {
        return NACIONALIDADE;
    }


    /**
     * Sets the NACIONALIDADE value for this TipoParametar.
     * 
     * @param NACIONALIDADE
     */
    public void setNACIONALIDADE(java.lang.String NACIONALIDADE) {
        this.NACIONALIDADE = NACIONALIDADE;
    }


    /**
     * Gets the DATANASCIMENTO value for this TipoParametar.
     * 
     * @return DATANASCIMENTO
     */
    public java.lang.String getDATANASCIMENTO() {
        return DATANASCIMENTO;
    }


    /**
     * Sets the DATANASCIMENTO value for this TipoParametar.
     * 
     * @param DATANASCIMENTO
     */
    public void setDATANASCIMENTO(java.lang.String DATANASCIMENTO) {
        this.DATANASCIMENTO = DATANASCIMENTO;
    }


    /**
     * Gets the SEXO value for this TipoParametar.
     * 
     * @return SEXO
     */
    public BTDtipovi._TipoParametar_SEXO getSEXO() {
        return SEXO;
    }


    /**
     * Sets the SEXO value for this TipoParametar.
     * 
     * @param SEXO
     */
    public void setSEXO(BTDtipovi._TipoParametar_SEXO SEXO) {
        this.SEXO = SEXO;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof TipoParametar)) return false;
        TipoParametar other = (TipoParametar) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.NOMECOMPLETO==null && other.getNOMECOMPLETO()==null) || 
             (this.NOMECOMPLETO!=null &&
              this.NOMECOMPLETO.equals(other.getNOMECOMPLETO()))) &&
            ((this.CPF==null && other.getCPF()==null) || 
             (this.CPF!=null &&
              this.CPF.equals(other.getCPF()))) &&
            ((this.NACIONALIDADE==null && other.getNACIONALIDADE()==null) || 
             (this.NACIONALIDADE!=null &&
              this.NACIONALIDADE.equals(other.getNACIONALIDADE()))) &&
            ((this.DATANASCIMENTO==null && other.getDATANASCIMENTO()==null) || 
             (this.DATANASCIMENTO!=null &&
              this.DATANASCIMENTO.equals(other.getDATANASCIMENTO()))) &&
            ((this.SEXO==null && other.getSEXO()==null) || 
             (this.SEXO!=null &&
              this.SEXO.equals(other.getSEXO())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getNOMECOMPLETO() != null) {
            _hashCode += getNOMECOMPLETO().hashCode();
        }
        if (getCPF() != null) {
            _hashCode += getCPF().hashCode();
        }
        if (getNACIONALIDADE() != null) {
            _hashCode += getNACIONALIDADE().hashCode();
        }
        if (getDATANASCIMENTO() != null) {
            _hashCode += getDATANASCIMENTO().hashCode();
        }
        if (getSEXO() != null) {
            _hashCode += getSEXO().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(TipoParametar.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("urn:BTDtipovi", "TipoParametar"));
        org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("NOMECOMPLETO");
        attrField.setXmlName(new javax.xml.namespace.QName("", "NOME-COMPLETO"));
        attrField.setXmlType(new javax.xml.namespace.QName("urn:BTDtipovi", "string60"));
        typeDesc.addFieldDesc(attrField);
        attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("CPF");
        attrField.setXmlName(new javax.xml.namespace.QName("", "CPF"));
        attrField.setXmlType(new javax.xml.namespace.QName("urn:BTDtipovi", "string11"));
        typeDesc.addFieldDesc(attrField);
        attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("NACIONALIDADE");
        attrField.setXmlName(new javax.xml.namespace.QName("", "NACIONALIDADE"));
        attrField.setXmlType(new javax.xml.namespace.QName("urn:BTDtipovi", "string30"));
        typeDesc.addFieldDesc(attrField);
        attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("DATANASCIMENTO");
        attrField.setXmlName(new javax.xml.namespace.QName("", "DATA-NASCIMENTO"));
        attrField.setXmlType(new javax.xml.namespace.QName("urn:BTDtipovi", "data"));
        typeDesc.addFieldDesc(attrField);
        attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("SEXO");
        attrField.setXmlName(new javax.xml.namespace.QName("", "SEXO"));
        attrField.setXmlType(new javax.xml.namespace.QName("urn:BTDtipovi", ">TipoParametar>SEXO"));
        typeDesc.addFieldDesc(attrField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}

Reply via email to