/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
 * Schema.
 * $Id$
 */

package nz.co.cks.tms.xml;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import nz.co.cks.tms.xml.types.NcbAddressTypeType;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;

/**
 * Class NcbAddressType.
 * 
 * @version $Revision$ $Date$
 */
public abstract class NcbAddressType implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _selectedAddressType
     */
    private nz.co.cks.tms.xml.types.NcbAddressTypeType _selectedAddressType;

    /**
     * Field _streetLine1
     */
    private java.lang.String _streetLine1;

    /**
     * Field _streetLine2
     */
    private java.lang.String _streetLine2;

    /**
     * Field _streetLine3
     */
    private java.lang.String _streetLine3;

    /**
     * Field _city
     */
    private java.lang.String _city;

    /**
     * Field _stateProv
     */
    private java.lang.String _stateProv;

    /**
     * Field _postalCode
     */
    private java.lang.String _postalCode;

    /**
     * Field _countyCode
     */
    private java.lang.String _countyCode;

    /**
     * Field _phoneNumber
     */
    private java.lang.String _phoneNumber;

    /**
     * Field _faxNumber
     */
    private java.lang.String _faxNumber;

    /**
     * Field _email
     */
    private java.lang.String _email;


      //----------------/
     //- Constructors -/
    //----------------/

    public NcbAddressType() {
        super();
    } //-- nz.co.cks.tms.xml.NcbAddressType()


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method getCityReturns the value of field 'city'.
     * 
     * @return the value of field 'city'.
     */
    public java.lang.String getCity()
    {
        return this._city;
    } //-- java.lang.String getCity() 

    /**
     * Method getCountyCodeReturns the value of field 'countyCode'.
     * 
     * @return the value of field 'countyCode'.
     */
    public java.lang.String getCountyCode()
    {
        return this._countyCode;
    } //-- java.lang.String getCountyCode() 

    /**
     * Method getEmailReturns the value of field 'email'.
     * 
     * @return the value of field 'email'.
     */
    public java.lang.String getEmail()
    {
        return this._email;
    } //-- java.lang.String getEmail() 

    /**
     * Method getFaxNumberReturns the value of field 'faxNumber'.
     * 
     * @return the value of field 'faxNumber'.
     */
    public java.lang.String getFaxNumber()
    {
        return this._faxNumber;
    } //-- java.lang.String getFaxNumber() 

    /**
     * Method getPhoneNumberReturns the value of field
     * 'phoneNumber'.
     * 
     * @return the value of field 'phoneNumber'.
     */
    public java.lang.String getPhoneNumber()
    {
        return this._phoneNumber;
    } //-- java.lang.String getPhoneNumber() 

    /**
     * Method getPostalCodeReturns the value of field 'postalCode'.
     * 
     * @return the value of field 'postalCode'.
     */
    public java.lang.String getPostalCode()
    {
        return this._postalCode;
    } //-- java.lang.String getPostalCode() 

    /**
     * Method getSelectedAddressTypeReturns the value of field
     * 'selectedAddressType'.
     * 
     * @return the value of field 'selectedAddressType'.
     */
    public nz.co.cks.tms.xml.types.NcbAddressTypeType getSelectedAddressType()
    {
        return this._selectedAddressType;
    } //-- nz.co.cks.tms.xml.types.NcbAddressTypeType getSelectedAddressType() 

    /**
     * Method getStateProvReturns the value of field 'stateProv'.
     * 
     * @return the value of field 'stateProv'.
     */
    public java.lang.String getStateProv()
    {
        return this._stateProv;
    } //-- java.lang.String getStateProv() 

    /**
     * Method getStreetLine1Returns the value of field
     * 'streetLine1'.
     * 
     * @return the value of field 'streetLine1'.
     */
    public java.lang.String getStreetLine1()
    {
        return this._streetLine1;
    } //-- java.lang.String getStreetLine1() 

    /**
     * Method getStreetLine2Returns the value of field
     * 'streetLine2'.
     * 
     * @return the value of field 'streetLine2'.
     */
    public java.lang.String getStreetLine2()
    {
        return this._streetLine2;
    } //-- java.lang.String getStreetLine2() 

    /**
     * Method getStreetLine3Returns the value of field
     * 'streetLine3'.
     * 
     * @return the value of field 'streetLine3'.
     */
    public java.lang.String getStreetLine3()
    {
        return this._streetLine3;
    } //-- java.lang.String getStreetLine3() 

    /**
     * Method isValid
     */
    public boolean isValid()
    {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * Method setCitySets the value of field 'city'.
     * 
     * @param city the value of field 'city'.
     */
    public void setCity(java.lang.String city)
    {
        this._city = city;
    } //-- void setCity(java.lang.String) 

    /**
     * Method setCountyCodeSets the value of field 'countyCode'.
     * 
     * @param countyCode the value of field 'countyCode'.
     */
    public void setCountyCode(java.lang.String countyCode)
    {
        this._countyCode = countyCode;
    } //-- void setCountyCode(java.lang.String) 

    /**
     * Method setEmailSets the value of field 'email'.
     * 
     * @param email the value of field 'email'.
     */
    public void setEmail(java.lang.String email)
    {
        this._email = email;
    } //-- void setEmail(java.lang.String) 

    /**
     * Method setFaxNumberSets the value of field 'faxNumber'.
     * 
     * @param faxNumber the value of field 'faxNumber'.
     */
    public void setFaxNumber(java.lang.String faxNumber)
    {
        this._faxNumber = faxNumber;
    } //-- void setFaxNumber(java.lang.String) 

    /**
     * Method setPhoneNumberSets the value of field 'phoneNumber'.
     * 
     * @param phoneNumber the value of field 'phoneNumber'.
     */
    public void setPhoneNumber(java.lang.String phoneNumber)
    {
        this._phoneNumber = phoneNumber;
    } //-- void setPhoneNumber(java.lang.String) 

    /**
     * Method setPostalCodeSets the value of field 'postalCode'.
     * 
     * @param postalCode the value of field 'postalCode'.
     */
    public void setPostalCode(java.lang.String postalCode)
    {
        this._postalCode = postalCode;
    } //-- void setPostalCode(java.lang.String) 

    /**
     * Method setSelectedAddressTypeSets the value of field
     * 'selectedAddressType'.
     * 
     * @param selectedAddressType the value of field
     * 'selectedAddressType'.
     */
    public void setSelectedAddressType(nz.co.cks.tms.xml.types.NcbAddressTypeType selectedAddressType)
    {
        this._selectedAddressType = selectedAddressType;
    } //-- void setSelectedAddressType(nz.co.cks.tms.xml.types.NcbAddressTypeType) 

    /**
     * Method setStateProvSets the value of field 'stateProv'.
     * 
     * @param stateProv the value of field 'stateProv'.
     */
    public void setStateProv(java.lang.String stateProv)
    {
        this._stateProv = stateProv;
    } //-- void setStateProv(java.lang.String) 

    /**
     * Method setStreetLine1Sets the value of field 'streetLine1'.
     * 
     * @param streetLine1 the value of field 'streetLine1'.
     */
    public void setStreetLine1(java.lang.String streetLine1)
    {
        this._streetLine1 = streetLine1;
    } //-- void setStreetLine1(java.lang.String) 

    /**
     * Method setStreetLine2Sets the value of field 'streetLine2'.
     * 
     * @param streetLine2 the value of field 'streetLine2'.
     */
    public void setStreetLine2(java.lang.String streetLine2)
    {
        this._streetLine2 = streetLine2;
    } //-- void setStreetLine2(java.lang.String) 

    /**
     * Method setStreetLine3Sets the value of field 'streetLine3'.
     * 
     * @param streetLine3 the value of field 'streetLine3'.
     */
    public void setStreetLine3(java.lang.String streetLine3)
    {
        this._streetLine3 = streetLine3;
    } //-- void setStreetLine3(java.lang.String) 

    /**
     * Method validate
     */
    public void validate()
        throws org.exolab.castor.xml.ValidationException
    {
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    } //-- void validate() 

}
